Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (3 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/rest-api/rest-taxonomies-controller.php

    r46586 r47122  
    3434
    3535    public function test_context_param() {
    36         // Collection
     36        // Collection.
    3737        $request  = new WP_REST_Request( 'OPTIONS', '/wp/v2/taxonomies' );
    3838        $response = rest_get_server()->dispatch( $request );
     
    4040        $this->assertEquals( 'view', $data['endpoints'][0]['args']['context']['default'] );
    4141        $this->assertEqualSets( array( 'view', 'edit', 'embed' ), $data['endpoints'][0]['args']['context']['enum'] );
    42         // Single
     42        // Single.
    4343        $request  = new WP_REST_Request( 'OPTIONS', '/wp/v2/taxonomies/post_tag' );
    4444        $response = rest_get_server()->dispatch( $request );
     
    247247     */
    248248    private function get_public_taxonomies( $taxonomies ) {
    249         // Pass through array_values to re-index after filtering
     249        // Pass through array_values to re-index after filtering.
    250250        return array_values( array_filter( $taxonomies, array( $this, 'is_public' ) ) );
    251251    }
Note: See TracChangeset for help on using the changeset viewer.