Changeset 61433
- Timestamp:
- 01/05/2026 05:39:38 AM (2 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 5 edited
-
class-wp-customize-nav-menus.php (modified) (1 diff)
-
class-wp-customize-setting.php (modified) (1 diff)
-
class-wp-customize-widgets.php (modified) (2 diffs)
-
customize/class-wp-customize-header-image-setting.php (modified) (1 diff)
-
customize/class-wp-customize-nav-menu-item-setting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r60909 r61433 1252 1252 <?php endif; ?> 1253 1253 <?php endif; ?> 1254 <ul class="available-menu-items-list" data-type="<?php echo esc_attr( $available_item_type['type'] ); ?>" data-object="<?php echo esc_attr( $available_item_type['object'] ); ?>" data-type_label="<?php echo esc_attr( isset( $available_item_type['type_label'] ) ? $available_item_type['type_label'] :$available_item_type['type'] ); ?>"></ul>1254 <ul class="available-menu-items-list" data-type="<?php echo esc_attr( $available_item_type['type'] ); ?>" data-object="<?php echo esc_attr( $available_item_type['object'] ); ?>" data-type_label="<?php echo esc_attr( $available_item_type['type_label'] ?? $available_item_type['type'] ); ?>"></ul> 1255 1255 </div> 1256 1256 </div> -
trunk/src/wp-includes/class-wp-customize-setting.php
r61387 r61433 942 942 final protected function multidimensional_get( $root, $keys, $default_value = null ) { 943 943 if ( empty( $keys ) ) { // If there are no keys, test the root. 944 return isset( $root ) ? $root :$default_value;944 return $root ?? $default_value; 945 945 } 946 946 -
trunk/src/wp-includes/class-wp-customize-widgets.php
r60909 r61433 925 925 <?php 926 926 $panel = $this->manager->get_panel( 'widgets' ); 927 $panel_title = isset( $panel->title ) ? $panel->title :__( 'Widgets' );927 $panel_title = $panel->title ?? __( 'Widgets' ); 928 928 /* translators: ▸ is the unicode right-pointing triangle. %s: Section title in the Customizer. */ 929 929 printf( __( 'Customizing ▸ %s' ), esc_html( $panel_title ) ); … … 1124 1124 $available_widget, 1125 1125 array( 1126 'temp_id' => isset( $args['_temp_id'] ) ? $args['_temp_id'] :null,1126 'temp_id' => $args['_temp_id'] ?? null, 1127 1127 'is_multi' => $is_multi_widget, 1128 1128 'control_tpl' => $control_tpl, -
trunk/src/wp-includes/customize/class-wp-customize-header-image-setting.php
r56193 r61433 41 41 require_once ABSPATH . 'wp-admin/includes/class-custom-image-header.php'; 42 42 $args = get_theme_support( 'custom-header' ); 43 $admin_head_callback = isset( $args[0]['admin-head-callback'] ) ? $args[0]['admin-head-callback'] :null;44 $admin_preview_callback = isset( $args[0]['admin-preview-callback'] ) ? $args[0]['admin-preview-callback'] :null;43 $admin_head_callback = $args[0]['admin-head-callback'] ?? null; 44 $admin_preview_callback = $args[0]['admin-preview-callback'] ?? null; 45 45 $custom_image_header = new Custom_Image_Header( $admin_head_callback, $admin_preview_callback ); 46 46 } -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
r60815 r61433 253 253 if ( is_array( $value ) ) { 254 254 $value_obj = (object) $value; 255 $value['type_label'] = isset( $type_label ) ? $type_label :$this->get_type_label( $value_obj );255 $value['type_label'] = $type_label ?? $this->get_type_label( $value_obj ); 256 256 $value['original_title'] = $this->get_original_title( $value_obj ); 257 257 }
Note: See TracChangeset
for help on using the changeset viewer.