mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-24 21:32:51 +02:00
Docs: Improve documentation for auth_redirect()
.
Props atachibana. Fixes #47956. Built from https://develop.svn.wordpress.org/trunk@45924 git-svn-id: http://core.svn.wordpress.org/trunk@45735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f447c32aca
commit
7fd6077864
@ -1005,6 +1005,11 @@ if ( ! function_exists( 'auth_redirect' ) ) :
|
|||||||
/**
|
/**
|
||||||
* Checks if a user is logged in, if not it redirects them to the login page.
|
* Checks if a user is logged in, if not it redirects them to the login page.
|
||||||
*
|
*
|
||||||
|
* When this code is called from a page, it checks to see if the user viewing the page is logged in.
|
||||||
|
* If the user is not logged in, they are redirected to the login page. The user is redirected
|
||||||
|
* in such a way that, upon logging in, they will be sent directly to the page they were originally
|
||||||
|
* trying to access.
|
||||||
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*/
|
*/
|
||||||
function auth_redirect() {
|
function auth_redirect() {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-45923';
|
$wp_version = '5.3-alpha-45924';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user