[wp-trac] [WordPress Trac] #38197: Update Pingback function To Add Return
WordPress Trac
noreply at wordpress.org
Sun Apr 16 23:20:11 UTC 2017
#38197: Update Pingback function To Add Return
----------------------------------------+------------------------------
Reporter: dshanske | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Pings/Trackbacks | Version:
Severity: normal | Resolution:
Keywords: good-first-bug needs-patch | Focuses: performance
----------------------------------------+------------------------------
Comment (by dshanske):
You are right, handling this is difficult.
My suggestion is to start by splitting the code that sends a single ping
based on a URL into a new function with a return. This will get a single
true/false to build an array. We can also add split the function to find
the content in a content block.
That would allow the existing function to call them but future changes in
do_all_pings to call each piece independently.
In the meantime, pingback can return true if all successful, which should
shutdown Trackbacks for the post_id.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38197#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list