Changeset 55129 for trunk/src/wp-includes/class-wp-theme-json.php
- Timestamp:
- 01/24/2023 03:43:53 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r55121 r55129 2312 2312 * @since 6.0.0 2313 2313 * 2314 * @param array $data The data to inspect.2315 * @param bool|array $path Boolean or path to a boolean.2316 * @param bool $default Default value if the referenced path is missing.2317 * Default false.2314 * @param array $data The data to inspect. 2315 * @param bool|array $path Boolean or path to a boolean. 2316 * @param bool $default_value Default value if the referenced path is missing. 2317 * Default false. 2318 2318 * @return bool Value of boolean metadata. 2319 2319 */ 2320 protected static function get_metadata_boolean( $data, $path, $default = false ) {2320 protected static function get_metadata_boolean( $data, $path, $default_value = false ) { 2321 2321 if ( is_bool( $path ) ) { 2322 2322 return $path; … … 2330 2330 } 2331 2331 2332 return $default ;2332 return $default_value; 2333 2333 } 2334 2334
Note: See TracChangeset
for help on using the changeset viewer.