Title: [bug] &#039;doing it wrong&#039; error calling is_feed()
Last modified: August 21, 2016

---

# [bug] 'doing it wrong' error calling is_feed()

 *  [Mark Rowatt Anderson](https://wordpress.org/support/users/markauk/)
 * (@markauk)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/bug-doing-it-wrong-error-calling-is_feed/)
 * wp-minify.php line 67 can call is_feed() before wp_query is set, which triggers
   a ‘doing it wrong’ error.
 * One fix might be to replace line 67 with:-
 *     ```
       if (!is_admin() && !( isset($wp_query) && is_feed() ) && !defined('XMLRPC_REQUEST')) {
       ```
   
 * [http://wordpress.org/extend/plugins/wp-minify/](http://wordpress.org/extend/plugins/wp-minify/)

The topic ‘[bug] 'doing it wrong' error calling is_feed()’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-minify.svg)
 * [WP Minify](https://wordpress.org/plugins/wp-minify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-minify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-minify/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mark Rowatt Anderson](https://wordpress.org/support/users/markauk/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/bug-doing-it-wrong-error-calling-is_feed/)
 * Status: not resolved