-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Notice: is_offline was called incorrectly #538
Comments
The pwa-wp/wp-includes/default-filters.php Lines 20 to 21 in a9213f0
Perhaps you have a template that is calling |
Hi @westonruter, Me and @thelovekesh tried to reproduce the issue but we were not able to reproduce it. Can you please help us to QA this issue? |
✅ QA Passed This is how I could reproduce the issue by putting the following in a plugin: add_action( 'plugin_loaded', function () {
$query = new WP_Query();
$query->parse_query( 's=test' );
} ); Before the change I would get errors like: Notice: is_offline was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /app/public/core-dev/src/wp-includes/functions.php on line 5775 After the change, the notices go away. |
Couple of intermittent errors/notices in debug.log:
Line 98 of wp-content\plugins\pwa\wp-includes\general-template.php seems to be the problem?
The text was updated successfully, but these errors were encountered: