WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/09/2019 06:10:13 AM (2 years ago)
Author:
pento
Message:

Bundled Themes: Run the pingback_url through esc_url().

Twenties Ten through Seventeen have been updated to properly escape the pingback URL. Twenty Nineteen is already escaping the URL.

Props soulseekah, sharaz.
Fixes #43717.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentysixteen/header.php

    r43571 r44500  
    1717    <link rel="profile" href="http://gmpg.org/xfn/11">
    1818    <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
    19     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
     19    <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
    2020    <?php endif; ?>
    2121    <?php wp_head(); ?>
Note: See TracChangeset for help on using the changeset viewer.