[wp-trac] [WordPress Trac] #16574: Lazy load ancestors

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 4 21:03:37 UTC 2012


#16574: Lazy load ancestors
-------------------------------------+------------------
 Reporter:  nacin                    |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.4
Component:  Performance              |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by scribu):

 > Creating a whole new class for this one thing is overkill.

 It paves the way for WP_Post. I didn't name it that in the hopes that
 people won't start explicitly checking for it, but I'm not sure if that's
 a wise decision.

 > is causing the object_id to be overloaded. Not sure where or why yet, if
 the problem is on BuddyPress's end or not.

 That's because get_post() takes it's first parameter by reference. There
 was a similar notice in get_page_uri(), which is fixed in the patch.

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


More information about the wp-trac mailing list