[英]Error on my Network Admin Dashboard in Wordpress
所以我的 Wordpress 网站上的网络管理仪表板在顶部给了我这个错误:
注意: is_current_page 被错误地调用。 在可以准确确定当前页面是什么之前调用函数。 有关更多信息,请参阅在 WordPress 中调试。 (此消息是在 4.5.6 版中添加的。)在第 4139 行的 /var/www/html/wp-includes/functions.php
它重复了很多次。 我怎样才能让它消失? 它发生在我删除了一个导致另一个插件出现问题的插件之后。
任何建议将不胜感激!
这是在第 4139 行:
* Filters whether to trigger an error for _doing_it_wrong() calls.
*
* @since 3.1.0
*
* @param bool $trigger Whether to trigger the error for _doing_it_wrong() calls. Default true.
*/
if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {
if ( function_exists( '__' ) ) {
if ( is_null( $version ) ) {
$version = '';
} else {
/* translators: %s: version number */
$version = sprintf( __( '(This message was added in version %s.)' ), $version );
}
/* translators: %s: Codex URL */
$message .= ' ' . sprintf( __( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ),
__( 'https://codex.wordpress.org/Debugging_in_WordPress' )
);
/* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: Version information message */
trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );
} else {
if ( is_null( $version ) ) {
$version = '';
} else {
$version = sprintf( '(This message was added in version %s.)', $version );
}
$message .= sprintf( ' Please see <a href="%s">Debugging in WordPress</a> for more information.',
'https://codex.wordpress.org/Debugging_in_WordPress'
);
trigger_error( sprintf( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s', $function, $message, $version ) );
}
}
我通过在第 4139 行之前添加 @ 来消除错误。
@trigger_error( sprintf( __( '%1$s 被错误调用。%2$s %3$s' ), $function, $message, $version );
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.