Skip to content

Commit

Permalink
I think this now works with wp_trigger_error
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Nov 16, 2023
1 parent 3cad191 commit ea216d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8717,8 +8717,8 @@ function is_wp_version_compatible( $required ) {
list( $version ) = explode( '-', $wp_version );

if ( is_string( $required ) && substr_count( $required, '.' ) > 1 && str_ends_with( $required, '.0' ) ) {
error_log(
__FUNCTION__ . '(): ' .
wp_trigger_error(
__FUNCTION__,
/* translators: s: version string sent to function */
sprintf( __( '`%s` Not a valid WordPress version string.' ), $required )
);
Expand Down

0 comments on commit ea216d5

Please sign in to comment.