Make WordPress Core

Changeset 29903


Ignore:
Timestamp:
10/15/2014 05:20:34 PM (10 years ago)
Author:
ocean90
Message:

Customizer: Change instances of "Theme Customizer" to just "Customizer", as the Customizer isn't necessarily theme-specific.

Also capitalize "Customizer".
See also https://make.wordpress.org/core/2014/07/08/customizer-improvements-in-4-0/.

props studionashvegas, tareq1988.
fixes #29947.

Location:
trunk/src
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/customize.php

    r29610 r29903  
    130130        ?>
    131131
    132         <div id="widgets-right"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the customizer for compat -->
     132        <div id="widgets-right"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat -->
    133133        <div class="wp-full-overlay-sidebar-content accordion-container" tabindex="-1">
    134134            <div id="customize-info" class="accordion-section <?php if ( $cannot_expand ) echo ' cannot-expand'; ?>">
    135                 <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Theme Customizer Options' ); ?>" tabindex="0">
     135                <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>" tabindex="0">
    136136                    <span class="preview-notice"><?php
    137137                        if ( ! $wp_customize->is_theme_active() ) {
     
    190190    /*
    191191     * If the frontend and the admin are served from the same domain, load the
    192      * preview over ssl if the customizer is being loaded over ssl. This avoids
     192     * preview over ssl if the Customizer is being loaded over ssl. This avoids
    193193     * insecure content warnings. This is not attempted if the admin and frontend
    194194     * are on different domains to avoid the case where the frontend doesn't have
     
    227227    ), wp_login_url() );
    228228
    229     // Prepare customizer settings to pass to Javascript.
     229    // Prepare Customizer settings to pass to Javascript.
    230230    $settings = array(
    231231        'theme'    => array(
  • trunk/src/wp-admin/includes/template.php

    r29623 r29903  
    20302030
    20312031        $content  = '<h3>' . __( 'New Feature: Live Widget Previews' ) . '</h3>';
    2032         $content .= '<p>' . __( 'Add, edit, and play around with your widgets from the theme customizer.' ) . ' ' . __( 'Preview your changes in real-time and only save them when you&#8217;re ready.' ) . '</p>';
     2032        $content .= '<p>' . __( 'Add, edit, and play around with your widgets from the Customizer.' ) . ' ' . __( 'Preview your changes in real-time and only save them when you&#8217;re ready.' ) . '</p>';
    20332033
    20342034        if ( 'themes' === get_current_screen()->id ) {
  • trunk/src/wp-admin/js/customize-controls.js

    r29451 r29903  
    833833            //
    834834            // If the frontend and the admin are served from the same domain, load the
    835             // preview over ssl if the customizer is being loaded over ssl. This avoids
     835            // preview over ssl if the Customizer is being loaded over ssl. This avoids
    836836            // insecure content warnings. This is not attempted if the admin and frontend
    837837            // are on different domains to avoid the case where the frontend doesn't have
     
    985985        api.l10n = window._wpCustomizeControlsL10n;
    986986
    987         // Check if we can run the customizer.
     987        // Check if we can run the Customizer.
    988988        if ( ! api.settings )
    989989            return;
  • trunk/src/wp-admin/js/customize-widgets.js

    r29243 r29903  
    692692
    693693        /**
    694          * Highlight widgets in preview when interacted with in the customizer
     694         * Highlight widgets in preview when interacted with in the Customizer
    695695         */
    696696        _setupHighlightEffects: function() {
     
    14951495
    14961496            /**
    1497              * Expand other customizer sidebar section when dragging a control widget over it,
     1497             * Expand other Customizer sidebar section when dragging a control widget over it,
    14981498             * allowing the control to be dropped into another section
    14991499             */
  • trunk/src/wp-content/themes/twentyeleven/inc/theme-options.php

    r28237 r29903  
    500500
    501501/**
    502  * Implements Twenty Eleven theme options into Theme Customizer
     502 * Implements Twenty Eleven theme options into Customizer
    503503 *
    504504 * @since Twenty Eleven 1.3
    505505 *
    506  * @param object $wp_customize Theme Customizer object.
     506 * @param object $wp_customize Customizer object.
    507507 */
    508508function twentyeleven_customize_register( $wp_customize ) {
     
    534534    ) );
    535535
    536     // Link Color (added to Color Scheme section in Theme Customizer)
     536    // Link Color (added to Color Scheme section in Customizer)
    537537    $wp_customize->add_setting( 'twentyeleven_theme_options[link_color]', array(
    538538        'default'           => twentyeleven_get_default_link_color( $options['color_scheme'] ),
     
    575575
    576576/**
    577  * Bind JS handlers to make Theme Customizer preview reload changes asynchronously.
     577 * Bind JS handlers to make Customizer preview reload changes asynchronously.
    578578 *
    579579 * Used with blogname and blogdescription.
  • trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php

    r29892 r29903  
    11<?php
    22/**
    3  * Twenty Fifteen Theme Customizer.
     3 * Twenty Fifteen Customizer.
    44 *
    55 * @package WordPress
     
    99
    1010/**
    11  * Add postMessage support for site title and description for the Theme Customizer.
    12  *
    13  * @since Twenty Fifteen 1.0
    14  *
    15  * @param WP_Customize_Manager $wp_customize Theme Customizer object.
     11 * Add postMessage support for site title and description for the Customizer.
     12 *
     13 * @since Twenty Fifteen 1.0
     14 *
     15 * @param WP_Customize_Manager $wp_customize Customizer object.
    1616 */
    1717function twentyfifteen_customize_register( $wp_customize ) {
     
    651651
    652652/**
    653  * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
     653 * Binds JS handlers to make Customizer preview reload changes asynchronously.
    654654 *
    655655 * @since Twenty Fifteen 1.0
  • trunk/src/wp-content/themes/twentyfifteen/js/color-scheme-control.js

    r29893 r29903  
    11/* global colorScheme */
    22/**
    3  * Theme Customizer enhancements for a better user experience.
     3 * Customizer enhancements for a better user experience.
    44 *
    55 * Adds listener to Color Scheme control to update other color controls with new values/defaults
  • trunk/src/wp-content/themes/twentyfifteen/js/customizer.js

    r29892 r29903  
    11/**
    2  * Theme Customizer enhancements for a better user experience.
     2 * Customizer enhancements for a better user experience.
    33 *
    4  * Contains handlers to make Theme Customizer preview reload changes asynchronously.
     4 * Contains handlers to make Customizer preview reload changes asynchronously.
    55 */
    66
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r29772 r29903  
    506506require get_template_directory() . '/inc/template-tags.php';
    507507
    508 // Add Theme Customizer functionality.
     508// Add Customizer functionality.
    509509require get_template_directory() . '/inc/customizer.php';
    510510
  • trunk/src/wp-content/themes/twentyfourteen/inc/back-compat.php

    r27595 r29903  
    4040
    4141/**
    42  * Prevent the Theme Customizer from being loaded on WordPress versions prior to 3.6.
     42 * Prevent the Customizer from being loaded on WordPress versions prior to 3.6.
    4343 *
    4444 * @since Twenty Fourteen 1.0
  • trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php

    r29827 r29903  
    11<?php
    22/**
    3  * Twenty Fourteen Theme Customizer support
     3 * Twenty Fourteen Customizer support
    44 *
    55 * @package WordPress
     
    99
    1010/**
    11  * Implement Theme Customizer additions and adjustments.
     11 * Implement Customizer additions and adjustments.
    1212 *
    1313 * @since Twenty Fourteen 1.0
    1414 *
    15  * @param WP_Customize_Manager $wp_customize Theme Customizer object.
     15 * @param WP_Customize_Manager $wp_customize Customizer object.
    1616 */
    1717function twentyfourteen_customize_register( $wp_customize ) {
     
    8181
    8282/**
    83  * Bind JS handlers to make Theme Customizer preview reload changes asynchronously.
     83 * Bind JS handlers to make Customizer preview reload changes asynchronously.
    8484 *
    8585 * @since Twenty Fourteen 1.0
  • trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php

    r29719 r29903  
    9898     * Hide "featured" tag from the front-end.
    9999     *
    100      * Has to run on wp_loaded so that the preview filters of the customizer
     100     * Has to run on wp_loaded so that the preview filters of the Customizer
    101101     * have a chance to alter the value.
    102102     *
     
    397397     * @since Twenty Fourteen 1.0
    398398     *
    399      * @param WP_Customize_Manager $wp_customize Theme Customizer object.
     399     * @param WP_Customize_Manager $wp_customize Customizer object.
    400400     */
    401401    public static function customize_register( $wp_customize ) {
  • trunk/src/wp-content/themes/twentyfourteen/js/customizer.js

    r26668 r29903  
    11/**
    2  * Twenty Fourteen Theme Customizer enhancements for a better user experience.
     2 * Twenty Fourteen Customizer enhancements for a better user experience.
    33 *
    4  * Contains handlers to make Theme Customizer preview reload changes asynchronously.
     4 * Contains handlers to make Customizer preview reload changes asynchronously.
    55 */
    66( function( $ ) {
  • trunk/src/wp-content/themes/twentythirteen/inc/back-compat.php

    r27598 r29903  
    4040
    4141/**
    42  * Prevent the Theme Customizer from being loaded on WordPress versions prior to 3.6.
     42 * Prevent the Customizer from being loaded on WordPress versions prior to 3.6.
    4343 *
    4444 * @since Twenty Thirteen 1.0
  • trunk/src/wp-content/themes/twentythirteen/js/theme-customizer.js

    r24072 r29903  
    11/**
    2  * Theme Customizer enhancements for a better user experience.
     2 * Customizer enhancements for a better user experience.
    33 *
    4  * Contains handlers to make Theme Customizer preview reload changes asynchronously.
     4 * Contains handlers to make Customizer preview reload changes asynchronously.
    55 * Things like site title and description changes.
    66 */
  • trunk/src/wp-content/themes/twentytwelve/js/theme-customizer.js

    r23711 r29903  
    11/**
    2  * Theme Customizer enhancements for a better user experience.
     2 * Customizer enhancements for a better user experience.
    33 *
    4  * Contains handlers to make Theme Customizer preview reload changes asynchronously.
     4 * Contains handlers to make Customizer preview reload changes asynchronously.
    55 * Things like site title, description, and background color changes.
    66 */
  • trunk/src/wp-includes/class-wp-customize-control.php

    r29721 r29903  
    153153
    154154    /**
    155      * Check whether control is active to current customizer preview.
     155     * Check whether control is active to current Customizer preview.
    156156     *
    157157     * @since 4.0.0
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r29788 r29903  
    3838
    3939    /**
    40      * Methods and properties deailing with managing widgets in the customizer.
     40     * Methods and properties deailing with managing widgets in the Customizer.
    4141     *
    4242     * @var WP_Customize_Widgets
     
    8383        add_action( 'wp_redirect_status', array( $this, 'wp_redirect_status' ), 1000 );
    8484
    85         // Do not spawn cron (especially the alternate cron) while running the customizer.
     85        // Do not spawn cron (especially the alternate cron) while running the Customizer.
    8686        remove_action( 'init', 'wp_cron' );
    8787
     
    517517
    518518    /**
    519      * Prints a signature so we can ensure the customizer was properly executed.
     519     * Prints a signature so we can ensure the Customizer was properly executed.
    520520     *
    521521     * @since 3.4.0
     
    526526
    527527    /**
    528      * Removes the signature in case we experience a case where the customizer was not properly executed.
     528     * Removes the signature in case we experience a case where the Customizer was not properly executed.
    529529     *
    530530     * @since 3.4.0
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r29488 r29903  
    117117     * Set up widget addition previews.
    118118     *
    119      * Since the widgets get registered on 'widgets_init' before the customizer
     119     * Since the widgets get registered on 'widgets_init' before the Customizer
    120120     * settings are set up on 'customize_register', we have to filter the options
    121121     * similarly to how the setting previewer will filter the options later.
     
    147147        }
    148148
    149         // Input from customizer preview.
     149        // Input from Customizer preview.
    150150        if ( isset( $_POST['customized'] ) ) {
    151151            $this->_customized = json_decode( $this->get_post_value( 'customized' ), true );
     
    202202     * Ensure that newly-added widgets will appear in the widgets_sidebars.
    203203     *
    204      * This is necessary because the customizer's setting preview filters
     204     * This is necessary because the Customizer's setting preview filters
    205205     * are added after the widgets_init action, which is too late for the
    206206     * widgets to be set up properly.
     
    226226     * will be recognized.
    227227     *
    228      * This is necessary because the customizer's setting preview
     228     * This is necessary because the Customizer's setting preview
    229229     * filters are added after the widgets_init action, which is
    230230     * too late for the widgets to be set up properly.
     
    288288     * Override sidebars_widgets for theme switch.
    289289     *
    290      * When switching a theme via the customizer, supply any previously-configured
     290     * When switching a theme via the Customizer, supply any previously-configured
    291291     * sidebars_widgets from the target theme as the initial sidebars_widgets
    292292     * setting. Also store the old theme's existing settings so that they can
     
    314314
    315315    /**
    316      * Filter old_sidebars_widgets_data customizer setting.
     316     * Filter old_sidebars_widgets_data Customizer setting.
    317317     *
    318318     * When switching themes, filter the Customizer setting
     
    389389
    390390    /**
    391      * Register customizer settings and controls for all sidebars and widgets.
     391     * Register Customizer settings and controls for all sidebars and widgets.
    392392     *
    393393     * @since 3.9.0
     
    535535
    536536    /**
    537      * Covert a widget_id into its corresponding customizer setting ID (option name).
     537     * Covert a widget_id into its corresponding Customizer setting ID (option name).
    538538     *
    539539     * @since 3.9.0
     
    557557     *
    558558     * Core widgets which may have controls wider than 250, but can
    559      * still be shown in the narrow customizer panel. The RSS and Text
     559     * still be shown in the narrow Customizer panel. The RSS and Text
    560560     * widgets in Core, for example, have widths of 400 and yet they
    561      * still render fine in the customizer panel. This method will
     561     * still render fine in the Customizer panel. This method will
    562562     * return all Core widgets as being not wide, but this can be
    563563     * overridden with the is_wide_widget_in_customizer filter.
     
    665665
    666666    /**
    667      * Enqueue scripts and styles for customizer panel and export data to JavaScript.
     667     * Enqueue scripts and styles for Customizer panel and export data to JavaScript.
    668668     *
    669669     * @since 3.9.0
     
    965965
    966966    /**
    967      * Add hooks for the customizer preview.
     967     * Add hooks for the Customizer preview.
    968968     *
    969969     * @since 3.9.0
     
    983983     * (via wp_convert_widget_settings()) and can set global variable
    984984     * $_wp_sidebars_widgets to the value of get_option( 'sidebars_widgets' )
    985      * before the customizer preview filter is added, we have to reset
     985     * before the Customizer preview filter is added, we have to reset
    986986     * it after the filter has been added.
    987987     *
     
    10401040    public function export_preview_data() {
    10411041
    1042         // Prepare customizer settings to pass to Javascript.
     1042        // Prepare Customizer settings to pass to Javascript.
    10431043        $settings = array(
    10441044            'renderedSidebars'   => array_fill_keys( array_unique( $this->rendered_sidebars ), true ),
  • trunk/src/wp-includes/js/customize-loader.js

    r29838 r29903  
    1717     * an iframe overlay with the URL specified.
    1818     *
    19      *     e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open customizer</a>
     19     *     e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open Customizer</a>
    2020     *
    2121     * @augments wp.customize.Events
     
    4646                event.preventDefault();
    4747
    48                 // Store a reference to the link that opened the customizer.
     48                // Store a reference to the link that opened the Customizer.
    4949                Loader.link = $(this);
    5050                // Load the theme.
     
    9191
    9292        /**
    93          * Open the customizer overlay for a specific URL.
     93         * Open the Customizer overlay for a specific URL.
    9494         *
    9595         * @param  string src URL to load in the Customizer.
     
    109109            this.body.addClass('customize-loading');
    110110
    111             // Dirty state of customizer in iframe
     111            // Dirty state of Customizer in iframe
    112112            this.saved = new api.Value( true );
    113113
     
    171171
    172172        /**
    173          * Callback after the customizer has been opened.
     173         * Callback after the Customizer has been opened.
    174174         */
    175175        opened: function() {
     
    185185            }
    186186
    187             // Display AYS dialog if customizer is dirty
     187            // Display AYS dialog if Customizer is dirty
    188188            if ( ! this.saved() && ! confirm( Loader.settings.l10n.saveAlert ) ) {
    189189                // Go forward since Customizer is exited by history.back()
     
    203203
    204204        /**
    205          * Callback after the customizer has been closed.
     205         * Callback after the Customizer has been closed.
    206206         */
    207207        closed: function() {
  • trunk/src/wp-includes/theme.php

    r29840 r29903  
    805805    } else {
    806806        /*
    807          * Since retrieve_widgets() is called when initializing the customizer theme,
     807         * Since retrieve_widgets() is called when initializing a theme in the Customizer,
    808808         * we need to to remove the theme mods to avoid overwriting changes made via
    809          * the widget customizer when accessing wp-admin/widgets.php.
     809         * the Customizer when accessing wp-admin/widgets.php.
    810810         */
    811811        if ( 'wp_ajax_customize_save' === current_action() ) {
     
    19471947
    19481948/**
    1949  * Returns a URL to load the theme customizer.
     1949 * Returns a URL to load the Customizer.
    19501950 *
    19511951 * @since 3.4.0
     
    19621962
    19631963/**
    1964  * Prints a script to check whether or not the customizer is supported,
     1964 * Prints a script to check whether or not the Customizer is supported,
    19651965 * and apply either the no-customize-support or customize-support class
    19661966 * to the body.
  • trunk/src/wp-includes/widgets.php

    r29276 r29903  
    14071407 *
    14081408 * @param mixed $theme_changed Whether the theme was changed as a boolean. A value
    1409  *                             of 'customize' defers updates for the customizer.
     1409 *                             of 'customize' defers updates for the Customizer.
    14101410 * @return array
    14111411 */
Note: See TracChangeset for help on using the changeset viewer.