Changeset 38829 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 10/19/2016 06:14:21 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r38813 r38829 301 301 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' ); 302 302 303 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-custom-css-setting.php' ); 303 304 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' ); 304 305 require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' ); … … 2494 2495 <ul> 2495 2496 <# _.each( data.notifications, function( notification ) { #> 2496 <li class="notice notice-{{ notification.type || 'info' }} {{ data.altNotice ? 'notice-alt' : '' }}" data-code="{{ notification.code }}" data-type="{{ notification.type }}">{{ notification.message || notification.code}}</li>2497 <li class="notice notice-{{ notification.type || 'info' }} {{ data.altNotice ? 'notice-alt' : '' }}" data-code="{{ notification.code }}" data-type="{{ notification.type }}">{{{ notification.message || notification.code }}}</li> 2497 2498 <# } ); #> 2498 2499 </ul> … … 3221 3222 ) ) ); 3222 3223 3223 3224 3224 /* Custom Header */ 3225 3225 … … 3367 3367 'type' => 'dropdown-pages', 3368 3368 ) ); 3369 3370 /* Custom CSS */ 3371 $this->add_section( 'custom_css', array( 3372 'title' => __( 'Additional CSS' ), 3373 'priority' => 140, 3374 'description_hidden' => true, 3375 'description' => sprintf( '%s<br /><a href="%s" class="external-link" target="_blank">%s<span class="screen-reader-text">%s</span></a>', 3376 __( 'CSS allows you to customize the appearance and layout of your site with code. Separate CSS is saved for each of your themes.' ), 3377 'https://codex.wordpress.org/Know_Your_Sources#CSS', 3378 __( 'Learn more about CSS' ), 3379 __( '(link opens in a new window)' ) 3380 ), 3381 ) ); 3382 3383 $custom_css_setting = new WP_Customize_Custom_CSS_Setting( $this, sprintf( 'custom_css[%s]', get_stylesheet() ), array( 3384 'capability' => 'unfiltered_css', 3385 ) ); 3386 $this->add_setting( $custom_css_setting ); 3387 3388 $this->add_control( 'custom_css', array( 3389 'type' => 'textarea', 3390 'section' => 'custom_css', 3391 'settings' => array( 'default' => $custom_css_setting->id ), 3392 ) ); 3369 3393 } 3370 3394 … … 3389 3413 } 3390 3414 } 3391 3392 3415 return 0 !== count( get_pages() ); 3393 3416 }
Note: See TracChangeset
for help on using the changeset viewer.