Changeset 46178
- Timestamp:
- 09/19/2019 02:05:25 AM (5 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r46177 r46178 2666 2666 } 2667 2667 2668 // Do Trackbacks 2669 $trackbacks = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE to_ping <> '' AND post_status = 'publish'" ); 2670 if ( is_array( $trackbacks ) ) { 2671 foreach ( $trackbacks as $trackback ) { 2672 do_trackbacks( $trackback ); 2673 } 2674 } 2675 2676 //Do Update Services/Generic Pings 2668 // Do trackbacks. 2669 $trackbacks = get_posts( 2670 array( 2671 'post_type' => get_post_types(), 2672 'suppress_filters' => false, 2673 'nopaging' => true, 2674 'meta_key' => '_trackbackme', 2675 'fields' => 'ids', 2676 ) 2677 ); 2678 2679 foreach ( $trackbacks as $trackback ) { 2680 delete_post_meta( $trackback, '_trackbackme' ); 2681 do_trackbacks( $trackback ); 2682 } 2683 2684 // Do Update Services/Generic Pings. 2677 2685 generic_ping(); 2678 2686 } -
trunk/src/wp-includes/post.php
r46076 r46178 6787 6787 add_post_meta( $post_id, '_encloseme', '1' ); 6788 6788 6789 $to_ping = get_to_ping( $post_id ); 6790 if ( ! empty( $to_ping ) ) { 6791 add_post_meta( $post_id, '_trackbackme', '1' ); 6792 } 6793 6789 6794 if ( ! wp_next_scheduled( 'do_pings' ) ) { 6790 6795 wp_schedule_single_event( time(), 'do_pings' );
Note: See TracChangeset
for help on using the changeset viewer.