[wp-trac] [WordPress Trac] #21309: Introduce WP_Post class
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 21 04:46:23 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 mdawaffe):
Replying to [comment:15 nacin]:
> Yeah, I'm looking at that same thing. I was playing with
[attachment:21309.8.diff]. I do think we should definitely modify the
global.
>
> Perhaps it is time to break the reference in get_post( &$post ). There's
also no good reason to have it return by reference anymore either —
objects are byref in PHP5. Doing both of those things should
[attachment:21309.8.diff] is much prettier than my attempt.
I'm all for getting rid of all the referencing. Here's an oldie but
goodie about how these references are probably harmful.
http://blog.golemon.com/2007/01/youre-being-lied-to.html
Unless things have changed in the last 5 years. I haven't looked :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21309#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list