WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/16/2012 02:02:28 PM (8 years ago)
Author:
koopersmith
Message:

Theme Customizer: Allow the customize iframe to be accessed directly (with full feature support). see #19910.

  • Move the 'Return to Manage Themes' and 'Collapse Sidebar' actions from themes.php to customize-controls.php.
  • Create a postMessage connection between themes.php and customize-controls.php.
  • Allow the theme customizer to be accessed directly (independent of themes.php and the customize loader).
  • Add wp_customize_href() and wp_customize_url().
  • Remove wp_customize_loader(). To include the loader, use wp_enqueue_script( 'customize-loader' ).
  • The theme customizer now requires postMessage browser support.
  • Add .hide-if-customize and .hide-if-no-customize CSS classes.
  • Clean up customize-preview.js.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update.php

    r20419 r20476  
    153153        check_admin_referer('upgrade-theme_' . $theme);
    154154
    155         wp_customize_loader();
     155        wp_enqueue_script( 'customize-loader' );
    156156
    157157        $title = __('Update Theme');
     
    205205            wp_die($api);
    206206
    207         wp_customize_loader();
     207        wp_enqueue_script( 'customize-loader' );
    208208
    209209        $title = __('Install Themes');
     
    231231        $file_upload = new File_Upload_Upgrader('themezip', 'package');
    232232
    233         wp_customize_loader();
     233        wp_enqueue_script( 'customize-loader' );
    234234
    235235        $title = __('Upload Theme');
Note: See TracChangeset for help on using the changeset viewer.