Changeset 63351
- Timestamp:
- 08/26/2026 09:44:34 PM (11 hours ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 7 edited
-
phpstan.neon.dist (modified) (1 diff)
-
src/wp-admin/includes/class-custom-image-header.php (modified) (1 diff)
-
src/wp-admin/includes/file.php (modified) (2 diffs)
-
src/wp-admin/includes/media.php (modified) (1 diff)
-
src/wp-includes/class-wp-block-parser.php (modified) (1 diff)
-
src/wp-includes/class-wp-oembed.php (modified) (2 diffs)
-
src/wp-includes/template.php (modified) (2 diffs)
-
tests/phpstan/baselines/isset.variable.neon (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpstan.neon.dist
r63344 r63351 56 56 - tests/phpstan/baselines/isset.offset.neon 57 57 - tests/phpstan/baselines/isset.property.neon 58 - tests/phpstan/baselines/isset.variable.neon59 58 - tests/phpstan/baselines/method.childParameterType.neon 60 59 - tests/phpstan/baselines/method.nonObject.neon -
trunk/src/wp-admin/includes/class-custom-image-header.php
r62704 r63351 842 842 $url = wp_get_attachment_image_src( $attachment_id, 'full' ); 843 843 $url = $url[0]; 844 } else if ( isset( $_POST ) ){844 } else { 845 845 $data = $this->step_2_manage_upload(); 846 846 $attachment_id = $data['attachment_id']; -
trunk/src/wp-admin/includes/file.php
r62894 r63351 398 398 $content = $args['newcontent']; 399 399 400 $plugin = null; 401 $theme = null; 402 $real_file = null; 400 $plugin = null; 401 $stylesheet = null; 402 $theme = null; 403 $real_file = null; 403 404 404 405 if ( ! empty( $args['plugin'] ) ) { … … 561 562 if ( $plugin ) { 562 563 $url = add_query_arg( compact( 'plugin', 'file' ), admin_url( 'plugin-editor.php' ) ); 563 } elseif ( isset( $stylesheet )) {564 } elseif ( $stylesheet ) { 564 565 $url = add_query_arg( 565 566 array( -
trunk/src/wp-admin/includes/media.php
r63338 r63351 1774 1774 if ( isset( $_GET['post_id'] ) ) { 1775 1775 $calling_post_id = absint( $_GET['post_id'] ); 1776 } elseif ( isset( $_POST ) && count( $_POST ) ) {// Like for async-upload where $_GET['post_id'] isn't set.1776 } elseif ( ! empty( $_POST ) ) { // Like for async-upload where $_GET['post_id'] isn't set. 1777 1777 $calling_post_id = $post->post_parent; 1778 1778 } -
trunk/src/wp-includes/class-wp-block-parser.php
r62956 r63351 269 269 $is_void = isset( $matches['void'] ) && -1 !== $matches['void'][1]; 270 270 $namespace = $matches['namespace']; 271 $namespace = ( isset( $namespace ) &&-1 !== $namespace[1] ) ? $namespace[0] : 'core/';271 $namespace = ( -1 !== $namespace[1] ) ? $namespace[0] : 'core/'; 272 272 $name = $namespace . $matches['name'][0]; 273 273 $has_attrs = isset( $matches['attrs'] ) && -1 !== $matches['attrs'][1]; -
trunk/src/wp-includes/class-wp-oembed.php
r62501 r63351 675 675 } 676 676 677 $loader = null; 677 678 if ( PHP_VERSION_ID < 80000 ) { 678 679 /* … … 689 690 libxml_use_internal_errors( $errors ); 690 691 691 if ( PHP_VERSION_ID < 80000 && isset( $loader )) {692 if ( PHP_VERSION_ID < 80000 ) { 692 693 // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.libxml_disable_entity_loaderDeprecated 693 694 libxml_disable_entity_loader( $loader ); -
trunk/src/wp-includes/template.php
r61699 r63351 783 783 global $posts, $post, $wp_did_header, $wp_query, $wp_rewrite, $wpdb, $wp_version, $wp, $id, $comment, $user_ID; 784 784 785 if ( is_array( $wp_query->query_vars ) ) { 785 /** @var array{ s?: scalar, ... } $query_vars */ 786 $query_vars = $wp_query->query_vars; 787 if ( is_array( $query_vars ) ) { 786 788 /* 787 789 * This use of extract() cannot be removed. There are many possible ways that … … 793 795 */ 794 796 // phpcs:ignore WordPress.PHP.DontExtract.extract_extract 795 extract( $ wp_query->query_vars, EXTR_SKIP );797 extract( $query_vars, EXTR_SKIP ); 796 798 } 797 799 798 800 if ( isset( $s ) ) { 799 $s = esc_attr( $s ); // @phpstan-ignore variable.undefined (It's extracted from query vars.)801 $s = esc_attr( (string) $s ); 800 802 } 801 803
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)