Skip to:
Content

bbPress.org

Changeset 4209


Ignore:
Timestamp:
09/08/2012 11:03:42 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Core Functions:

  • Simplify logic in bbp_has_errors().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbp-includes/bbp-core-functions.php

    r4198r4209 
    271271 */
    272272function bbp_has_errors() {
    273 
    274     // Check for errors
    275273    $has_errors = bbpress()->errors->get_error_codes() ? true : false;
    276274
    277     // Filter return value
    278     $has_errors = apply_filters( 'bbp_has_errors', $has_errors, bbpress()->errors );
    279 
    280     return $has_errors;
     275    return apply_filters( 'bbp_has_errors', $has_errors, bbpress()->errors );
    281276}
    282277
Note: See TracChangeset for help on using the changeset viewer.