Make WordPress Core


Ignore:
Timestamp:
02/27/2018 02:30:46 AM (7 years ago)
Author:
SergeyBiryukov
Message:

General: Introduce WP_Error::has_errors() method and use it where appropriate.

Props robdxw, DrewAPicture, SergeyBiryukov.
Fixes #42742.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r42710 r42761  
    24702470    $errors = apply_filters( 'registration_errors', $errors, $sanitized_user_login, $user_email );
    24712471
    2472     if ( $errors->get_error_code() ) {
     2472    if ( $errors->has_errors() ) {
    24732473        return $errors;
    24742474    }
Note: See TracChangeset for help on using the changeset viewer.