WordPress.org

Ready to get started?Download WordPress

Forums

WP Minify
is_feed() called too early (1 post)

  1. Jonathan Brinley
    Member
    Posted 1 year ago #

    When the WPMinify class is instantiated, the constructor calls is_feed(). This is too soon, though, because is_feed() isn't usable until the query has run. As a result, we get a PHP notice:

    Notice: is_feed 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="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 3.1.) in wp-includes/functions.php on line 3012
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0058	326044	{main}( )	../index.php:0
    2	0.0103	329432	require( 'wp-blog-header.php' )	../index.php:5
    3	0.0146	347352	require_once( 'wp-load.php' )	../wp-blog-header.php:12
    4	0.0206	369356	require_once( 'wp-config.php' )	../wp-load.php:34
    5	0.0326	470872	require_once( 'wp-settings.php' )	../wp-config.php:135
    6	1.7058	31440948	include_once( 'content/plugins/wp-minify/wp-minify.php' )	../wp-settings.php:197
    7	1.7199	31570624	WPMinify->WPMinify( )	../wp-minify.php:931
    8	1.7214	31575716	is_feed( )	../wp-minify.php:67
    9	1.7215	31576216	_doing_it_wrong( )	../query.php:366
    10	1.7218	31577332	trigger_error ( )	../functions.php:3012

    http://wordpress.org/plugins/wp-minify/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic