Make WordPress Core

Ticket #29947: 29947-customize-patch.2.diff

File 29947-customize-patch.2.diff, 11.1 KB (added by tareq1988, 11 years ago)

This one has all the replacement of theme customizer

  • wp-admin/customize.php

     
    132132                <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() ) {
    138138                                                        /* translators: %s is the theme name in the Customize/Live Preview pane */
  • wp-admin/includes/template.php

     
    20292029                }
    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 ) {
    20352035                        $selector = '.theme.active .customize';
  • wp-content/themes/twentyeleven/inc/theme-options.php

     
    499499add_filter( 'body_class', 'twentyeleven_layout_classes' );
    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 ) {
    509509        $wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
     
    533533                'priority' => 5,
    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'] ),
    539539                'type'              => 'option',
     
    574574add_action( 'customize_register', 'twentyeleven_customize_register' );
    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.
    580580 *
  • wp-content/themes/twentyfifteen/inc/customizer.php

     
    11<?php
    22/**
    3  * Twenty Fifteen Theme Customizer.
     3 * Twenty Fifteen Customizer.
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Fifteen
     
    88 */
    99
    1010/**
    11  * Add postMessage support for site title and description for the Theme Customizer.
     11 * Add postMessage support for site title and description for the Customizer.
    1212 *
    1313 * @since Twenty Fifteen 1.0
    1414 *
    15  * @param WP_Customize_Manager $wp_customize Theme Customizer object.
     15 * @param WP_Customize_Manager $wp_customize Customizer object.
    1616 */
    1717function twentyfifteen_customize_register( $wp_customize ) {
    1818        $color_scheme = twentyfifteen_get_color_scheme();
     
    650650add_action( 'wp_enqueue_scripts', 'twentyfifteen_color_scheme_css' );
    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
    656656 */
  • wp-content/themes/twentyfifteen/js/color-scheme-control.js

     
    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
    66 */
  • wp-content/themes/twentyfifteen/js/customizer.js

     
    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
    77( function( $ ) {
  • wp-content/themes/twentyfourteen/functions.php

     
    505505// Custom template tags for this theme.
    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
    511511/*
  • wp-content/themes/twentyfourteen/inc/back-compat.php

     
    3939}
    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
    4545 */
  • wp-content/themes/twentyfourteen/inc/customizer.php

     
    11<?php
    22/**
    3  * Twenty Fourteen Theme Customizer support
     3 * Twenty Fourteen Customizer support
    44 *
    55 * @package WordPress
    66 * @subpackage Twenty_Fourteen
     
    88 */
    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 ) {
    1818        // Add postMessage support for site title and description.
     
    8080}
    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
    8686 */
  • wp-content/themes/twentyfourteen/inc/featured-content.php

     
    396396         * @access public
    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 ) {
    402402                $wp_customize->add_section( 'featured_content', array(
  • wp-content/themes/twentyfourteen/js/customizer.js

     
    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( $ ) {
    77        // Site title and description.
  • wp-content/themes/twentythirteen/inc/back-compat.php

     
    3939}
    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
    4545 */
  • wp-content/themes/twentythirteen/js/theme-customizer.js

     
    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 */
    77
  • wp-content/themes/twentytwelve/js/theme-customizer.js

     
    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 */
    77
  • wp-includes/theme.php

     
    19461946add_action( 'admin_enqueue_scripts', '_wp_customize_loader_settings' );
    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
    19521952 *