Ticket #29947: 29947-customize-patch.2.diff
File 29947-customize-patch.2.diff, 11.1 KB (added by , 11 years ago) |
---|
-
wp-admin/customize.php
132 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 --> 133 133 <div class="wp-full-overlay-sidebar-content accordion-container" tabindex="-1"> 134 134 <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( ' ThemeCustomizer Options' ); ?>" tabindex="0">135 <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>" tabindex="0"> 136 136 <span class="preview-notice"><?php 137 137 if ( ! $wp_customize->is_theme_active() ) { 138 138 /* translators: %s is the theme name in the Customize/Live Preview pane */ -
wp-admin/includes/template.php
2029 2029 } 2030 2030 2031 2031 $content = '<h3>' . __( 'New Feature: Live Widget Previews' ) . '</h3>'; 2032 $content .= '<p>' . __( 'Add, edit, and play around with your widgets from the themecustomizer.' ) . ' ' . __( 'Preview your changes in real-time and only save them when you’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’re ready.' ) . '</p>'; 2033 2033 2034 2034 if ( 'themes' === get_current_screen()->id ) { 2035 2035 $selector = '.theme.active .customize'; -
wp-content/themes/twentyeleven/inc/theme-options.php
499 499 add_filter( 'body_class', 'twentyeleven_layout_classes' ); 500 500 501 501 /** 502 * Implements Twenty Eleven theme options into ThemeCustomizer502 * Implements Twenty Eleven theme options into Customizer 503 503 * 504 504 * @since Twenty Eleven 1.3 505 505 * 506 * @param object $wp_customize ThemeCustomizer object.506 * @param object $wp_customize Customizer object. 507 507 */ 508 508 function twentyeleven_customize_register( $wp_customize ) { 509 509 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; … … 533 533 'priority' => 5, 534 534 ) ); 535 535 536 // Link Color (added to Color Scheme section in ThemeCustomizer)536 // Link Color (added to Color Scheme section in Customizer) 537 537 $wp_customize->add_setting( 'twentyeleven_theme_options[link_color]', array( 538 538 'default' => twentyeleven_get_default_link_color( $options['color_scheme'] ), 539 539 'type' => 'option', … … 574 574 add_action( 'customize_register', 'twentyeleven_customize_register' ); 575 575 576 576 /** 577 * Bind JS handlers to make ThemeCustomizer preview reload changes asynchronously.577 * Bind JS handlers to make Customizer preview reload changes asynchronously. 578 578 * 579 579 * Used with blogname and blogdescription. 580 580 * -
wp-content/themes/twentyfifteen/inc/customizer.php
1 1 <?php 2 2 /** 3 * Twenty Fifteen ThemeCustomizer.3 * Twenty Fifteen Customizer. 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fifteen … … 8 8 */ 9 9 10 10 /** 11 * Add postMessage support for site title and description for the ThemeCustomizer.11 * Add postMessage support for site title and description for the Customizer. 12 12 * 13 13 * @since Twenty Fifteen 1.0 14 14 * 15 * @param WP_Customize_Manager $wp_customize ThemeCustomizer object.15 * @param WP_Customize_Manager $wp_customize Customizer object. 16 16 */ 17 17 function twentyfifteen_customize_register( $wp_customize ) { 18 18 $color_scheme = twentyfifteen_get_color_scheme(); … … 650 650 add_action( 'wp_enqueue_scripts', 'twentyfifteen_color_scheme_css' ); 651 651 652 652 /** 653 * Binds JS handlers to make ThemeCustomizer preview reload changes asynchronously.653 * Binds JS handlers to make Customizer preview reload changes asynchronously. 654 654 * 655 655 * @since Twenty Fifteen 1.0 656 656 */ -
wp-content/themes/twentyfifteen/js/color-scheme-control.js
1 1 /* global colorScheme */ 2 2 /** 3 * ThemeCustomizer enhancements for a better user experience.3 * Customizer enhancements for a better user experience. 4 4 * 5 5 * Adds listener to Color Scheme control to update other color controls with new values/defaults 6 6 */ -
wp-content/themes/twentyfifteen/js/customizer.js
1 1 /** 2 * ThemeCustomizer enhancements for a better user experience.2 * Customizer enhancements for a better user experience. 3 3 * 4 * Contains handlers to make ThemeCustomizer preview reload changes asynchronously.4 * Contains handlers to make Customizer preview reload changes asynchronously. 5 5 */ 6 6 7 7 ( function( $ ) { -
wp-content/themes/twentyfourteen/functions.php
505 505 // Custom template tags for this theme. 506 506 require get_template_directory() . '/inc/template-tags.php'; 507 507 508 // Add ThemeCustomizer functionality.508 // Add Customizer functionality. 509 509 require get_template_directory() . '/inc/customizer.php'; 510 510 511 511 /* -
wp-content/themes/twentyfourteen/inc/back-compat.php
39 39 } 40 40 41 41 /** 42 * Prevent the ThemeCustomizer from being loaded on WordPress versions prior to 3.6.42 * Prevent the Customizer from being loaded on WordPress versions prior to 3.6. 43 43 * 44 44 * @since Twenty Fourteen 1.0 45 45 */ -
wp-content/themes/twentyfourteen/inc/customizer.php
1 1 <?php 2 2 /** 3 * Twenty Fourteen ThemeCustomizer support3 * Twenty Fourteen Customizer support 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen … … 8 8 */ 9 9 10 10 /** 11 * Implement ThemeCustomizer additions and adjustments.11 * Implement Customizer additions and adjustments. 12 12 * 13 13 * @since Twenty Fourteen 1.0 14 14 * 15 * @param WP_Customize_Manager $wp_customize ThemeCustomizer object.15 * @param WP_Customize_Manager $wp_customize Customizer object. 16 16 */ 17 17 function twentyfourteen_customize_register( $wp_customize ) { 18 18 // Add postMessage support for site title and description. … … 80 80 } 81 81 82 82 /** 83 * Bind JS handlers to make ThemeCustomizer preview reload changes asynchronously.83 * Bind JS handlers to make Customizer preview reload changes asynchronously. 84 84 * 85 85 * @since Twenty Fourteen 1.0 86 86 */ -
wp-content/themes/twentyfourteen/inc/featured-content.php
396 396 * @access public 397 397 * @since Twenty Fourteen 1.0 398 398 * 399 * @param WP_Customize_Manager $wp_customize ThemeCustomizer object.399 * @param WP_Customize_Manager $wp_customize Customizer object. 400 400 */ 401 401 public static function customize_register( $wp_customize ) { 402 402 $wp_customize->add_section( 'featured_content', array( -
wp-content/themes/twentyfourteen/js/customizer.js
1 1 /** 2 * Twenty Fourteen ThemeCustomizer enhancements for a better user experience.2 * Twenty Fourteen Customizer enhancements for a better user experience. 3 3 * 4 * Contains handlers to make ThemeCustomizer preview reload changes asynchronously.4 * Contains handlers to make Customizer preview reload changes asynchronously. 5 5 */ 6 6 ( function( $ ) { 7 7 // Site title and description. -
wp-content/themes/twentythirteen/inc/back-compat.php
39 39 } 40 40 41 41 /** 42 * Prevent the ThemeCustomizer from being loaded on WordPress versions prior to 3.6.42 * Prevent the Customizer from being loaded on WordPress versions prior to 3.6. 43 43 * 44 44 * @since Twenty Thirteen 1.0 45 45 */ -
wp-content/themes/twentythirteen/js/theme-customizer.js
1 1 /** 2 * ThemeCustomizer enhancements for a better user experience.2 * Customizer enhancements for a better user experience. 3 3 * 4 * Contains handlers to make ThemeCustomizer preview reload changes asynchronously.4 * Contains handlers to make Customizer preview reload changes asynchronously. 5 5 * Things like site title and description changes. 6 6 */ 7 7 -
wp-content/themes/twentytwelve/js/theme-customizer.js
1 1 /** 2 * ThemeCustomizer enhancements for a better user experience.2 * Customizer enhancements for a better user experience. 3 3 * 4 * Contains handlers to make ThemeCustomizer preview reload changes asynchronously.4 * Contains handlers to make Customizer preview reload changes asynchronously. 5 5 * Things like site title, description, and background color changes. 6 6 */ 7 7 -
wp-includes/theme.php
1946 1946 add_action( 'admin_enqueue_scripts', '_wp_customize_loader_settings' ); 1947 1947 1948 1948 /** 1949 * Returns a URL to load the themecustomizer.1949 * Returns a URL to load the customizer. 1950 1950 * 1951 1951 * @since 3.4.0 1952 1952 *