Make WordPress Core


Ignore:
Timestamp:
09/01/2019 01:02:29 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for auth_redirect().

Props atachibana.
Fixes #47956.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r45822 r45924  
    10051005    /**
    10061006     * Checks if a user is logged in, if not it redirects them to the login page.
     1007     *
     1008     * When this code is called from a page, it checks to see if the user viewing the page is logged in.
     1009     * If the user is not logged in, they are redirected to the login page. The user is redirected
     1010     * in such a way that, upon logging in, they will be sent directly to the page they were originally
     1011     * trying to access.
    10071012     *
    10081013     * @since 1.5.0
Note: See TracChangeset for help on using the changeset viewer.