WordPress.org

Make WordPress Core

Changeset 40054 for trunk


Ignore:
Timestamp:
02/10/2017 03:08:28 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Pings/Trackbacks: Avoid scheduling multiple do_pings events in _publish_post_hook().

Props ethitter.
Fixes #39828.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r40027 r40054  
    59335933    add_post_meta( $post_id, '_encloseme', '1' );
    59345934
    5935     wp_schedule_single_event(time(), 'do_pings');
     5935    if ( ! wp_next_scheduled( 'do_pings' ) ) {
     5936        wp_schedule_single_event( time(), 'do_pings' );
     5937    }
    59365938}
    59375939
Note: See TracChangeset for help on using the changeset viewer.