Currently, this is only used by Application Passwords to prevent a conflict since it also utilizes * Basic Auth. * * @since 5.6.1 * * @global string $pagenow The filename of the current screen. * * @param string $context The context to check for protection. Accepts 'login', 'admin', and 'front'. * Defaults to the current context. * @return bool Whether the site is protected by Basic Auth. */ function wp_is_site_protected_by_basic_auth( $context = '' ) { global $pagenow; if ( ! $context ) { if ( 'wp-login.php' === $pagenow ) { $context = 'login'; } elseif ( is_admin() ) { $context = 'admin'; } else { $context = 'front'; } } $is_protected = ! empty( $_SERVER['PHP_AUTH_USER'] ) || ! empty( $_SERVER['PHP_AUTH_PW'] ); /** * Filters whether a site is protected by HTTP Basic Auth. * * @since 5.6.1 * * @param bool $is_protected Whether the site is protected by Basic Auth. * @param string $context The context to check for protection. One of 'login', 'admin', or 'front'. */ return apply_filters( 'wp_is_site_protected_by_basic_auth', $is_protected, $context ); }
Fatal error: Uncaught Error: Call to undefined function wp_check_php_mysql_versions() in /home/ghalamokaaghaz/public_html/wp-settings.php:37 Stack trace: #0 /home/ghalamokaaghaz/public_html/wp-config.php(174): require_once() #1 /home/ghalamokaaghaz/public_html/wp-load.php(50): require_once('/home/ghalamoka...') #2 /home/ghalamokaaghaz/public_html/wp-blog-header.php(13): require_once('/home/ghalamoka...') #3 /home/ghalamokaaghaz/public_html/index.php(17): require('/home/ghalamoka...') #4 {main} thrown in /home/ghalamokaaghaz/public_html/wp-settings.php on line 37