Skip to content

Commit

Permalink
Revert "Replace data-sizes for backward compatibility"
Browse files Browse the repository at this point in the history
This reverts commit 0163649.
  • Loading branch information
joemcgill committed Nov 5, 2015
1 parent a50efa0 commit f67e529
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions wp-tevko-core-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,6 @@ function tevkori_get_media_embedded_in_content( $content, $types = null ) {

if ( preg_match_all( '#<(?P<tag>' . $tags . ')[^<]*?(?:>[\s\S]*?<\/(?P=tag)>|\s*\/>)#', $content, $matches ) ) {
foreach ( $matches[0] as $match ) {

/*
* Backward compatibility.
*
* Prior to version 2.5 a 'srcset' and 'data-sizes' attribute
* were added to the image while inserting the image in the content.
* We replace the 'data-sizes' attribute by a 'sizes' attribute.
*/
$match = str_replace( ' data-sizes="', ' sizes="', $match );

$html[] = $match;
}
}
Expand Down

0 comments on commit f67e529

Please sign in to comment.