Changeset 61457
- Timestamp:
- 01/09/2026 04:26:02 AM (4 weeks ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 7 edited
-
IXR/class-IXR-client.php (modified) (1 diff)
-
class-wp-duotone.php (modified) (4 diffs)
-
class-wp-hook.php (modified) (1 diff)
-
class-wp-theme.php (modified) (3 diffs)
-
deprecated.php (modified) (3 diffs)
-
pluggable.php (modified) (1 diff)
-
theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/IXR/class-IXR-client.php
r48238 r61457 32 32 $bits = parse_url($server); 33 33 $this->server = $bits['host']; 34 $this->port = isset($bits['port']) ? $bits['port'] :80;35 $this->path = isset($bits['path']) ? $bits['path'] :'/';34 $this->port = $bits['port'] ?? 80; 35 $this->path = $bits['path'] ?? '/'; 36 36 37 37 // Make absolutely sure we have a path -
trunk/src/wp-includes/class-wp-duotone.php
r61299 r61457 210 210 ); 211 211 212 $factor = isset( $angle_units[ $unit ] ) ? $angle_units[ $unit ] :1;212 $factor = $angle_units[ $unit ] ?? 1; 213 213 214 214 return (float) $value * $factor; … … 973 973 * treated as a selector and requires scoping. 974 974 */ 975 $experimental_duotone = isset( $block_type->supports['color']['__experimentalDuotone'] ) 976 ? $block_type->supports['color']['__experimentalDuotone'] 977 : false; 975 $experimental_duotone = $block_type->supports['color']['__experimentalDuotone'] ?? false; 978 976 if ( $experimental_duotone ) { 979 977 $root_selector = wp_get_block_css_selector( $block_type ); … … 1004 1002 // Get the per block settings from the theme.json. 1005 1003 $tree = wp_get_global_settings(); 1006 $presets_by_origin = isset( $tree['color']['duotone'] ) ? $tree['color']['duotone'] :array();1004 $presets_by_origin = $tree['color']['duotone'] ?? array(); 1007 1005 1008 1006 self::$global_styles_presets = array(); … … 1305 1303 */ 1306 1304 public static function migrate_experimental_duotone_support_flag( $settings, $metadata ) { 1307 $duotone_support = isset( $metadata['supports']['color']['__experimentalDuotone'] ) 1308 ? $metadata['supports']['color']['__experimentalDuotone'] 1309 : null; 1305 $duotone_support = $metadata['supports']['color']['__experimentalDuotone'] ?? null; 1310 1306 1311 1307 if ( ! isset( $settings['supports']['filter']['duotone'] ) && null !== $duotone_support ) { -
trunk/src/wp-includes/class-wp-hook.php
r61118 r61457 493 493 #[ReturnTypeWillChange] 494 494 public function offsetGet( $offset ) { 495 return isset( $this->callbacks[ $offset ] ) ? $this->callbacks[ $offset ] :null;495 return $this->callbacks[ $offset ] ?? null; 496 496 } 497 497 -
trunk/src/wp-includes/class-wp-theme.php
r61299 r61457 516 516 } 517 517 // Set the parent. Pass the current instance so we can do the checks above and assess errors. 518 $this->parent = new WP_Theme( $this->template, isset( $theme_root_template ) ? $theme_root_template :$this->theme_root, $this );518 $this->parent = new WP_Theme( $this->template, $theme_root_template ?? $this->theme_root, $this ); 519 519 } 520 520 … … 777 777 */ 778 778 public function parent() { 779 return isset( $this->parent ) ? $this->parent :false;779 return $this->parent ?? false; 780 780 } 781 781 … … 1398 1398 1399 1399 $post_templates = $this->get_post_templates(); 1400 $post_templates = isset( $post_templates[ $post_type ] ) ? $post_templates[ $post_type ] :array();1400 $post_templates = $post_templates[ $post_type ] ?? array(); 1401 1401 1402 1402 /** -
trunk/src/wp-includes/deprecated.php
r61411 r61457 4265 4265 _deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' ); 4266 4266 4267 $border_support = isset( $block_type->supports['__experimentalBorder'] ) 4268 ? $block_type->supports['__experimentalBorder'] 4269 : false; 4267 $border_support = $block_type->supports['__experimentalBorder'] ?? false; 4270 4268 4271 4269 return is_array( $border_support ) && … … 4289 4287 _deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' ); 4290 4288 4291 $dimensions_support = isset( $block_type->supports['__experimentalDimensions'] ) 4292 ? $block_type->supports['__experimentalDimensions'] 4293 : false; 4289 $dimensions_support = $block_type->supports['__experimentalDimensions'] ?? false; 4294 4290 4295 4291 return is_array( $dimensions_support ) && … … 4313 4309 _deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' ); 4314 4310 4315 $spacing_support = isset( $block_type->supports['spacing'] ) 4316 ? $block_type->supports['spacing'] 4317 : false; 4311 $spacing_support = $block_type->supports['spacing'] ?? false; 4318 4312 4319 4313 return is_array( $spacing_support ) && -
trunk/src/wp-includes/pluggable.php
r61387 r61457 1723 1723 * @param string $host The host name of the redirect destination; empty string if not set. 1724 1724 */ 1725 $allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] ), isset( $lp['host'] ) ? $lp['host'] :'' );1725 $allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] ), $lp['host'] ?? '' ); 1726 1726 1727 1727 if ( isset( $lp['host'] ) && ( ! in_array( $lp['host'], $allowed_hosts, true ) && strtolower( $wpp['host'] ) !== $lp['host'] ) ) { -
trunk/src/wp-includes/theme.php
r61440 r61457 1105 1105 function set_theme_mod( $name, $value ) { 1106 1106 $mods = get_theme_mods(); 1107 $old_value = isset( $mods[ $name ] ) ? $mods[ $name ] :false;1107 $old_value = $mods[ $name ] ?? false; 1108 1108 1109 1109 /** … … 3429 3429 } 3430 3430 3431 return isset( $_wp_registered_theme_features[ $feature ] ) ? $_wp_registered_theme_features[ $feature ] :null;3431 return $_wp_registered_theme_features[ $feature ] ?? null; 3432 3432 } 3433 3433
Note: See TracChangeset
for help on using the changeset viewer.