[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 23 17:04:32 UTC 2012
#21309: Introduce WP_Post class
----------------------------+------------------
Reporter: scribu | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.5
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by ryan):
_get_page_link() is overwriting global $post with the version from the
cache. Since get_default_post_to_edit() changes a few properties in the
post object after the post is created and cached, global $post ends up not
being the same as what is in the cache. We need to preserve the global
$post in edit-form-advanced.php. 3.4 must have been poisoning the cache
with the hacked global $post.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:36>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list