diff --git a/wp-includes/load.php b/wp-includes/load.php index 2682b81638..5a251af21e 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -1140,6 +1140,19 @@ function wp_clone( $object ) { return clone( $object ); } +/** + * Determines whether the current request is for the login screen. + * + * @since 6.1.0 + * + * @see wp_login_url() + * + * @return bool True if inside WordPress login screen, false otherwise. + */ +function is_login_screen() { + return false !== stripos( wp_login_url(), $_SERVER['SCRIPT_NAME'] ); +} + /** * Determines whether the current request is for an administrative interface page. * diff --git a/wp-includes/version.php b/wp-includes/version.php index e8557ce318..1a81702a02 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53883'; +$wp_version = '6.1-alpha-53884'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.