[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 27 16:34:06 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 nacin):
[attachment:21309.10.diff] is a (tedious) experiment to eliminate nearly
all $post references, making get_post() return the global $post if no
arguments are passed. The list tables should be smarter, and instead of
using outside global state, the methods should be passed a post object.
Clarifies that a number of functions can take either an ID or an object.
#20495 likely covers more instances.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:51>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list