Ticket #36246: 36246.patch
File 36246.patch, 1.3 KB (added by , 8 years ago) |
---|
-
tests/phpunit/tests/media.php
1807 1807 $year = date( 'Y' ); 1808 1808 $month = date( 'm' ); 1809 1809 1810 $expected = '<img width="999" height="999" src="http:// example.org/wp-content/uploads/' . $year . '/' . $month . '/test-image-testsize-999x999.png"' .1810 $expected = '<img width="999" height="999" src="http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year . '/' . $month . '/test-image-testsize-999x999.png"' . 1811 1811 ' class="attachment-testsize size-testsize" alt="test-image-large.png"' . 1812 ' srcset="http:// example.org/wp-content/uploads/' . $year . '/' . $month . '/test-image-testsize-999x999.png 999w,' .1813 ' http:// example.org/wp-content/uploads/' . $year . '/' . $month . '/test-image-large-150x150.png 150w"' .1812 ' srcset="http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year . '/' . $month . '/test-image-testsize-999x999.png 999w,' . 1813 ' http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $year . '/' . $month . '/test-image-large-150x150.png 150w"' . 1814 1814 ' sizes="(max-width: 999px) 100vw, 999px" />'; 1815 1815 1816 1816 remove_filter( 'wp_get_attachment_metadata', array( $this, '_filter_36246' ) );