Changeset 31370 for trunk/src/wp-includes/class-wp-customize-setting.php
- Timestamp:
- 02/08/2015 11:10:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-setting.php
r31329 r31370 54 54 55 55 protected $id_data = array(); 56 57 /**58 * Cached and sanitized $_POST value for the setting.59 *60 * @access private61 * @var mixed62 */63 private $_post_value;64 56 65 57 /** … … 164 156 public function _preview_filter( $original ) { 165 157 $undefined = new stdClass(); // symbol hack 166 $post_value = $this-> manager->post_value( $this,$undefined );158 $post_value = $this->post_value( $undefined ); 167 159 if ( $undefined === $post_value ) { 168 160 $value = $this->_original_value; … … 212 204 */ 213 205 final public function post_value( $default = null ) { 214 // Check for a cached value 215 if ( isset( $this->_post_value ) ) 216 return $this->_post_value; 217 218 // Call the manager for the post value 219 $result = $this->manager->post_value( $this ); 220 221 if ( isset( $result ) ) 222 return $this->_post_value = $result; 223 else 224 return $default; 206 return $this->manager->post_value( $this, $default ); 225 207 } 226 208
Note: See TracChangeset
for help on using the changeset viewer.