mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Move to admin.php?customize=on&theme=$stylesheet, rather than juggling both template and stylesheet values. see #19910.
Combine the setup_theme() and customize_previewing() methods. Remove the set_template() and set_stylesheet() methods. Add set_theme() method to WP_Customize to store the working WP_Theme object. We will use this for the stylesheet and template. Use the WP_Theme display() method when preparing headers for display, not get() or the deprecate properties. git-svn-id: https://develop.svn.wordpress.org/trunk@20496 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1601,5 +1601,5 @@ add_action( 'admin_enqueue_scripts', '_wp_customize_loader_localize' );
|
||||
* @since 3.4.0
|
||||
*/
|
||||
function wp_customize_url( $stylesheet, $template ) {
|
||||
return esc_url( admin_url( 'admin.php' ) . '?customize=on&template=' . $template . '&stylesheet=' . $stylesheet );
|
||||
return esc_url( admin_url( 'admin.php' ) . '?customize=on&theme=' . $stylesheet );
|
||||
}
|
||||
Reference in New Issue
Block a user