WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/17/2012 09:43:47 PM (8 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r20488 r20496  
    16021602 */
    16031603function wp_customize_url( $stylesheet, $template ) {
    1604     return esc_url( admin_url( 'admin.php' ) . '?customize=on&template=' . $template . '&stylesheet=' . $stylesheet );
    1605 }
     1604    return esc_url( admin_url( 'admin.php' ) . '?customize=on&theme=' . $stylesheet );
     1605}
Note: See TracChangeset for help on using the changeset viewer.