REST API: Fix array syntax after [43851].
I thought I was writing JavaScript. Alas. Merges [43852] from the 5.0 branch to trunk. Props danielbachhuber. See #45196. git-svn-id: https://develop.svn.wordpress.org/trunk@44218 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
de92919e02
commit
4212d597c5
@ -616,22 +616,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',
|
||||
@ -640,7 +640,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…
Reference in New Issue
Block a user