[wp-trac] [WordPress Trac] #17072: Make $wp_query->query read-only

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 7 07:12:12 UTC 2011


#17072: Make $wp_query->query read-only
------------------------------------+-----------------------------
 Reporter:  scribu                  |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Query                   |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+-----------------------------

Comment (by scribu):

 Note that attempts to modify $wp_query->query will just trigger a notice:

 {{{
 Notice: Indirect modification of overloaded property WP_Query::$query has
 no effect ...
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17072#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list