Make WordPress Core

Changeset 24996


Ignore:
Timestamp:
08/06/2013 05:44:32 PM (12 years ago)
Author:
ryan
Message:

Return true from wp_redirect() when redirect successful. Update phpdoc.

Props tivnet
fixes #24969

File:
1 edited

Legend:

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

    r24649 r24996  
    857857 * @param string $location The path to redirect to
    858858 * @param int $status Status code to use
    859  * @return bool False if $location is not set
     859 * @return bool False if $location is not provided, true otherwise.
    860860 */
    861861function wp_redirect($location, $status = 302) {
     
    874874
    875875    header("Location: $location", true, $status);
     876
     877    return true;
    876878}
    877879endif;
Note: See TracChangeset for help on using the changeset viewer.