[wp-trac] [WordPress Trac] #36824: do_all_pings function queries all posts

WordPress Trac noreply at wordpress.org
Sun Jun 24 12:49:10 UTC 2018


#36824: do_all_pings function queries all posts
------------------------------+---------------------------
 Reporter:  spacedmonkey      |       Owner:  boonebgorges
     Type:  enhancement       |      Status:  reviewing
 Priority:  normal            |   Milestone:  4.9.7
Component:  Pings/Trackbacks  |     Version:  2.1
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:  performance
------------------------------+---------------------------

Comment (by dshanske):

 @boonebgorges _pingme is only for pingbacks, and _encloseme does the same
 thing for enclosures. It adds a property that, if set, triggers that
 operation for that particular post.

 Trackbacks use a different system, where there is a field in the post
 called to_ping that must not be empty, and that is a list of the URLs to
 send trackbacks to. The issue being that trackbacks don't have to have an
 established link to the post they are sending to, and pingbacks do.

 Right now, regarding support for trackbacks, I have ticket #39960 which
 tries to separate trackback and pingback support, which needs debate as
 that would be a breaking change. But, the way WordPress is set up at this
 exact moment, the trackback UI will not be enabled on a post unless the
 trackbacks support function is there. Trackbacks, unlike pingbacks, are
 manually initiated. So, if anyone was expecting them, it wouldn't be
 delivering unless they did something else I can't predict.

 As for the issue with the _pingme and the publish_post...I never noticed
 that till now. That would seem to be a bug as any post type can declare
 pingback and trackback support and it should work to send them. Maybe it
 does make sense to fix that at some point.

 to_ping is set in _wp_translate_postdata . That would be the place to set
 a theoretical trigger that could be used for this.

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


More information about the wp-trac mailing list