Lines:
1 to 100 of 160
<?php /** * These functions can be replaced via plugins. If plugins do not redefine these * functions, then these will be used instead. * * @package WordPress */ if ( ! function_exists( 'wp_set_current_user' ) ) : /* function wp_set_current_user() – Changes the current user by ID or name. */ endif; if ( ! function_exists( 'wp_get_current_user' ) ) : /* function wp_get_current_user() – Retrieve the current user object. */ endif; if ( ! function_exists( 'get_userdata' ) ) : /* function get_userdata() – Retrieve user info by user ID. */ endif; if ( ! function_exists( 'get_user_by' ) ) : /* function get_user_by() – Retrieve user info by a given field */ endif; if ( ! function_exists( 'cache_users' ) ) : /* function cache_users() – Retrieve info for user lists to prevent multiple queries by get_userdata() */ endif; if ( ! function_exists( 'wp_mail' ) ) : /* function wp_mail() – Sends an email, similar to PHP’s mail function. */ endif; if ( ! function_exists( 'wp_authenticate' ) ) : /* function wp_authenticate() – Authenticate a user, confirming the login credentials are valid. */ endif; if ( ! function_exists( 'wp_logout' ) ) : /* function wp_logout() – Log the current user out. */ endif; if ( ! function_exists( 'wp_validate_auth_cookie' ) ) : /* function wp_validate_auth_cookie() – Validates authentication cookie. */ endif; if ( ! function_exists( 'wp_generate_auth_cookie' ) ) : /* function wp_generate_auth_cookie() – Generates authentication cookie contents. */ endif; if ( ! function_exists( 'wp_parse_auth_cookie' ) ) : /* function wp_parse_auth_cookie() – Parses a cookie into its components. */ endif; if ( ! function_exists( 'wp_set_auth_cookie' ) ) : /* function wp_set_auth_cookie() – Sets the authentication cookies based on user ID. */ endif; if ( ! function_exists( 'wp_clear_auth_cookie' ) ) : /* function wp_clear_auth_cookie() – Removes all of the cookies associated with authentication. */ endif; if ( ! function_exists( 'is_user_logged_in' ) ) : /* function is_user_logged_in() – Determines whether the current visitor is a logged in user. */ endif; if ( ! function_exists( 'auth_redirect' ) ) : /* function auth_redirect() – Checks if a user is logged in, if not it redirects them to the login page. */ endif; if ( ! function_exists( 'check_admin_referer' ) ) : /* function check_admin_referer() – Ensures intent by verifying that a user was referred from another admin page with the correct security nonce. */ endif; if ( ! function_exists( 'check_ajax_referer' ) ) : /* function check_ajax_referer() – Verifies the Ajax request to prevent processing requests external of the blog. */ endif; if ( ! function_exists( 'wp_redirect' ) ) : /* function wp_redirect() – Redirects to another page. */ endif; if ( ! function_exists( 'wp_sanitize_redirect' ) ) : /* function wp_sanitize_redirect() – Sanitizes a URL for use in a redirect. */ /* function _wp_sanitize_utf8_in_redirect() – URL encode UTF-8 characters in a URL. */ endif; if ( ! function_exists( 'wp_safe_redirect' ) ) : /* function wp_safe_redirect() – Performs a safe (local) redirect, using wp_redirect(). */ endif; if ( ! function_exists( 'wp_validate_redirect' ) ) : /* function wp_validate_redirect() – Validates a URL for use in a redirect. */ endif; if ( ! function_exists( 'wp_notify_postauthor' ) ) : /* function wp_notify_postauthor() – Notify an author (and/or others) of a comment/trackback/pingback on a post. */ endif; if ( ! function_exists( 'wp_notify_moderator' ) ) :