WordPress.org

Make WordPress Core

Changeset 37760


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

Admin: Allow for the consistent filtering of auth_redirect_scheme

Merge of [37651] to the 4.3 branch.

See #37047.

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

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

    r36448 r37760  
    10221022    }
    10231023
    1024     if ( is_user_admin() ) {
    1025         $scheme = 'logged_in';
    1026     } else {
    1027         /**
    1028          * Filter the authentication redirect scheme.
    1029          *
    1030          * @since 2.9.0
    1031          *
    1032          * @param string $scheme Authentication redirect scheme. Default empty.
    1033          */
    1034         $scheme = apply_filters( 'auth_redirect_scheme', '' );
    1035     }
     1024    /**
     1025     * Filters the authentication redirect scheme.
     1026     *
     1027     * @since 2.9.0
     1028     *
     1029     * @param string $scheme Authentication redirect scheme. Default empty.
     1030     */
     1031    $scheme = apply_filters( 'auth_redirect_scheme', '' );
    10361032
    10371033    if ( $user_id = wp_validate_auth_cookie( '',  $scheme) ) {
Note: See TracChangeset for help on using the changeset viewer.