mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
External Libraries: Update getID3 to version 1.9.21.
The latest version includes preliminary PHP 8.1 support, as well as a variety of bug fixes. Release notes: https://github.com/JamesHeinrich/getID3/releases/tag/v1.9.21 A full list of changes in this update can be found on GitHub: https://github.com/JamesHeinrich/getID3/compare/v1.9.20...v1.9.21 This commit also includes: * Setting the `$options_audiovideo_quicktime_ReturnAtomData` property (now `false` by default) to `true` in `wp_read_video_metadata()` and `wp_read_audio_metadata()` in order to get the `created_timestamp` value. * PHPCS adjustments previously made for a passing PHP Compatibility scan. Follow-up to [47601], [47737], [47902], [48278], [49621], [50714]. Props jrf, SergeyBiryukov. Fixes #54162. git-svn-id: https://develop.svn.wordpress.org/trunk@52254 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3558,7 +3558,10 @@ function wp_read_video_metadata( $file ) {
|
||||
require ABSPATH . WPINC . '/ID3/getid3.php';
|
||||
}
|
||||
|
||||
$id3 = new getID3();
|
||||
$id3 = new getID3();
|
||||
// Required to get the `created_timestamp` value.
|
||||
$id3->options_audiovideo_quicktime_ReturnAtomData = true; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
|
||||
$data = $id3->analyze( $file );
|
||||
|
||||
if ( isset( $data['video']['lossless'] ) ) {
|
||||
@@ -3669,7 +3672,10 @@ function wp_read_audio_metadata( $file ) {
|
||||
require ABSPATH . WPINC . '/ID3/getid3.php';
|
||||
}
|
||||
|
||||
$id3 = new getID3();
|
||||
$id3 = new getID3();
|
||||
// Required to get the `created_timestamp` value.
|
||||
$id3->options_audiovideo_quicktime_ReturnAtomData = true; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
|
||||
|
||||
$data = $id3->analyze( $file );
|
||||
|
||||
if ( ! empty( $data['audio'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user