Make WordPress Core


Ignore:
Timestamp:
07/31/2017 07:49:31 PM (7 years ago)
Author:
wonderboymusic
Message:

Media: update the getID3 library to version 1.9.14 to avoid fatal errors in PHP7.

Props MyThemeShop for the initial patch.
Fixes #41496.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ID3/module.audio-video.flv.php

    r32979 r41196  
    9494
    9595        if ($info['flv']['header']['signature'] != self::magic) {
    96             $info['error'][] = 'Expecting "'.getid3_lib::PrintHexBytes(self::magic).'" at offset '.$info['avdataoffset'].', found "'.getid3_lib::PrintHexBytes($info['flv']['header']['signature']).'"';
     96            $this->error('Expecting "'.getid3_lib::PrintHexBytes(self::magic).'" at offset '.$info['avdataoffset'].', found "'.getid3_lib::PrintHexBytes($info['flv']['header']['signature']).'"');
    9797            unset($info['flv'], $info['fileformat']);
    9898            return false;
     
    542542            default:
    543543                $value = '(unknown or unsupported data type)';
    544             break;
     544                break;
    545545        }
    546546
Note: See TracChangeset for help on using the changeset viewer.