mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@46426 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user