[wp-trac] [WordPress Trac] #15063: Add a "context" property to WP_Query as a 2nd param to its constructor

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 8 22:45:53 UTC 2010


#15063: Add a "context" property to  WP_Query as a 2nd param to its constructor
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |        Owner:                 
     Type:  enhancement   |       Status:  closed         
 Priority:  normal        |    Milestone:  Awaiting Review
Component:  Post Types    |      Version:                 
 Severity:  normal        |   Resolution:  wontfix        
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by mikeschinkel):

 Replying to [comment:6 hakre]:
 > In PHP you can just add public members to a class att runtime.

 Yes of course, but you are missing the point.  Clearly I can do that for
 my own code, but I can't do with the objects someone else creates (without
 modifying their code.)

 The point is that we need a standard way to inspect content in other
 people's code in which we have no access to the object creation, i.e. in
 core and in 3rd party plugins.

 -Mike

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


More information about the wp-trac mailing list