From 0439ef8279fd267cde84d6f77ba66a11c32d84f3 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Fri, 14 Jan 2022 11:02:06 +0000 Subject: [PATCH] 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 --- wp-includes/post-thumbnail-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-thumbnail-template.php b/wp-includes/post-thumbnail-template.php index 091ffe4811..58315bc60f 100644 --- a/wp-includes/post-thumbnail-template.php +++ b/wp-includes/post-thumbnail-template.php @@ -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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 7eb5da1e58..fb36101e2d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.