* @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 );
}