[wp-trac] [WordPress Trac] #38202: Allow post object or post id for ping functions
WordPress Trac
noreply at wordpress.org
Wed Oct 5 18:34:11 UTC 2016
#38202: Allow post object or post id for ping functions
----------------------------------------+------------------
Reporter: dshanske | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: 4.7
Component: Pings/Trackbacks | Version:
Severity: minor | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------
Comment (by swissspidy):
Replying to [comment:4 pento]:
> What's the purpose of making this change?
Most functions in core support poth post objects and IDs nowdays. I
especially like that we can get rid of `$wpdb` in `get_to_ping()` that
way.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38202#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list