From 235373d4d7338e1b56aa4798e8fc0357997f6777 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 7 Oct 2019 20:29:04 +0000 Subject: [PATCH] Pings/Trackbacks: Avoid adding multiple `_pingme` and `_encloseme` meta entries to a post when it gets updated prior to pings being done. Props rebasaurus, whyisjake Fixes #48014 Built from https://develop.svn.wordpress.org/trunk@46426 git-svn-id: http://core.svn.wordpress.org/trunk@46224 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 51e45f2d92..eb98238d5e 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -6800,9 +6800,9 @@ function _publish_post_hook( $post_id ) { } if ( get_option( 'default_pingback_flag' ) ) { - add_post_meta( $post_id, '_pingme', '1' ); + add_post_meta( $post_id, '_pingme', '1', true ); } - add_post_meta( $post_id, '_encloseme', '1' ); + add_post_meta( $post_id, '_encloseme', '1', true ); $to_ping = get_to_ping( $post_id ); if ( ! empty( $to_ping ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 62c3b19517..d2ffb479bd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-beta2-46425'; +$wp_version = '5.3-beta2-46426'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.