Make WordPress Core


Ignore:
Timestamp:
10/15/2014 05:20:34 PM (12 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 ),
Note: See TracChangeset for help on using the changeset viewer.