Make WordPress Core

Ticket #43791: 43791_1.diff

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

Add the call to pingback_url to core (Patch refreshed)

  • wp-includes/default-filters.php

    diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php
    index bd8500e..fb83efe 100644
    a b add_action( 'wp_head', 'feed_links_extra', 3 ); 
    274274add_action( 'wp_head', 'rsd_link' );
    275275add_action( 'wp_head', 'wlwmanifest_link' );
    276276add_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
     277add_action( 'wp_head', 'pingback_url' );
    277278add_action( 'wp_head', 'locale_stylesheet' );
    278279add_action( 'publish_future_post', 'check_and_publish_future_post', 10, 1 );
    279280add_action( 'wp_head', 'noindex', 1 );
  • wp-includes/general-template.php

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