Make WordPress Core

Changeset 38671


Ignore:
Timestamp:
09/28/2016 07:27:25 PM (8 years ago)
Author:
jorbin
Message:

Pings/Trackbacks: Add filter argument to fetching of pingbacks_url in X-pingback header

It is possible to delegate pingback processing to a service function outside of WordPress itself. All other calls in default themes (and likely other themes) uses bloginfo which automatically adds the filter argument of "display". This adds consistency.

Props dshanske.
Fixes #34633.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp.php

    r38451 r38671  
    663663                // Only set X-Pingback for single posts that allow pings.
    664664                if ( $p && pings_open( $p ) ) {
    665                     @header( 'X-Pingback: ' . get_bloginfo( 'pingback_url' ) );
     665                    @header( 'X-Pingback: ' . get_bloginfo( 'pingback_url', 'display' ) );
    666666                }
    667667
Note: See TracChangeset for help on using the changeset viewer.