在我的调试中,我已经开始调用很多“is\\u singular was called”和“is\\u page was called”。日志
[31-May-2020 12:10:27 UTC] PHP Notice: is_page was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 5167
[31-May-2020 12:10:27 UTC] PHP Notice: is_singular was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 5167
在功能中的第5167行。php有以下代码
sprintf(
/* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: Version information message. */
__( \'%1$s was called <strong>incorrectly</strong>. %2$s %3$s\' ),
$function,
$message,
$version
),
E_USER_NOTICE
);
谁能帮我找到解决问题的正确方向?
非常感谢你regardsGabriel