WordPress.org

Make WordPress Core

Ticket #28212: 28212.2.patch

File 28212.2.patch, 1.4 KB (added by skeemer, 6 years ago)

Replacement with fix for other overriding condition.

  • src/wp-includes/user.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    235235 *                  an earlier filter callback is received, that value is returned.
    236236 */
    237237function wp_validate_logged_in_cookie( $user_id ) {
    238         if ( $user_id ) {
     238        if ( $user_id !== false) {
    239239                return $user_id;
    240240        }
    241241
  • src/wp-includes/default-filters.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    311311// Default authentication filters
    312312add_filter( 'authenticate', 'wp_authenticate_username_password',  20, 3 );
    313313add_filter( 'authenticate', 'wp_authenticate_spam_check',         99    );
    314 add_filter( 'determine_current_user', 'wp_validate_auth_cookie'          );
    315 add_filter( 'determine_current_user', 'wp_validate_logged_in_cookie', 20 );
     314add_filter( 'determine_current_user', 'wp_validate_logged_in_cookie' );
    316315
    317316// Split term updates.
    318317add_action( 'split_shared_term', '_wp_check_split_default_terms',  10, 4 );