2017-06-29 52 views
0

所以,我的網絡管理員控制檯上我的WordPress網站是給我這個錯誤在頂部:錯誤在我的網絡管理員控制檯中的WordPress

注意: is_current_page被稱爲不正確。函數被調用之後纔有可能準確地確定當前的頁面是什麼。有關更多信息,請參閱WordPress中的調試。 (在4.5.6版本中添加了該 消息。)在 /var/www/html/wp-includes/functions.php上線4139

它這重複了好幾次。我如何讓它消失?它發生在我刪除了一個導致另一個插件出現問題的插件之後。

任何意見將不勝感激!

這是行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)); 
    } 
} 
+0

你的functions.php文件的4139行是什麼?您是否嘗試過停用所有插件? – j08691

+0

不,我還沒有嘗試停用所有插件。我會試試 –

+0

好的,我的網絡停用了所有的插件,它仍然顯示出來...... –

回答

0

我做出了錯誤的行前加入@ 4139.

@trigger_error(sprintf的(走__(「%1 $ S被稱爲不正確。%2 $ s%3 $ s'),$ function,$ message,$ version));