WordPress.org

Make WordPress Core


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

Admin: Allow for the consistent filtering of auth_redirect_scheme

Merge of [37651] to the 4.1 branch.

See #37047.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

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

    r36450 r37762  
    10081008    }
    10091009
    1010     if ( is_user_admin() ) {
    1011         $scheme = 'logged_in';
    1012     } else {
    1013         /**
    1014          * Filter the authentication redirect scheme.
    1015          *
    1016          * @since 2.9.0
    1017          *
    1018          * @param string $scheme Authentication redirect scheme. Default empty.
    1019          */
    1020         $scheme = apply_filters( 'auth_redirect_scheme', '' );
    1021     }
     1010    /**
     1011     * Filters the authentication redirect scheme.
     1012     *
     1013     * @since 2.9.0
     1014     *
     1015     * @param string $scheme Authentication redirect scheme. Default empty.
     1016     */
     1017    $scheme = apply_filters( 'auth_redirect_scheme', '' );
    10221018
    10231019    if ( $user_id = wp_validate_auth_cookie( '',  $scheme) ) {
Note: See TracChangeset for help on using the changeset viewer.