WordPress.org

Make WordPress Core

Ticket #20214: 20214.patch

File 20214.patch, 605 bytes (added by kurtpayne, 3 years ago)
  • wp-includes/comment.php

     
    18121812        do_action_ref_array( 'pre_ping', array( &$post_links, &$pung, $post_ID ) ); 
    18131813 
    18141814        foreach ( (array) $post_links as $pagelinkedto ) { 
     1815                $url = parse_url( $pagelinkedto ); 
     1816                if ( !empty( $url['fragment'] ) ) { 
     1817                        unset( $url['fragment'] ); 
     1818                        $pagelinkedto = implode( '', $url ); 
     1819                } 
    18151820                $pingback_server_url = discover_pingback_server_uri( $pagelinkedto ); 
    18161821 
    18171822                if ( $pingback_server_url ) {