Make WordPress Core


Ignore:
Timestamp:
04/10/2012 02:25:03 AM (13 years ago)
Author:
koopersmith
Message:

Replace all instances of thickbox theme preview with the theme customizer. fixes #20404.

  • Use theme customizer in theme install/update screens.
  • Separate the customize loader from the customizer. Use wp_customize_loader() to include the loader script and markup.
  • Deprecated: wp-admin/js/theme-preview.js is now no longer used by core.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize.php

    r20392 r20419  
    3030        add_action( 'admin_init',   array( $this, 'admin_init' ) );
    3131        add_action( 'wp_loaded',    array( $this, 'wp_loaded' ) );
    32         add_action( 'admin_footer', array( $this, 'admin_footer' ) );
    3332
    3433        add_action( 'customize_previewing',               array( $this, 'customize_previewing' ) );
     
    276275            $this->save();
    277276
    278         wp_enqueue_script( 'customize-loader' );
    279 
    280277        if ( ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )
    281278            return;
     
    293290
    294291        die;
    295     }
    296 
    297     /**
    298      * Print the customize template.
    299      *
    300      * @since 3.4.0
    301      */
    302     public function admin_footer() {
    303         ?>
    304         <div id="customize-container" class="wp-full-overlay">
    305             <input type="hidden" class="admin-url" value="<?php echo esc_url( admin_url( 'admin.php' ) ); ?>" />
    306             <a href="#" class="close-full-overlay"><?php printf( __( '&larr; Return to %s' ), get_admin_page_title() ); ?></a>
    307             <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
    308                 <span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
    309                 <span class="collapse-sidebar-arrow"></span>
    310             </a>
    311         </div>
    312         <?php
    313292    }
    314293
Note: See TracChangeset for help on using the changeset viewer.