Make WordPress Core


Ignore:
Timestamp:
07/28/2020 02:40:06 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Reformat a condifion for default taxonomy terms in map_meta_cap() for better readability.

Follow-up to [48356], [48480].

See #43517.

File:
1 edited

Legend:

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

    r48658 r48664  
    40554055                }
    40564056
    4057                 // Passed custom taxonomy list overwrites existing list if not empty.
     4057                // Passed custom taxonomy list overwrites the existing list if not empty.
    40584058                $terms = wp_get_object_terms( $post_ID, $taxonomy, array( 'fields' => 'ids' ) );
    40594059                if ( ! empty( $terms ) && empty( $postarr['tax_input'][ $taxonomy ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.