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 |
86 | 86 | // RMP3 is identical to WAVE, just renamed. Used by [unknown program] when creating RIFF-MP3s |
87 | 87 | $RIFFsubtype = 'WAVE'; |
88 | 88 | } |
89 | | if ($RIFFsubtype != 'AMV ') { |
| 89 | if ($RIFFsubtype !== 'AMV ') { |
90 | 90 | // 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 |
91 | 91 | // Handled separately in ParseRIFFAMV() |
92 | 92 | $thisfile_riff[$RIFFsubtype] = $this->ParseRIFF($offset, ($offset + $thisfile_riff['header_size'] - 4)); |
… |
… |
class getid3_riff extends getid3_handler |
674 | 674 | } |
675 | 675 | if ($thisfile_audio_dataformat == 'ac3') { |
676 | 676 | 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'])) { |
678 | 678 | $thisfile_audio['bitrate'] = $info['ac3']['bitrate']; |
679 | 679 | } |
680 | 680 | } |
… |
… |
class getid3_riff extends getid3_handler |
1491 | 1491 | $this->fseek($startoffset); |
1492 | 1492 | $maxoffset = min($maxoffset, $info['avdataend']); |
1493 | 1493 | $AMVheader = $this->fread(284); |
1494 | | if (substr($AMVheader, 0, 8) != 'hdrlamvh') { |
| 1494 | if (substr($AMVheader, 0, 8) !== 'hdrlamvh') { |
1495 | 1495 | throw new Exception('expecting "hdrlamv" at offset '.($startoffset + 0).', found "'.substr($AMVheader, 0, 8).'"'); |
1496 | 1496 | } |
1497 | 1497 | if (substr($AMVheader, 8, 4) != "\x38\x00\x00\x00") { // "amvh" chunk size, hardcoded to 0x38 = 56 bytes |
diff --git src/wp-includes/rss.php src/wp-includes/rss.php
index 4d3f35e5cb..7b5b3472f9 100644
|
|
class MagpieRSS { |
83 | 83 | |
84 | 84 | if (! $status ) { |
85 | 85 | $errorcode = xml_get_error_code( $this->parser ); |
86 | | if ( $errorcode != XML_ERROR_NONE ) { |
| 86 | if ( $errorcode !== XML_ERROR_NONE ) { |
87 | 87 | $xml_error = xml_error_string( $errorcode ); |
88 | 88 | $error_line = xml_get_current_line_number($this->parser); |
89 | 89 | $error_col = xml_get_current_column_number($this->parser); |
… |
… |
class MagpieRSS { |
115 | 115 | if ( strpos( $element, ':' ) ) { |
116 | 116 | list($ns, $el) = explode( ':', $element, 2); |
117 | 117 | } |
118 | | if ( $ns and $ns != 'rdf' ) { |
| 118 | if ( $ns and $ns !== 'rdf' ) { |
119 | 119 | $this->current_namespace = $ns; |
120 | 120 | } |
121 | 121 | |
… |
… |
class MagpieRSS { |
123 | 123 | # identify feed from root element |
124 | 124 | # |
125 | 125 | if (!isset($this->feed_type) ) { |
126 | | if ( $el == 'rdf' ) { |
| 126 | if ( $el === 'rdf' ) { |
127 | 127 | $this->feed_type = RSS; |
128 | 128 | $this->feed_version = '1.0'; |
129 | 129 | } |
130 | | elseif ( $el == 'rss' ) { |
| 130 | elseif ( $el === 'rss' ) { |
131 | 131 | $this->feed_type = RSS; |
132 | 132 | $this->feed_version = $attrs['version']; |
133 | 133 | } |
134 | | elseif ( $el == 'feed' ) { |
| 134 | elseif ( $el === 'feed' ) { |
135 | 135 | $this->feed_type = ATOM; |
136 | 136 | $this->feed_version = $attrs['version']; |
137 | 137 | $this->inchannel = true; |