mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Theme Customizer: As customize.php without a theme parameter defaults to the current theme, update wp_customize_url() to make $stylesheet optional and update references for the current theme.
see #19910, #20751, #20575. git-svn-id: https://develop.svn.wordpress.org/trunk@20934 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1615,9 +1615,14 @@ add_action( 'admin_enqueue_scripts', '_wp_customize_loader_settings' );
|
||||
* Returns a URL to load the theme customizer.
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @param string $stylesheet Optional. Theme to customize. Defaults to current theme.
|
||||
*/
|
||||
function wp_customize_url( $stylesheet ) {
|
||||
return esc_url( admin_url( 'customize.php' ) . '?theme=' . $stylesheet );
|
||||
function wp_customize_url( $stylesheet = null ) {
|
||||
$url = admin_url( 'customize.php' );
|
||||
if ( $stylesheet )
|
||||
$url .= '?theme=' . $stylesheet;
|
||||
return esc_url( $url );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user