Make WordPress Core


Ignore:
Timestamp:
02/27/2018 02:30:46 AM (9 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-admin/includes/schema.php

    r42343 r42761  
    981981        }
    982982
    983         if ( $errors->get_error_code() ) {
     983        if ( $errors->has_errors() ) {
    984984                return $errors;
    985985        }
Note: See TracChangeset for help on using the changeset viewer.