Make WordPress Core

Ticket #41842: 41842.2.diff

File 41842.2.diff, 793 bytes (added by mrmadhat, 4 years ago)
  • src/wp-includes/comment.php

     
    25502550 *
    25512551 * @param string $content Post content to check for links. If empty will retrieve from post.
    25522552 * @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.
    25532555 */
    25542556function pingback( $content, $post_id ) {
    25552557        include_once( ABSPATH . WPINC . '/class-IXR.php' );
     
    25602562
    25612563        $post = get_post( $post_id );
    25622564        if ( ! $post ) {
    2563                 return;
     2565                return false;
    25642566        }
    25652567
    25662568        $pung = get_pung( $post );
     
    26372639                                add_ping( $post, $pagelinkedto );
    26382640                }
    26392641        }
     2642
     2643        return true;
    26402644}
    26412645
    26422646/**