[wp-trac] [WordPress Trac] #38197: Update Pingback function To Add Return

WordPress Trac noreply at wordpress.org
Sun Apr 16 21:54:37 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 shulard):

 Hello !

 I'm actually trying to make a patch for that ticket, but can't find a
 clean way to handle this. The `pingback` function can ping multiple URLs
 in one call, how the return value can be consistent with that :

 * Always return an array of found URL as key and true / `WP_Error` if URL
 was pinged successfully or not ?
 * Return an array of pinged URL or a `WP_Error` if at leat one failed ?

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


More information about the wp-trac mailing list