Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/query.php

    r46586 r47122  
    482482        $terms = get_the_terms( $post_id, 'wptests_tax' );
    483483        $this->assertEquals( array( $term_ids[0], $term_ids[1] ), wp_list_pluck( $terms, 'term_id' ) );
    484         // Flip the order
     484        // Flip the order.
    485485        wp_set_object_terms( $post_id, array( $term_ids[1], $term_ids[0] ), 'wptests_tax' );
    486486        $terms = get_the_terms( $post_id, 'wptests_tax' );
     
    512512        $terms = wp_get_object_terms( $post_id, array( 'category', 'wptests_tax' ) );
    513513        $this->assertEquals( array( $term_ids[0], $term_ids[1], 1 ), wp_list_pluck( $terms, 'term_id' ) );
    514         // Flip the order
     514        // Flip the order.
    515515        wp_set_object_terms( $post_id, array( $term_ids[1], $term_ids[0] ), 'wptests_tax' );
    516516        $terms = wp_get_object_terms( $post_id, array( 'category', 'wptests_tax' ) );
Note: See TracChangeset for help on using the changeset viewer.