Make WordPress Core

Changeset 37764


Ignore:
Timestamp:
06/21/2016 02:11:59 PM (8 years ago)
Author:
jeremyfelt
Message:

Admin: Allow for the consistent filtering of auth_redirect_scheme

Merge of [37651] to the 3.9 branch.

See #37047.

Location:
branches/3.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.9

  • branches/3.9/src/wp-includes/pluggable.php

    r36452 r37764  
    951951    }
    952952
    953     if ( is_user_admin() ) {
    954         $scheme = 'logged_in';
    955     } else {
    956         /**
    957          * Filter the authentication redirect scheme.
    958          *
    959          * @since 2.9.0
    960          *
    961          * @param string $scheme Authentication redirect scheme. Default empty.
    962          */
    963         $scheme = apply_filters( 'auth_redirect_scheme', '' );
    964     }
     953    /**
     954     * Filters the authentication redirect scheme.
     955     *
     956     * @since 2.9.0
     957     *
     958     * @param string $scheme Authentication redirect scheme. Default empty.
     959     */
     960    $scheme = apply_filters( 'auth_redirect_scheme', '' );
    965961
    966962    if ( $user_id = wp_validate_auth_cookie( '',  $scheme) ) {
Note: See TracChangeset for help on using the changeset viewer.