mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
Media: Add a missing /
in post thumbnail lazy loading regex.
This change avoids a warning thrown by a missing slash in a post thumbnail lazyload related regular expression. Follow-up to [52065]. Props SierraTR, audrasjb, costdev. Fixes #54815. Built from https://develop.svn.wordpress.org/trunk@52574 git-svn-id: http://core.svn.wordpress.org/trunk@52164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b4de570d35
commit
0439ef8279
@ -195,7 +195,7 @@ function get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr =
|
||||
$attr = array( 'loading' => $loading );
|
||||
} elseif ( is_array( $attr ) && ! array_key_exists( 'loading', $attr ) ) {
|
||||
$attr['loading'] = $loading;
|
||||
} elseif ( is_string( $attr ) && ! preg_match( '/(^|&)loading=', $attr ) ) {
|
||||
} elseif ( is_string( $attr ) && ! preg_match( '/(^|&)loading=/', $attr ) ) {
|
||||
$attr .= '&loading=' . $loading;
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0-alpha-52573';
|
||||
$wp_version = '6.0-alpha-52574';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user