[wp-trac] [WordPress Trac] #12267: Upgrade loop objects to provide identical presentational interfaces.

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 8 06:33:59 UTC 2011


#12267: Upgrade loop objects to provide identical presentational interfaces.
-------------------------+-----------------------------
 Reporter:  andy         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  3.2-early    |
-------------------------+-----------------------------

Comment (by mikeschinkel):

 Replying to [comment:36 scribu]:
 > There wouldn't be a WP_Page_Object, since then it would only be fair to
 have a different class for each post type, which isn't obvious how to do
 or even necessary.

 Then I am confused by the examples I've seen thus far on this ticket.

 Replying to [comment:39 scribu]:
 > But then I figured we can use the {{{__call()}}} magic method, since
 we're on PHP5 now:
 >...
 > Hooks save the day again. :)

 Nice.  That technique might be useful
 [http://core.trac.wordpress.org/ticket/16692#comment:12 elsewhere] too.

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


More information about the wp-trac mailing list