WordPress.org

Make WordPress Core

Changeset 37763


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

Admin: Allow for the consistent filtering of auth_redirect_scheme

Merge of [37651] to the 4.0 branch.

See #37047.

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

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

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