WordPress.org

Make WordPress Core

Changeset 21713


Ignore:
Timestamp:
09/03/2012 11:58:30 PM (6 years ago)
Author:
nacin
Message:

URL encode the theme stylesheet passed into wp_customize_url(). see #21749.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r21664 r21713  
    16471647 *
    16481648 * @param string $stylesheet Optional. Theme to customize. Defaults to current theme.
     1649 *  The theme's stylesheet will be urlencoded if necessary.
    16491650 */
    16501651function wp_customize_url( $stylesheet = null ) {
    16511652    $url = admin_url( 'customize.php' );
    16521653    if ( $stylesheet )
    1653         $url .= '?theme=' . $stylesheet;
     1654        $url .= '?theme=' . urlencode( $stylesheet );
    16541655    return esc_url( $url );
    16551656}
Note: See TracChangeset for help on using the changeset viewer.