]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/theme.php
WordPress 3.4.2
[autoinstalls/wordpress.git] / wp-includes / theme.php
index a7b246b953e0cad377476013602740089bde137d..f449ae5025396c72e73d7531b55ae336a525ef21 100644 (file)
@@ -1629,11 +1629,12 @@ add_action( 'admin_enqueue_scripts', '_wp_customize_loader_settings' );
  * @since 3.4.0
  *
  * @param string $stylesheet Optional. Theme to customize. Defaults to current theme.
  * @since 3.4.0
  *
  * @param string $stylesheet Optional. Theme to customize. Defaults to current theme.
+ *     The theme's stylesheet will be urlencoded if necessary.
  */
 function wp_customize_url( $stylesheet = null ) {
        $url = admin_url( 'customize.php' );
        if ( $stylesheet )
  */
 function wp_customize_url( $stylesheet = null ) {
        $url = admin_url( 'customize.php' );
        if ( $stylesheet )
-               $url .= '?theme=' . $stylesheet;
+               $url .= '?theme=' . urlencode( $stylesheet );
        return esc_url( $url );
 }
 
        return esc_url( $url );
 }