Skip to content

Commit

Permalink
use error_log so function doesn't exit
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Nov 16, 2023
1 parent 54e7518 commit 3cad191
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, '>=' );
Expand Down

0 comments on commit 3cad191

Please sign in to comment.