Making WordPress.org

Changeset 10459


Ignore:
Timestamp:
11/20/2020 08:48:16 PM (6 years ago)
Author:
iandunn
Message:

Pattern API: Include id property in browse requests.

The Core endpoint expects it, so that search and browse responses have identical schemas.

See ​https://github.com/WordPress/gutenberg/pull/26578

File:
1 edited

Legend:

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

    r10414 r10459  
    3939
    4040                        // `_links` is a workaround for https://core.trac.wordpress.org/ticket/49985. Related https://core.trac.wordpress.org/ticket/49538.
    41                         $query_args['_fields'] = 'title,content,meta,_links';
     41                        $query_args['_fields'] = 'id,title,content,meta,_links';
    4242                        $query_args['_embed']  = 'wp:term';
    4343
Note: See TracChangeset for help on using the changeset viewer.