Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#47956 closed defect (bug) (fixed)

PHPDoc correction for auth_redirect() in wp-includes/pluggable.php

Reported by: atachibana Owned by: SergeyBiryukov
Priority: normal Milestone: 5.3
Component: Users Version:
Severity: minor Keywords: has-patch
Cc: Focuses: docs

Description

Enhanced missing information of Codex for auth_redirect() in wp-includes/pluggable.php

  • Description
 	/**
 	 * 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
 	 */

Codex: ​https://codex.wordpress.org/Function_Reference/auth_redirect
Code Reference: ​https://developer.wordpress.org/reference/functions/auth_redirect/

This is the action of inline docs and Codex migration initiatives.

Attachments (1)

47956.diff​ (654 bytes ) - added by atachibana 7 years ago.

Download all attachments as: .zip

Change History (3)

@atachibana
7 years ago

#1 @SergeyBiryukov
7 years ago

  • Component General → Users
  • Milestone Awaiting Review → 5.3
  • Owner set to SergeyBiryukov
  • Status new → reviewing

#2 @SergeyBiryukov
7 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 45924:

Docs: Improve documentation for auth_redirect().

Props atachibana.
Fixes #47956.

Note: See TracTickets for help on using tickets.