WordPress.org

Make WordPress Core

Changeset 37761


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

Admin: Allow for the consistent filtering of auth_redirect_scheme

Merge of [37651] to the 4.2 branch.

See #37047.

Location:
branches/4.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2

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

    r36449 r37761  
    10151015    }
    10161016
    1017     if ( is_user_admin() ) {
    1018         $scheme = 'logged_in';
    1019     } else {
    1020         /**
    1021          * Filter the authentication redirect scheme.
    1022          *
    1023          * @since 2.9.0
    1024          *
    1025          * @param string $scheme Authentication redirect scheme. Default empty.
    1026          */
    1027         $scheme = apply_filters( 'auth_redirect_scheme', '' );
    1028     }
     1017    /**
     1018     * Filters the authentication redirect scheme.
     1019     *
     1020     * @since 2.9.0
     1021     *
     1022     * @param string $scheme Authentication redirect scheme. Default empty.
     1023     */
     1024    $scheme = apply_filters( 'auth_redirect_scheme', '' );
    10291025
    10301026    if ( $user_id = wp_validate_auth_cookie( '',  $scheme) ) {
Note: See TracChangeset for help on using the changeset viewer.