Make WordPress Core

Changeset 7319


Ignore:
Timestamp:
03/15/2008 08:50:49 PM (17 years ago)
Author:
westi
Message:

Allow plugins to filter the redirect status as well as the location. See #4790.

File:
1 edited

Legend:

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

    r7308 r7319  
    674674
    675675    $location = apply_filters('wp_redirect', $location, $status);
    676 
     676    $status = apply_filters('wp_redirect_status', $status, $location);
     677   
    677678    if ( !$location ) // allows the wp_redirect filter to cancel a redirect
    678679        return false;
Note: See TracChangeset for help on using the changeset viewer.