Make WordPress Core

Ticket #60415: 60415.2.patch

File 60415.2.patch, 3.1 KB (added by viralsampat, 15 months ago)

I have checked above mentioned issue and founds few more files. I have applied its patch.

  • src/wp-includes/ID3/module.audio-video.riff.php

    diff --git src/wp-includes/ID3/module.audio-video.riff.php src/wp-includes/ID3/module.audio-video.riff.php
    index a94ae24d0c..9dae8465f6 100644
    class getid3_riff extends getid3_handler 
    8686                                        // RMP3 is identical to WAVE, just renamed. Used by [unknown program] when creating RIFF-MP3s
    8787                                        $RIFFsubtype = 'WAVE';
    8888                                }
    89                                 if ($RIFFsubtype != 'AMV ') {
     89                                if ($RIFFsubtype !== 'AMV ') {
    9090                                        // AMV files are RIFF-AVI files with parts of the spec deliberately broken, such as chunk size fields hardcoded to zero (because players known in hardware that these fields are always a certain size
    9191                                        // Handled separately in ParseRIFFAMV()
    9292                                        $thisfile_riff[$RIFFsubtype]  = $this->ParseRIFF($offset, ($offset + $thisfile_riff['header_size'] - 4));
    class getid3_riff extends getid3_handler 
    674674                                }
    675675                                if ($thisfile_audio_dataformat == 'ac3') {
    676676                                        unset($thisfile_audio['bits_per_sample']);
    677                                         if (!empty($info['ac3']['bitrate']) && ($info['ac3']['bitrate'] != $thisfile_audio['bitrate'])) {
     677                                        if (!empty($info['ac3']['bitrate']) && ($info['ac3']['bitrate'] !== $thisfile_audio['bitrate'])) {
    678678                                                $thisfile_audio['bitrate'] = $info['ac3']['bitrate'];
    679679                                        }
    680680                                }
    class getid3_riff extends getid3_handler 
    14911491                        $this->fseek($startoffset);
    14921492                        $maxoffset = min($maxoffset, $info['avdataend']);
    14931493                        $AMVheader = $this->fread(284);
    1494                         if (substr($AMVheader,   0,  8) != 'hdrlamvh') {
     1494                        if (substr($AMVheader,   0,  8) !== 'hdrlamvh') {
    14951495                                throw new Exception('expecting "hdrlamv" at offset '.($startoffset +   0).', found "'.substr($AMVheader,   0, 8).'"');
    14961496                        }
    14971497                        if (substr($AMVheader,   8,  4) != "\x38\x00\x00\x00") { // "amvh" chunk size, hardcoded to 0x38 = 56 bytes
  • src/wp-includes/rss.php

    diff --git src/wp-includes/rss.php src/wp-includes/rss.php
    index 4d3f35e5cb..7b5b3472f9 100644
    class MagpieRSS { 
    8383
    8484                if (! $status ) {
    8585                        $errorcode = xml_get_error_code( $this->parser );
    86                         if ( $errorcode != XML_ERROR_NONE ) {
     86                        if ( $errorcode !== XML_ERROR_NONE ) {
    8787                                $xml_error = xml_error_string( $errorcode );
    8888                                $error_line = xml_get_current_line_number($this->parser);
    8989                                $error_col = xml_get_current_column_number($this->parser);
    class MagpieRSS { 
    115115                if ( strpos( $element, ':' ) ) {
    116116                        list($ns, $el) = explode( ':', $element, 2);
    117117                }
    118                 if ( $ns and $ns != 'rdf' ) {
     118                if ( $ns and $ns !== 'rdf' ) {
    119119                        $this->current_namespace = $ns;
    120120                }
    121121
    class MagpieRSS { 
    123123                # identify feed from root element
    124124                #
    125125                if (!isset($this->feed_type) ) {
    126                         if ( $el == 'rdf' ) {
     126                        if ( $el === 'rdf' ) {
    127127                                $this->feed_type = RSS;
    128128                                $this->feed_version = '1.0';
    129129                        }
    130                         elseif ( $el == 'rss' ) {
     130                        elseif ( $el === 'rss' ) {
    131131                                $this->feed_type = RSS;
    132132                                $this->feed_version = $attrs['version'];
    133133                        }
    134                         elseif ( $el == 'feed' ) {
     134                        elseif ( $el === 'feed' ) {
    135135                                $this->feed_type = ATOM;
    136136                                $this->feed_version = $attrs['version'];
    137137                                $this->inchannel = true;