Changeset 45607 for trunk/tests/phpunit/tests/media.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r45424 r45607 1257 1257 */ 1258 1258 function filter_wp_embed_shortcode_custom( $content, $url ) { 1259 if ( 'https://www.example.com/?video=1' == $url ) {1259 if ( 'https://www.example.com/?video=1' === $url ) { 1260 1260 $content = '@embed URL was replaced@'; 1261 1261 } … … 1447 1447 foreach ( $image_meta['sizes'] as $name => $size ) { 1448 1448 // Whitelist the sizes that should be included so we pick up 'medium_large' in 4.4. 1449 if ( in_array( $name, $intermediates ) ) {1449 if ( in_array( $name, $intermediates, true ) ) { 1450 1450 $expected .= $uploads_dir_url . $year_month . '/' . $size['file'] . ' ' . $size['width'] . 'w, '; 1451 1451 } … … 1492 1492 foreach ( $image_meta['sizes'] as $name => $size ) { 1493 1493 // Whitelist the sizes that should be included so we pick up 'medium_large' in 4.4. 1494 if ( in_array( $name, $intermediates ) ) {1494 if ( in_array( $name, $intermediates, true ) ) { 1495 1495 $expected .= $uploads_dir_url . $size['file'] . ' ' . $size['width'] . 'w, '; 1496 1496 } … … 1569 1569 foreach ( $image_meta['sizes'] as $name => $size ) { 1570 1570 // Whitelist the sizes that should be included so we pick up 'medium_large' in 4.4. 1571 if ( in_array( $name, $intermediates ) ) {1571 if ( in_array( $name, $intermediates, true ) ) { 1572 1572 $expected .= $uploads_dir_url . $year_month . '/' . $size['file'] . ' ' . $size['width'] . 'w, '; 1573 1573 } … … 1848 1848 foreach ( $image_meta['sizes'] as $name => $size ) { 1849 1849 // Whitelist the sizes that should be included so we pick up 'medium_large' in 4.4. 1850 if ( in_array( $name, $intermediates ) ) {1850 if ( in_array( $name, $intermediates, true ) ) { 1851 1851 $expected .= $uploads_dir . $year_month . '/' . $size['file'] . ' ' . $size['width'] . 'w, '; 1852 1852 }
Note: See TracChangeset
for help on using the changeset viewer.