mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
REST API: Fix array syntax after [43851].
I thought I was writing JavaScript. Alas. See #45196. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43852 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fcd9381149
commit
7818e29cc5
@ -599,22 +599,22 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase {
|
||||
'TaxonomiesCollection.post_tag._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags',
|
||||
'CategoriesCollection.0.link' => 'http://example.org/?cat=1',
|
||||
'CategoriesCollection.0.meta.test_single' => '',
|
||||
'CategoriesCollection.0.meta.test_multi' => [],
|
||||
'CategoriesCollection.0.meta.test_multi' => array(),
|
||||
'CategoriesCollection.0.meta.test_cat_single' => '',
|
||||
'CategoriesCollection.0.meta.test_cat_multi' => [],
|
||||
'CategoriesCollection.0.meta.test_cat_multi' => array(),
|
||||
'CategoriesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories/1',
|
||||
'CategoriesCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories',
|
||||
'CategoriesCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/taxonomies/category',
|
||||
'CategoriesCollection.0._links.wp:post_type.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&categories=1',
|
||||
'CategoryModel.link' => 'http://example.org/?cat=1',
|
||||
'CategoryModel.meta.test_single' => '',
|
||||
'CategoryModel.meta.test_multi' => [],
|
||||
'CategoryModel.meta.test_multi' => array(),
|
||||
'CategoryModel.meta.test_cat_single' => '',
|
||||
'CategoryModel.meta.test_cat_multi' => [],
|
||||
'CategoryModel.meta.test_cat_multi' => array(),
|
||||
'TagsCollection.0.id' => 2,
|
||||
'TagsCollection.0.link' => 'http://example.org/?tag=restapi-client-fixture-tag',
|
||||
'TagsCollection.0.meta.test_single' => '',
|
||||
'TagsCollection.0.meta.test_multi' => [],
|
||||
'TagsCollection.0.meta.test_multi' => array(),
|
||||
'TagsCollection.0.meta.test_tag_meta' => '',
|
||||
'TagsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags/2',
|
||||
'TagsCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/tags',
|
||||
@ -623,7 +623,7 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase {
|
||||
'TagModel.id' => 2,
|
||||
'TagModel.link' => 'http://example.org/?tag=restapi-client-fixture-tag',
|
||||
'TagModel.meta.test_single' => '',
|
||||
'TagModel.meta.test_multi' => [],
|
||||
'TagModel.meta.test_multi' => array(),
|
||||
'TagModel.meta.test_tag_meta' => '',
|
||||
'UsersCollection.0.link' => 'http://example.org/?author=1',
|
||||
'UsersCollection.0.avatar_urls.24' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g',
|
||||
|
Loading…
x
Reference in New Issue
Block a user