Ticket #20876: 20876.patch
| File 20876.patch, 1.1 KB (added by , 14 years ago) |
|---|
-
wp-includes/class-wp-customize-manager.php
31 31 require( ABSPATH . WPINC . '/class-wp-customize-section.php' ); 32 32 require( ABSPATH . WPINC . '/class-wp-customize-control.php' ); 33 33 34 add_filter( 'wp_die_handler', array( $this, 'wp_die_handler' ) ); 35 34 36 add_action( 'setup_theme', array( $this, 'setup_theme' ) ); 35 37 add_action( 'wp_loaded', array( $this, 'wp_loaded' ) ); 36 38 … … 53 55 } 54 56 55 57 /** 58 * Return the AJAX wp_die() handler if it's a customized request. 59 * 60 * @since 3.4.0 61 */ 62 public function wp_die_handler() { 63 if ( isset( $_POST['customized'] ) ) 64 return '_ajax_wp_die_handler'; 65 66 return '_default_wp_die_handler'; 67 } 68 69 /** 56 70 * Update theme modifications for the current theme. 57 71 * Note: Candidate core function. 58 72 * http://core.trac.wordpress.org/ticket/20091 … … 967 981 return '#' . $unhashed; 968 982 969 983 return $color; 970 } 971 No newline at end of file 984 }