Warning: sprintf(): Too few arguments in functions.php

前端 未结 2 969
悲&欢浪女
悲&欢浪女 2020-12-22 05:32

I\'m getting this PHP error in my custom breadcrumb function:

Warning: sprintf(): Too few arguments in /srv/bindings/56058a57d7424f84adac37ba6b03d3b7

2条回答
  •  礼貌的吻别
    2020-12-22 06:22

    Your sprintf string has 2 placeholders, your filling one.

    %2$s', 'http://example.com');
    
    // good
    echo sprintf('%2$s', 'http://example.com', 'Link Name');
    

    https://3v4l.org/nu8Ht

提交回复
热议问题