Changeset 63509
- Timestamp:
- 09/06/2026 06:38:39 PM (8 hours ago)
- Location:
- trunk
- Files:
-
- 12 edited
-
src/wp-admin/edit-form-advanced.php (modified) (1 diff)
-
src/wp-includes/abilities-api/class-wp-ability.php (modified) (1 diff)
-
src/wp-includes/block-supports/background.php (modified) (1 diff)
-
src/wp-includes/class-wp-http-cookie.php (modified) (1 diff)
-
src/wp-includes/class-wp-icons-registry.php (modified) (2 diffs)
-
src/wp-includes/functions.php (modified) (1 diff)
-
src/wp-includes/interactivity-api/class-wp-interactivity-api.php (modified) (1 diff)
-
src/wp-includes/link-template.php (modified) (1 diff)
-
src/wp-includes/rest-api.php (modified) (1 diff)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php (modified) (4 diffs)
-
src/wp-includes/widgets.php (modified) (1 diff)
-
tests/phpunit/includes/wp-ai-client-mock-model-creation-trait.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r62696 r63509 68 68 * @var int 69 69 */ 70 $post_ID = isset( $post_ID ) ? (int) $post_ID : 0;71 $user_ID = isset( $user_ID ) ? (int) $user_ID : 0;72 $action = $action ??'';70 $post_ID = isset( $post_ID ) ? (int) $post_ID : 0; 71 $user_ID = isset( $user_ID ) ? (int) $user_ID : 0; 72 $action ??= ''; 73 73 74 74 if ( (int) get_option( 'page_for_posts' ) === $post->ID && empty( $post->post_content ) ) { -
trunk/src/wp-includes/abilities-api/class-wp-ability.php
r63391 r63509 370 370 * default, then the built-in default applies. 371 371 */ 372 $args['meta']['show_in_rest'] = $args['meta']['show_in_rest'] ??$args['meta']['public'] ?? self::DEFAULT_SHOW_IN_REST;373 $args['meta']['public'] = $args['meta']['public'] ??self::DEFAULT_PUBLIC;372 $args['meta']['show_in_rest'] ??= $args['meta']['public'] ?? self::DEFAULT_SHOW_IN_REST; 373 $args['meta']['public'] ??= self::DEFAULT_PUBLIC; 374 374 375 375 return $args; -
trunk/src/wp-includes/block-supports/background.php
r62718 r63509 83 83 84 84 if ( ! empty( $background_styles['backgroundImage'] ) ) { 85 $background_styles['backgroundSize'] = $background_styles['backgroundSize'] ??'cover';85 $background_styles['backgroundSize'] ??= 'cover'; 86 86 87 87 // If the background size is set to `contain` and no position is set, set the position to `center`. -
trunk/src/wp-includes/class-wp-http-cookie.php
r61435 r63509 190 190 191 191 // Get details on the URL we're thinking about sending to. 192 $url = parse_url( $url );193 $url['port'] = $url['port'] ??( 'https' === $url['scheme'] ? 443 : 80 );194 $url['path'] = $url['path'] ??'/';192 $url = parse_url( $url ); 193 $url['port'] ??= ( 'https' === $url['scheme'] ? 443 : 80 ); 194 $url['path'] ??= '/'; 195 195 196 196 // Values to use for comparison against the URL. -
trunk/src/wp-includes/class-wp-icons-registry.php
r63443 r63509 321 321 } 322 322 323 $icon = $this->registered_icons[ $icon_name ];324 $icon['content'] = $icon['content'] ??$this->get_content( $icon_name );323 $icon = $this->registered_icons[ $icon_name ]; 324 $icon['content'] ??= $this->get_content( $icon_name ); 325 325 326 326 return $icon; … … 347 347 } 348 348 349 $icon['content'] = $icon['content'] ??$this->get_content( $icon['name'] );350 $icons[] = $icon;349 $icon['content'] ??= $this->get_content( $icon['name'] ); 350 $icons[] = $icon; 351 351 } 352 352 -
trunk/src/wp-includes/functions.php
r63491 r63509 6293 6293 */ 6294 6294 function is_lighttpd_before_150() { 6295 $server_parts = explode( '/', $_SERVER['SERVER_SOFTWARE'] ?? '' );6296 $server_parts[1] = $server_parts[1] ??'';6295 $server_parts = explode( '/', $_SERVER['SERVER_SOFTWARE'] ?? '' ); 6296 $server_parts[1] ??= ''; 6297 6297 6298 6298 return ( 'lighttpd' === $server_parts[0] && -1 === version_compare( $server_parts[1], '1.5.0' ) ); -
trunk/src/wp-includes/interactivity-api/class-wp-interactivity-api.php
r63365 r63509 740 740 * @since 6.9.0 741 741 */ 742 $this->derived_state_closures[ $ns ] = $this->derived_state_closures[ $ns ] ??array();742 $this->derived_state_closures[ $ns ] ??= array(); 743 743 744 744 // Builds path for the current property and add it to tracking if not already present. -
trunk/src/wp-includes/link-template.php
r63491 r63509 110 110 $sample = true; 111 111 } else { 112 $post = get_post( $post );113 $sample = $sample ??false;112 $post = get_post( $post ); 113 $sample ??= false; 114 114 } 115 115 -
trunk/src/wp-includes/rest-api.php
r63493 r63509 974 974 break 2; 975 975 } 976 $ref[ $next ] = $ref[ $next ] ??array();977 $ref = &$ref[ $next ];976 $ref[ $next ] ??= array(); 977 $ref = &$ref[ $next ]; 978 978 } 979 979 $last = array_shift( $parts ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r63200 r63509 1292 1292 1293 1293 // Set new attachment post title with fallbacks. 1294 $new_attachment_post->post_title = $new_attachment_post->post_title ??$original_attachment_post->post_title ?? $image_name;1294 $new_attachment_post->post_title ??= $original_attachment_post->post_title ?? $image_name; 1295 1295 1296 1296 // Set new attachment post caption (post_excerpt). 1297 $new_attachment_post->post_excerpt = $new_attachment_post->post_excerpt ??$original_attachment_post->post_excerpt ?? '';1297 $new_attachment_post->post_excerpt ??= $original_attachment_post->post_excerpt ?? ''; 1298 1298 1299 1299 // Set new attachment post description (post_content) with fallbacks. 1300 $new_attachment_post->post_content = $new_attachment_post->post_content ??$original_attachment_post->post_content ?? '';1300 $new_attachment_post->post_content ??= $original_attachment_post->post_content ?? ''; 1301 1301 1302 1302 // Set post parent if set in request, else the default of `0` (no parent). 1303 $new_attachment_post->post_parent = $new_attachment_post->post_parent ??0;1303 $new_attachment_post->post_parent ??= 0; 1304 1304 1305 1305 // Insert the new attachment post. … … 1526 1526 } 1527 1527 1528 $metadata['sizes'] = $metadata['sizes'] ??array();1528 $metadata['sizes'] ??= array(); 1529 1529 1530 1530 $fallback_sizes = array( … … 3300 3300 } 3301 3301 3302 $metadata['sizes'] = $metadata['sizes'] ??array();3302 $metadata['sizes'] ??= array(); 3303 3303 3304 3304 foreach ( $image_size as $name ) { … … 3385 3385 } 3386 3386 3387 $metadata['sizes'] = $metadata['sizes'] ??array();3387 $metadata['sizes'] ??= array(); 3388 3388 3389 3389 $metadata['sizes'][ $image_size ] = array( -
trunk/src/wp-includes/widgets.php
r63492 r63509 1721 1721 $inputs = wp_parse_args( $inputs, $default_inputs ); 1722 1722 1723 $args['title'] = $args['title'] ??'';1724 $args['url'] = $args['url'] ??'';1725 $args['items'] = (int) ( $args['items'] ?? 0 );1723 $args['title'] ??= ''; 1724 $args['url'] ??= ''; 1725 $args['items'] = (int) ( $args['items'] ?? 0 ); 1726 1726 1727 1727 if ( $args['items'] < 1 || 20 < $args['items'] ) { -
trunk/tests/phpunit/includes/wp-ai-client-mock-model-creation-trait.php
r61942 r63509 172 172 ?ModelMetadata $metadata = null 173 173 ): ModelInterface { 174 $metadata = $metadata ??$this->create_test_text_model_metadata();174 $metadata ??= $this->create_test_text_model_metadata(); 175 175 176 176 $provider_metadata = new ProviderMetadata( … … 235 235 ?ModelMetadata $metadata = null 236 236 ): ModelInterface { 237 $metadata = $metadata ??$this->create_test_image_model_metadata();237 $metadata ??= $this->create_test_image_model_metadata(); 238 238 239 239 $provider_metadata = new ProviderMetadata( … … 294 294 ?ModelMetadata $metadata = null 295 295 ): ModelInterface { 296 $metadata = $metadata ??$this->create_test_speech_model_metadata();296 $metadata ??= $this->create_test_speech_model_metadata(); 297 297 298 298 $provider_metadata = new ProviderMetadata( … … 353 353 ?ModelMetadata $metadata = null 354 354 ): ModelInterface { 355 $metadata = $metadata ??$this->create_test_text_to_speech_model_metadata();355 $metadata ??= $this->create_test_text_to_speech_model_metadata(); 356 356 357 357 $provider_metadata = new ProviderMetadata( … … 412 412 ?ModelMetadata $metadata = null 413 413 ): ModelInterface { 414 $metadata = $metadata ??$this->create_test_video_model_metadata();414 $metadata ??= $this->create_test_video_model_metadata(); 415 415 416 416 $provider_metadata = new ProviderMetadata( … … 471 471 ?ModelMetadata $metadata = null 472 472 ): ModelInterface { 473 $metadata = $metadata ??$this->create_test_text_model_metadata();473 $metadata ??= $this->create_test_text_model_metadata(); 474 474 475 475 $provider_metadata = new ProviderMetadata(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)