#14705 closed defect (bug) (invalid)
[15531] breaks is_*() conditional tags
| Reported by: | freddyware | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | |
| Severity: | critical | Keywords: | |
| Cc: | Focuses: |
Description
#14494 suggested moving the is_*() conditional tags into the WP_Query class and [15531] changed trunk/wp-includes/query.php to redirect those calls to the global $wp_query object.
However, it appears that this move has broken at least one of the conditional tags because $wp_query isn't known -- this is the error:
Fatal error: Call to a member function is_feed() on a non-object in /home/frederickd/frederickding.com/wordpress/wp-includes/query.php on line 270
Right now I am experiencing this critical error on the homepage of a site running trunk.
Attachments (1)
Change History (6)
#3
@
16 years ago
- Keywords needs-patch removed
Aha. I did a debug_backtrace() and found that the violating line was in the W3 Total Cache plugin, which calls is_feed() on line 807 of w3-total-cache/lib/W3/Plugin/Minify.php.
While I recognize that this is now a bug in a plugin and not core, it seems problematic that this core commit breaks W3 Total Cache. I guess I now have to ... disable the caching plugin.
Is there any way that this move can be made more backward-compatible?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
is_feed() creates a critical error that stops execution.