Make WordPress Core


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

Admin: Allow for the consistent filtering of auth_redirect_scheme

Merge of [37651] to the 4.5 branch.

See #37047.

Location:
branches/4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

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

    r37030 r37757  
    985985    }
    986986
    987     if ( is_user_admin() ) {
    988         $scheme = 'logged_in';
    989     } else {
    990         /**
    991          * Filter the authentication redirect scheme.
    992          *
    993          * @since 2.9.0
    994          *
    995          * @param string $scheme Authentication redirect scheme. Default empty.
    996          */
    997         $scheme = apply_filters( 'auth_redirect_scheme', '' );
    998     }
     987    /**
     988     * Filters the authentication redirect scheme.
     989     *
     990     * @since 2.9.0
     991     *
     992     * @param string $scheme Authentication redirect scheme. Default empty.
     993     */
     994    $scheme = apply_filters( 'auth_redirect_scheme', '' );
    999995
    1000996    if ( $user_id = wp_validate_auth_cookie( '',  $scheme) ) {
Note: See TracChangeset for help on using the changeset viewer.