Make WordPress Core

Ticket #43791: 43791.diff

File 43791.diff, 1.2 KB (added by abdullahramzan, 7 years ago)

Add the call to pingback_url to core

  • wp-includes/default-filters.php

    diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php
    index bd8500e..7557cd0 100644
    a b add_action( 'wp_head', 'wp_resource_hints', 2 ); 
    272272add_action( 'wp_head', 'feed_links', 2 );
    273273add_action( 'wp_head', 'feed_links_extra', 3 );
    274274add_action( 'wp_head', 'rsd_link' );
     275add_action( 'wp_head', 'pingback_url' );
    275276add_action( 'wp_head', 'wlwmanifest_link' );
    276277add_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
    277278add_action( 'wp_head', 'locale_stylesheet' );
  • wp-includes/general-template.php

    diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
    index 57a7b67..8f0f09c 100644
    a b function rsd_link() { 
    28202820}
    28212821
    28222822/**
     2823 * Display the Pingback URL.
     2824 *
     2825 * @since 4.9.6
     2826 */
     2827function pingback_url() {
     2828    if ( is_singular() && pings_open( get_queried_object() ) ) :
     2829        echo '<link rel="pingback" href="' . esc_url( site_url( 'xmlrpc.php') ) . '" />' . "\n";
     2830    endif;
     2831}
     2832/**
    28232833 * Display the link to the Windows Live Writer manifest file.
    28242834 *
    28252835 * @link https://msdn.microsoft.com/en-us/library/bb463265.aspx