Changeset 48239 for trunk/src/wp-includes/media.php
- Timestamp:
- 06/30/2020 08:32:44 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r48237 r48239 1589 1589 } 1590 1590 1591 // Add extraattributes to the image markup.1591 // Add the srcset and sizes attributes to the image markup. 1592 1592 return preg_replace( '/<img ([^>]+?)[\/ ]*>/', '<img $1' . $attr . ' />', $image ); 1593 1593 } … … 1738 1738 1739 1739 // Images should have source and dimension attributes for the `loading` attribute to be added. 1740 if ( false === strpos( $image, ' src= ' ) || false === strpos( $image, ' width=' ) || false === strpos( $image, ' height=' ) ) {1740 if ( false === strpos( $image, ' src="' ) || false === strpos( $image, ' width="' ) || false === strpos( $image, ' height="' ) ) { 1741 1741 return $image; 1742 1742 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)