WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16574, comment 19


Ignore:
Timestamp:
03/04/2012 09:15:09 PM (6 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16574, comment 19

    initial v1  
    33It 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.
    44
    5 > is causing the object_id to be overloaded. Not sure where or why yet, if the problem is on BuddyPress's end or not.
     5> $original_object = get_post( $menu_item->object_id );
    66
    7 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.
     7That's because get_post() takes it's first parameter by reference and $menu_item is now an instance of _WP_Post_Wrapper.
     8
     9There was a similar notice in get_page_uri(), which is fixed in the patch.