Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
See commit 915d8c3 in content-filtering-2 branch.
  • Loading branch information
jaspermdegroot committed Sep 19, 2015
1 parent 567a2c3 commit 85a3cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-suite.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function test_tevkori_filter_content_images() {
// Function used to build HTML for the editor.
$img = get_image_tag( $id, '', '', '', 'medium' );

$respimg = preg_replace('/src="([^"]*)/', 'src="$1" ' . $srcset . ' ' . $sizes, $img);
$respimg = preg_replace('|<img ([^>]+) />|', '<img $1 ' . $srcset . ' ' . $sizes . ' />', $img);

$content = '<p>Welcome to WordPress! This post contains important information. After you read it, you can make it private to hide it from visitors but still have the information handy for future reference.</p>
<p>First things first:</p>
Expand Down

0 comments on commit 85a3cba

Please sign in to comment.