Improved logged out warnings, first run, props mintindeed, see #23295

git-svn-id: https://develop.svn.wordpress.org/trunk@23504 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2013-02-28 08:57:17 +00:00
parent c79cef4654
commit 780ee565aa
5 changed files with 236 additions and 13 deletions

View File

@@ -3883,4 +3883,18 @@ function wp_is_stream( $path ) {
*/
function wp_checkdate( $month, $day, $year, $source_date ) {
return apply_filters( 'wp_checkdate', checkdate( $month, $day, $year ), $source_date );
}
}
/**
* Load the auth check, for monitoring whether the user is still logged in
*
* @since 3.6.0
*
* @return void
*/
function wp_auth_check_load() {
if ( ! class_exists('WP_Auth_Check') ) {
require( ABSPATH . WPINC . '/class-wp-auth-check.php' );
WP_Auth_Check::get_instance();
}
}