【问题标题】:Warning: sprintf()...too few arguments警告:sprintf()...参数太少
【发布时间】:2023-03-26 08:09:01
【问题描述】:

这是有错误的那一行

sprintf( __( "You must have a <a target='_new' href='%s'>PayPal Sandbox</a> account setup before using this feature.", APP_TD ), 'http://developer.paypal.com/' ),

【问题讨论】:

  • 看起来不太对劲。请张贴整行。
  • 您需要调试 Wordpress 的 __() 函数返回的内容。

标签: php printf


【解决方案1】:
sprintf( __( 'You must have a <a target="_new" href="%s">PayPal Sandbox</a> account setup before using this feature.', APP_TD ), 'http://developer.paypal.com/' ),

可能是您对单引号/双引号的使用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-04
    • 1970-01-01
    • 1970-01-01
    • 2017-05-05
    • 1970-01-01
    相关资源
    最近更新 更多