Changeset 61463
- Timestamp:
- 01/10/2026 05:01:08 AM (3 months ago)
- Location:
- trunk/src
- Files:
-
- 15 edited
-
wp-admin/includes/class-wp-importer.php (modified) (1 diff)
-
wp-admin/includes/post.php (modified) (1 diff)
-
wp-admin/includes/template.php (modified) (1 diff)
-
wp-admin/includes/theme.php (modified) (1 diff)
-
wp-admin/upgrade.php (modified) (1 diff)
-
wp-includes/class-wp-date-query.php (modified) (1 diff)
-
wp-includes/class-wp-http-streams.php (modified) (1 diff)
-
wp-includes/class-wp-post-type.php (modified) (1 diff)
-
wp-includes/class-wp-styles.php (modified) (1 diff)
-
wp-includes/class-wp-xmlrpc-server.php (modified) (1 diff)
-
wp-includes/general-template.php (modified) (1 diff)
-
wp-includes/media.php (modified) (1 diff)
-
wp-includes/meta.php (modified) (1 diff)
-
wp-includes/rest-api/class-wp-rest-server.php (modified) (1 diff)
-
wp-includes/theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-importer.php
r60094 r61463 312 312 $key = preg_replace( '/[^a-z0-9]+/', '', $parts[0] ); 313 313 314 if ( isset( $parts[1] ) ) { 315 $out[ $key ] = $parts[1]; 316 } else { 317 $out[ $key ] = true; 318 } 314 $out[ $key ] = $parts[1] ?? true; 319 315 320 316 $last_arg = $key; -
trunk/src/wp-admin/includes/post.php
r61445 r61463 123 123 } 124 124 125 if ( isset( $post_data['ID'] ) ) { 126 $post_id = $post_data['ID']; 127 } else { 128 $post_id = false; 129 } 125 $post_id = $post_data['ID'] ?? false; 130 126 $previous_status = $post_id ? get_post_field( 'post_status', $post_id ) : false; 131 127 -
trunk/src/wp-admin/includes/template.php
r61440 r61463 2297 2297 function get_post_states( $post ) { 2298 2298 $post_states = array(); 2299 2300 if ( isset( $_REQUEST['post_status'] ) ) { 2301 $post_status = $_REQUEST['post_status']; 2302 } else { 2303 $post_status = ''; 2304 } 2299 $post_status = $_REQUEST['post_status'] ?? ''; 2305 2300 2306 2301 if ( ! empty( $post->post_password ) ) { -
trunk/src/wp-admin/includes/theme.php
r61456 r61463 401 401 402 402 foreach ( $feature_items as $feature ) { 403 if ( isset( $features[ $feature_category ][ $feature ] ) ) { 404 $wporg_features[ $feature_category ][ $feature ] = $features[ $feature_category ][ $feature ]; 405 } else { 406 $wporg_features[ $feature_category ][ $feature ] = $feature; 407 } 403 $wporg_features[ $feature_category ][ $feature ] = $features[ $feature_category ][ $feature ] ?? $feature; 408 404 } 409 405 } -
trunk/src/wp-admin/upgrade.php
r60898 r61463 24 24 delete_site_transient( 'update_core' ); 25 25 26 if ( isset( $_GET['step'] ) ) { 27 $step = $_GET['step']; 28 } else { 29 $step = 0; 30 } 26 $step = $_GET['step'] ?? 0; 31 27 32 28 // Do it. No output. -
trunk/src/wp-includes/class-wp-date-query.php
r61449 r61463 209 209 } 210 210 211 if ( isset( $parent_query[ $dkey ] ) ) { 212 $queries[ $dkey ] = $parent_query[ $dkey ]; 213 } else { 214 $queries[ $dkey ] = $dvalue; 215 } 211 $queries[ $dkey ] = $parent_query[ $dkey ] ?? $dvalue; 216 212 } 217 213 -
trunk/src/wp-includes/class-wp-http-streams.php
r56655 r61463 78 78 79 79 if ( isset( $parsed_args['headers']['Host'] ) || isset( $parsed_args['headers']['host'] ) ) { 80 if ( isset( $parsed_args['headers']['Host'] ) ) { 81 $parsed_url['host'] = $parsed_args['headers']['Host']; 82 } else { 83 $parsed_url['host'] = $parsed_args['headers']['host']; 84 } 80 $parsed_url['host'] = $parsed_args['headers']['Host'] ?? $parsed_args['headers']['host']; 85 81 unset( $parsed_args['headers']['Host'], $parsed_args['headers']['host'] ); 86 82 } -
trunk/src/wp-includes/class-wp-post-type.php
r59791 r61463 656 656 } 657 657 if ( ! isset( $args['rewrite']['ep_mask'] ) ) { 658 if ( isset( $args['permalink_epmask'] ) ) { 659 $args['rewrite']['ep_mask'] = $args['permalink_epmask']; 660 } else { 661 $args['rewrite']['ep_mask'] = EP_PERMALINK; 662 } 658 $args['rewrite']['ep_mask'] = $args['permalink_epmask'] ?? EP_PERMALINK; 663 659 } 664 660 } -
trunk/src/wp-includes/class-wp-styles.php
r61442 r61463 179 179 } 180 180 181 if ( isset( $obj->args ) ) { 182 $media = $obj->args; 183 } else { 184 $media = 'all'; 185 } 181 $media = $obj->args ?? 'all'; 186 182 187 183 // A single item may alias a set of items, by having dependencies, but no source. -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r61460 r61463 3674 3674 do_action( 'xmlrpc_call', 'wp.getComments', $args, $this ); 3675 3675 3676 if ( isset( $struct['status'] ) ) { 3677 $status = $struct['status']; 3678 } else { 3679 $status = ''; 3680 } 3676 $status = $struct['status'] ?? ''; 3681 3677 3682 3678 if ( ! current_user_can( 'moderate_comments' ) && 'approve' !== $status ) { -
trunk/src/wp-includes/general-template.php
r61454 r61463 1874 1874 1875 1875 // Check if a description is set. 1876 if ( isset( $post_type_obj->description ) ) { 1877 $description = $post_type_obj->description; 1878 } else { 1879 $description = ''; 1880 } 1876 $description = $post_type_obj->description ?? ''; 1881 1877 1882 1878 /** -
trunk/src/wp-includes/media.php
r61453 r61463 6037 6037 */ 6038 6038 if ( 'img' === $tag_name ) { 6039 if ( isset( $attr['decoding'] ) ) { 6040 $loading_attrs['decoding'] = $attr['decoding']; 6041 } else { 6042 $loading_attrs['decoding'] = 'async'; 6043 } 6039 $loading_attrs['decoding'] = $attr['decoding'] ?? 'async'; 6044 6040 } 6045 6041 -
trunk/src/wp-includes/meta.php
r60264 r61463 675 675 if ( ! $meta_cache ) { 676 676 $meta_cache = update_meta_cache( $meta_type, array( $object_id ) ); 677 if ( isset( $meta_cache[ $object_id ] ) ) { 678 $meta_cache = $meta_cache[ $object_id ]; 679 } else { 680 $meta_cache = null; 681 } 677 $meta_cache = $meta_cache[ $object_id ] ?? null; 682 678 } 683 679 -
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r61429 r61463 365 365 366 366 if ( empty( $path ) ) { 367 if ( isset( $_SERVER['PATH_INFO'] ) ) { 368 $path = $_SERVER['PATH_INFO']; 369 } else { 370 $path = '/'; 371 } 367 $path = $_SERVER['PATH_INFO'] ?? '/'; 372 368 } 373 369 -
trunk/src/wp-includes/theme.php
r61457 r61463 1530 1530 $header_index = $header->ID; 1531 1531 1532 $header_images[ $header_index ] = array(); 1533 $header_images[ $header_index ]['attachment_id'] = $header->ID; 1534 $header_images[ $header_index ]['url'] = $url; 1535 $header_images[ $header_index ]['thumbnail_url'] = $url; 1536 $header_images[ $header_index ]['alt_text'] = get_post_meta( $header->ID, '_wp_attachment_image_alt', true ); 1537 1538 if ( isset( $header_data['attachment_parent'] ) ) { 1539 $header_images[ $header_index ]['attachment_parent'] = $header_data['attachment_parent']; 1540 } else { 1541 $header_images[ $header_index ]['attachment_parent'] = ''; 1542 } 1532 $header_images[ $header_index ] = array(); 1533 $header_images[ $header_index ]['attachment_id'] = $header->ID; 1534 $header_images[ $header_index ]['url'] = $url; 1535 $header_images[ $header_index ]['thumbnail_url'] = $url; 1536 $header_images[ $header_index ]['alt_text'] = get_post_meta( $header->ID, '_wp_attachment_image_alt', true ); 1537 $header_images[ $header_index ]['attachment_parent'] = $header_data['attachment_parent'] ?? ''; 1543 1538 1544 1539 if ( isset( $header_data['width'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.