X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/41497a896330304904ef6d5783c724ea713739f6..596d585e1dc1eb25bccd3781e37210a4e2504179:/wp-includes/theme.php diff --git a/wp-includes/theme.php b/wp-includes/theme.php index a7b246b9..f449ae50 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -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. + * The theme's stylesheet will be urlencoded if necessary. */ function wp_customize_url( $stylesheet = null ) { $url = admin_url( 'customize.php' ); if ( $stylesheet ) - $url .= '?theme=' . $stylesheet; + $url .= '?theme=' . urlencode( $stylesheet ); return esc_url( $url ); }