Boone Gorges
48e280db32
Improve do_enclose() logic on post publish.
...
Removing the direct SQL query in `do_all_pings()` improves filterability.
As part of this change, the signature of `do_enclose()` is changed so that
a null `$content` parameter can be passed, with the `$content` then inferred
from the `$post` passed in the second parameter. In addition, the second
parameter was modified so that a post ID or a `WP_Post` object can be
provided. These changes make it possible to trigger enclosure checks with
a post ID alone (as in `do_all_pings()`) and also brings the function
signature in line with `do_trackbacks()` and `pingback()`.
Props dshanske, spacedmonkey, janw.oostendorp, mrmadhat, birgire.
See #36824 .
git-svn-id: https://develop.svn.wordpress.org/trunk@46175 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-19 01:48:54 +00:00
..
2017-11-30 23:09:33 +00:00
2019-08-22 00:21:49 +00:00
2019-08-19 02:17:50 +00:00
2017-11-30 23:09:33 +00:00
2019-04-08 06:53:14 +00:00
2019-01-10 21:16:49 +00:00
2018-08-17 01:50:26 +00:00
2018-09-02 22:08:05 +00:00
2019-09-11 01:50:23 +00:00
2019-09-15 11:03:45 +00:00
2019-09-17 11:13:25 +00:00
2019-07-08 00:55:20 +00:00
2019-09-18 22:29:53 +00:00
2018-08-17 01:50:26 +00:00
2019-04-16 05:08:16 +00:00
2019-07-08 00:55:20 +00:00
2019-07-08 00:55:20 +00:00
2019-01-14 04:54:01 +00:00
2019-09-04 18:40:13 +00:00
2019-09-19 01:48:54 +00:00
2019-09-10 19:22:07 +00:00
2019-09-15 11:03:45 +00:00
2019-07-08 00:55:20 +00:00
2019-09-07 01:33:16 +00:00
2019-07-08 00:55:20 +00:00
2019-04-15 23:48:11 +00:00
2019-07-27 12:43:56 +00:00
2019-07-08 00:55:20 +00:00
2016-07-08 14:36:37 +00:00
2018-08-17 01:50:26 +00:00
2019-09-13 17:57:57 +00:00
2019-07-08 00:55:20 +00:00
2019-09-12 22:16:08 +00:00
2019-08-19 02:17:50 +00:00
2019-08-22 00:21:49 +00:00
2019-07-08 00:55:20 +00:00
2019-09-17 19:57:18 +00:00
2019-08-18 02:07:00 +00:00
2019-07-15 06:24:08 +00:00
2019-09-12 21:28:14 +00:00
2019-01-14 04:54:01 +00:00
2019-01-14 04:54:01 +00:00
2019-08-26 15:18:40 +00:00
2019-07-08 00:55:20 +00:00
2019-03-21 19:47:29 +00:00
2019-08-14 15:35:19 +00:00
2019-04-08 23:22:14 +00:00
2019-08-29 16:43:28 +00:00
2017-11-30 23:09:33 +00:00
2019-07-08 00:55:20 +00:00
2019-08-01 19:53:45 +00:00
2019-01-12 06:05:55 +00:00
2019-07-08 00:55:20 +00:00
2017-11-30 23:09:33 +00:00
2019-04-08 01:09:01 +00:00
2017-11-30 23:09:33 +00:00
2019-05-26 00:11:37 +00:00
2019-07-08 00:55:20 +00:00
2019-07-08 00:55:20 +00:00
2019-03-16 06:41:23 +00:00
2019-09-15 11:55:42 +00:00
2019-07-08 00:55:20 +00:00
2017-11-30 23:09:33 +00:00
2019-07-08 00:55:20 +00:00
2017-11-30 23:09:33 +00:00
2019-08-05 18:09:20 +00:00
2019-09-04 17:51:33 +00:00
2019-07-08 00:55:20 +00:00
2018-08-17 01:50:26 +00:00
2019-07-27 14:29:28 +00:00
2019-09-14 21:34:51 +00:00
2019-09-05 22:52:29 +00:00
2019-07-08 00:55:20 +00:00
2019-07-08 00:55:20 +00:00
2018-08-17 01:50:26 +00:00
2019-07-08 00:55:20 +00:00
2018-08-17 01:50:26 +00:00
2019-09-12 21:46:41 +00:00
2018-08-17 01:50:26 +00:00
2019-07-08 00:55:20 +00:00
2019-08-15 00:36:38 +00:00
2019-07-08 00:55:20 +00:00
2019-03-21 20:19:16 +00:00
2018-08-17 01:50:26 +00:00
2019-07-08 00:55:20 +00:00
2017-11-30 23:09:33 +00:00
2019-05-26 00:11:37 +00:00
2019-08-22 01:52:16 +00:00
2017-11-30 23:09:33 +00:00
2019-09-15 11:40:08 +00:00
2019-07-08 00:55:20 +00:00