[wp-trac] [WordPress Trac] #32619: Introduce WP_Comment
WordPress Trac
noreply at wordpress.org
Thu Sep 3 18:16:37 UTC 2015
#32619: Introduce WP_Comment
------------------------------+-----------------------------
Reporter: wonderboymusic | Owner: wonderboymusic
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 4.4
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------------
Comment (by wonderboymusic):
In [changeset:"33891"]:
{{{
#!CommitTicketReference repository="" revision="33891"
Introduce `WP_Comment` class to model/strongly-type rows from the comments
database table. Inclusion of this class is a pre-req for some more general
comment cleanup and sanity.
* Takes inspiration from `WP_Post` and adds sanity to comment caching.
* Clarifies when the current global value for `$comment` is returned. The
current implementation in `get_comment()` introduces side effects and an
occasion stale global value for `$comment` when comment caches are
cleaned.
* Strongly-types `@param` docs
* This class is marked `final` for now
Props wonderboymusic, nacin.
See #32619.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32619#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list