diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 01048f8ee6d06..b967520ecb0af 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -8717,13 +8717,13 @@ function is_wp_version_compatible( $required ) { list( $version ) = explode( '-', $wp_version ); if ( is_string( $required ) && substr_count( $required, '.' ) > 1 && str_ends_with( $required, '.0' ) ) { - $required = rtrim( $required, '.0' ); - - wp_trigger_error( - __FUNCTION__, - 'Not a valid WordPress version string.', - E_USER_NOTICE + error_log( + __FUNCTION__ . '(): ' . + /* translators: s: version string sent to function */ + sprintf( __( '`%s` Not a valid WordPress version string.' ), $required ) ); + + $required = rtrim( $required, '.0' ); } return empty( $required ) || version_compare( $version, $required, '>=' );