Make WordPress Core


Ignore:
Timestamp:
02/25/2012 04:12:43 AM (12 years ago)
Author:
koopersmith
Message:

Introduce new theme customizer to replace theme preview. Rough first pass. props koopersmith, ocean90. see #19910.

Merges in http://plugins.svn.wordpress.org/gandalf/branches/dev/ rev 510148.

File:
1 edited

Legend:

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

    r19969 r19995  
    20832083    }
    20842084}
     2085
     2086function wp_customize_load() {
     2087    // Load on themes.php or ?customize=on
     2088    if ( ! ( isset( $_REQUEST['customize'] ) && 'on' == $_REQUEST['customize'] ) && 'themes.php' != $GLOBALS['pagenow'] )
     2089        return;
     2090
     2091    require( ABSPATH . WPINC . '/class-wp-customize.php' );
     2092    // Init Customize class
     2093    // @todo Dependency injection instead
     2094    $GLOBALS['customize'] = new WP_Customize;
     2095}
     2096add_action( 'plugins_loaded', 'wp_customize_load' );
Note: See TracChangeset for help on using the changeset viewer.