WordPress.org

Make WordPress Core

Changeset 37758 for branches/4.4


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

Admin: Allow for the consistent filtering of auth_redirect_scheme

Merge of [37651] to the 4.4 branch.

See #37047.

Location:
branches/4.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

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

    r37081 r37758  
    10421042    }
    10431043
    1044     if ( is_user_admin() ) {
    1045         $scheme = 'logged_in';
    1046     } else {
    1047         /**
    1048          * Filter the authentication redirect scheme.
    1049          *
    1050          * @since 2.9.0
    1051          *
    1052          * @param string $scheme Authentication redirect scheme. Default empty.
    1053          */
    1054         $scheme = apply_filters( 'auth_redirect_scheme', '' );
    1055     }
     1044    /**
     1045     * Filters the authentication redirect scheme.
     1046     *
     1047     * @since 2.9.0
     1048     *
     1049     * @param string $scheme Authentication redirect scheme. Default empty.
     1050     */
     1051    $scheme = apply_filters( 'auth_redirect_scheme', '' );
    10561052
    10571053    if ( $user_id = wp_validate_auth_cookie( '',  $scheme) ) {
Note: See TracChangeset for help on using the changeset viewer.