Commit dc22b7091d for wordpress.org
commit dc22b7091d15ebe544cfbeda6f087b83aba6882b
Author: lancewillett <lancewillett@git.wordpress.org>
Date: Sat Oct 31 21:29:54 2026 +0000
Build/Test Tools: Preserve precise video metadata type inference.
Remove the broad `$metadata` annotation and the always-true `created_timestamp` guard in `wp_read_video_metadata()`. Preserve the timestamp helper call and strict `false` check.
Combine the pointer array type annotations with their explanatory docblocks.
Follow-up to [65149].
Developed in: https://github.com/WordPress/wordpress-develop/pull/15303
Props westonruter.
See #65817.
Built from https://develop.svn.wordpress.org/trunk@65158
git-svn-id: http://core.svn.wordpress.org/trunk@64307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-admin/includes/class-wp-internal-pointers.php b/wp-admin/includes/class-wp-internal-pointers.php
index 448e7af914..0e11d759a9 100644
--- a/wp-admin/includes/class-wp-internal-pointers.php
+++ b/wp-admin/includes/class-wp-internal-pointers.php
@@ -35,7 +35,7 @@ final class WP_Internal_Pointers {
* @param string $hook_suffix The current admin page.
*/
public static function enqueue_scripts( $hook_suffix ) {
- /*
+ /**
* Register feature pointers
*
* Format:
@@ -47,8 +47,9 @@ final class WP_Internal_Pointers {
* array(
* 'themes.php' => 'wp390_widgets'
* )
+ *
+ * @var array<string, string|string[]> $registered_pointers
*/
- /** @var array<string, string|string[]> $registered_pointers */
$registered_pointers = array(
// None currently.
);
@@ -60,7 +61,7 @@ final class WP_Internal_Pointers {
$pointers = (array) $registered_pointers[ $hook_suffix ];
- /*
+ /**
* Specify required capabilities for feature pointers
*
* Format:
@@ -72,8 +73,9 @@ final class WP_Internal_Pointers {
* array(
* 'wp390_widgets' => array( 'edit_theme_options' )
* )
+ *
+ * @var array<string, string[]> $caps_required
*/
- /** @var array<string, string[]> $caps_required */
$caps_required = array(
// None currently.
);
diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index 896af458eb..9f5b87ce85 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -3677,7 +3677,6 @@ function wp_read_video_metadata( $file ) {
return false;
}
- /** @var array<string, mixed> $metadata */
$metadata = array();
if ( ! defined( 'GETID3_TEMP_DIR' ) ) {
@@ -3751,12 +3750,9 @@ function wp_read_video_metadata( $file ) {
$metadata['audio'] = $data['audio'];
}
- if ( empty( $metadata['created_timestamp'] ) ) {
- $created_timestamp = wp_get_media_creation_timestamp( $data );
-
- if ( false !== $created_timestamp ) {
- $metadata['created_timestamp'] = $created_timestamp;
- }
+ $created_timestamp = wp_get_media_creation_timestamp( $data );
+ if ( false !== $created_timestamp ) {
+ $metadata['created_timestamp'] = $created_timestamp;
}
wp_add_id3_tag_data( $metadata, $data );
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 8b843c826d..12cd9b900c 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-beta3-65157';
+$wp_version = '7.2-beta3-65158';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.