Making WordPress.org

Changeset 10629


Ignore:
Timestamp:
01/25/2021 11:11:36 PM (4 years ago)
Author:
iandunn
Message:

Patterns API: Use latest pattern-categories endpoint name.

It was changed in https://github.com/WordPress/pattern-directory/commit/23b5900e7728604fb5d1dc2db2d07b7779882daf to be consistent with Core.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/patterns/1.0/tests/test-index.php

    r10627 r10629  
    6565    public function test_browse_category() : void {
    6666        $button_term_id = 2;
    67         $response       = send_request( '/patterns/1.0/?pattern_categories=' . $button_term_id );
     67        $response       = send_request( '/patterns/1.0/?pattern-categories=' . $button_term_id );
    6868        $patterns       = json_decode( $response->body );
    6969        $term_slugs     = $this->get_term_slugs( $patterns );
Note: See TracChangeset for help on using the changeset viewer.