[wp-trac] [WordPress Trac] #38202: Allow post object or post id for ping functions

WordPress Trac noreply at wordpress.org
Fri Oct 21 05:59:35 UTC 2016


#38202: Allow post object or post id for ping functions
-------------------------------------------------+-------------------------
 Reporter:  dshanske                             |       Owner:  pento
     Type:  enhancement                          |      Status:  closed
 Priority:  low                                  |   Milestone:  4.7
Component:  Pings/Trackbacks                     |     Version:
 Severity:  minor                                |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback commit                                |
-------------------------------------------------+-------------------------
Changes (by pento):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38852"]:
 {{{
 #!CommitTicketReference repository="" revision="38852"
 Pings: Allow ping functions to accept `WP_Post` objects as well as post
 IDs.

 This removes the use of several `global $wpdb` instances, as well as
 bringing the ping functions into line with other post-related functions,
 which will accept a post ID or `WP_Post` object.

 Props dshanke.
 Fixes #38202.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38202#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list