Changeset 53257 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 04/25/2022 01:27:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r52978 r53257 239 239 * @since 3.9.0 240 240 * 241 * @param string $name Post value.242 * @param mixed $default Default post value.241 * @param string $name Post value. 242 * @param mixed $default_value Default post value. 243 243 * @return mixed Unslashed post value or default value. 244 244 */ 245 protected function get_post_value( $name, $default = null ) {245 protected function get_post_value( $name, $default_value = null ) { 246 246 if ( ! isset( $_POST[ $name ] ) ) { 247 return $default ;247 return $default_value; 248 248 } 249 249 … … 2058 2058 * @since 4.2.0 2059 2059 * 2060 * @param string $option_name Option name.2061 * @param mixed $default 2060 * @param string $option_name Option name. 2061 * @param mixed $default_value Optional. Default value to return if the option does not exist. Default false. 2062 2062 * @return mixed Value set for the option. 2063 2063 */ 2064 protected function get_captured_option( $option_name, $default = false ) {2064 protected function get_captured_option( $option_name, $default_value = false ) { 2065 2065 if ( array_key_exists( $option_name, $this->_captured_options ) ) { 2066 2066 $value = $this->_captured_options[ $option_name ]; 2067 2067 } else { 2068 $value = $default ;2068 $value = $default_value; 2069 2069 } 2070 2070 return $value;
Note: See TracChangeset
for help on using the changeset viewer.