Make WordPress Core


Ignore:
Timestamp:
01/09/2019 06:10:13 AM (6 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/twentyfifteen/header.php

    r43571 r44500  
    1515    <meta name="viewport" content="width=device-width">
    1616    <link rel="profile" href="http://gmpg.org/xfn/11">
    17     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
     17    <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
    1818    <!--[if lt IE 9]>
    1919    <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script>
Note: See TracChangeset for help on using the changeset viewer.