Changeset 55171 for trunk/src/wp-includes/media.php
- Timestamp:
- 01/31/2023 07:39:51 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r54802 r55171 1024 1024 * Defaults to 'lazy', depending on wp_lazy_loading_enabled(). 1025 1025 * @type string $decoding The 'decoding' attribute value. Possible values are 1026 * 'async' (default), 'sync', or 'auto'. 1026 * 'async' (default), 'sync', or 'auto'. Passing false or an empty 1027 * string will result in the attribute being omitted. 1027 1028 * } 1028 1029 * @return string HTML img element or empty string on failure. … … 1056 1057 1057 1058 $attr = wp_parse_args( $attr, $default_attr ); 1059 1060 // Omit the `decoding` attribute if the value is invalid according to the spec. 1061 if ( empty( $attr['decoding'] ) || ! in_array( $attr['decoding'], array( 'async', 'sync', 'auto' ), true ) ) { 1062 unset( $attr['decoding'] ); 1063 } 1058 1064 1059 1065 // If the default value of `lazy` for the `loading` attribute is overridden
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)