Ticket #41842: 41842.2.diff
| File 41842.2.diff, 793 bytes (added by , 8 years ago) |
|---|
-
src/wp-includes/comment.php
2550 2550 * 2551 2551 * @param string $content Post content to check for links. If empty will retrieve from post. 2552 2552 * @param int|WP_Post $post_id Post Object or ID. 2553 * 2554 * @return bool True on success, false if no post is available for the given ID. 2553 2555 */ 2554 2556 function pingback( $content, $post_id ) { 2555 2557 include_once( ABSPATH . WPINC . '/class-IXR.php' ); … … 2560 2562 2561 2563 $post = get_post( $post_id ); 2562 2564 if ( ! $post ) { 2563 return ;2565 return false; 2564 2566 } 2565 2567 2566 2568 $pung = get_pung( $post ); … … 2637 2639 add_ping( $post, $pagelinkedto ); 2638 2640 } 2639 2641 } 2642 2643 return true; 2640 2644 } 2641 2645 2642 2646 /**