Skip to content

Commit 407148e

Browse files
committed
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develop into trac-64076-move-emoji-loader-to-footer
2 parents ca22ac9 + 3a0f401 commit 407148e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wp-includes/link-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4577,7 +4577,7 @@ function get_avatar_data( $id_or_email, $args = null ) {
45774577
}
45784578

45794579
if ( '' !== $name ) {
4580-
if ( false === strpos( $name, ' ' ) || preg_match( '/\p{Han}|\p{Hiragana}|\p{Katakana}|\p{Hangul}/u', $name ) ) {
4580+
if ( ! str_contains( $name, ' ' ) || preg_match( '/\p{Han}|\p{Hiragana}|\p{Katakana}|\p{Hangul}/u', $name ) ) {
45814581
$initials = mb_substr( $name, 0, min( 2, mb_strlen( $name, 'UTF-8' ) ), 'UTF-8' );
45824582
} else {
45834583
$first = mb_substr( $name, 0, 1, 'UTF-8' );

src/wp-includes/shortcodes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function has_shortcode( $content, $tag ) {
182182
* @return string[] An array of registered shortcode names found in the content.
183183
*/
184184
function get_shortcode_tags_in_content( $content ) {
185-
if ( false === strpos( $content, '[' ) ) {
185+
if ( ! str_contains( $content, '[' ) ) {
186186
return array();
187187
}
188188

0 commit comments

Comments
 (0)