Changeset 21354 for trunk/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 07/26/2012 09:45:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize-manager.php
r21135 r21354 1 1 <?php 2 2 /** 3 * Customize 3 * Customize Manager. 4 4 * 5 5 * @package WordPress … … 7 7 * @since 3.4.0 8 8 */ 9 10 9 final class WP_Customize_Manager { 11 10 protected $theme; … … 57 56 } 58 57 59 58 /** 60 59 * Return true if it's an AJAX request. 61 60 * 62 61 * @since 3.4.0 62 * 63 * @return bool 63 64 */ 64 65 public function doing_ajax() { … … 70 71 * or the AJAX message. 71 72 * 72 * @ param mixed $ajax_message AJAX return73 * @param mixed $message UI message74 * 75 * @ since 3.4.073 * @since 3.4.0 74 * 75 * @param mixed $ajax_message AJAX return 76 * @param mixed $message UI message 76 77 */ 77 78 protected function wp_die( $ajax_message, $message = null ) { … … 89 90 * 90 91 * @since 3.4.0 92 * 93 * @return string 91 94 */ 92 95 public function wp_die_handler() { … … 96 99 return '_default_wp_die_handler'; 97 100 } 98 /** 99 * Start preview and customize theme. 100 * 101 * Check if customize query variable exist. Init filters to filter the current theme. 101 102 /** 103 * Start preview and customize theme. 104 * 105 * Check if customize query variable exist. Init filters to filter the current theme. 102 106 * 103 107 * @since 3.4.0 … … 137 141 $this->start_previewing_theme(); 138 142 } 139 143 144 /** 145 * Callback to validate a theme once it is loaded 146 * 147 * @since 3.4.0 148 */ 140 149 function after_setup_theme() { 141 150 if ( ! $this->doing_ajax() && ! validate_current_theme() ) { … … 280 289 * 281 290 * @since 3.4.0 291 * 292 * @param $status 293 * @return int 282 294 */ 283 295 public function wp_redirect_status( $status ) { … … 292 304 * 293 305 * @since 3.4.0 306 * 307 * @param mixed $setting A WP_Customize_Setting derived object 308 * @return string Sanitized attribute 294 309 */ 295 310 public function post_value( $setting ) { … … 368 383 369 384 if ( 2 == $this->nonce_tick ) { 370 371 372 373 374 385 $settings['nonce'] = array( 386 'save' => wp_create_nonce( 'save-customize_' . $this->get_stylesheet() ), 387 'preview' => wp_create_nonce( 'preview-customize_' . $this->get_stylesheet() ) 388 ); 389 } 375 390 376 391 foreach ( $this->settings as $id => $setting ) { … … 465 480 * @since 3.4.0 466 481 * 482 * @param $current_theme {@internal Parameter is not used} 467 483 * @return string Theme name. 468 484 */ … … 631 647 * @param object $a Object A. 632 648 * @param object $b Object B. 649 * @return int 633 650 */ 634 651 protected final function _cmp_priority( $a, $b ) { … … 961 978 * 962 979 * @since 3.4.0 980 * 981 * @param string $color 982 * @return string 963 983 */ 964 984 public function _sanitize_header_textcolor( $color ) { … … 974 994 * 975 995 * @since 3.4.0 996 * 997 * @param string $color 998 * @return string|null 976 999 */ 977 1000 function sanitize_hex_color( $color ) { … … 996 1019 * 997 1020 * @since 3.4.0 1021 * @uses sanitize_hex_color() 1022 * 1023 * @param string $color 1024 * @return string|null 998 1025 */ 999 1026 function sanitize_hex_color_no_hash( $color ) { … … 1013 1040 * 1014 1041 * @since 3.4.0 1042 * 1043 * @param string $color 1044 * @return string 1015 1045 */ 1016 1046 function maybe_hash_hex_color( $color ) {
Note: See TracChangeset
for help on using the changeset viewer.