diff --git a/tests/phpunit/tests/rest-api/rest-schema-setup.php b/tests/phpunit/tests/rest-api/rest-schema-setup.php index ec310108a5..078232328e 100644 --- a/tests/phpunit/tests/rest-api/rest-schema-setup.php +++ b/tests/phpunit/tests/rest-api/rest-schema-setup.php @@ -381,26 +381,26 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 'Schema.name' => 'Test Blog', 'Schema.url' => 'http://example.org', 'Schema.home' => 'http://example.org', - 'Schema.routes./._links.self' => 'http://example.org/?rest_route=/', - 'Schema.routes./oembed/1.0._links.self' => 'http://example.org/?rest_route=/oembed/1.0', - 'Schema.routes./oembed/1.0/embed._links.self' => 'http://example.org/?rest_route=/oembed/1.0/embed', - 'Schema.routes./oembed/1.0/proxy._links.self' => 'http://example.org/?rest_route=/oembed/1.0/proxy', - 'Schema.routes./wp/v2._links.self' => 'http://example.org/?rest_route=/wp/v2', - 'Schema.routes./wp/v2/posts._links.self' => 'http://example.org/?rest_route=/wp/v2/posts', - 'Schema.routes./wp/v2/pages._links.self' => 'http://example.org/?rest_route=/wp/v2/pages', - 'Schema.routes./wp/v2/media._links.self' => 'http://example.org/?rest_route=/wp/v2/media', - 'Schema.routes./wp/v2/types._links.self' => 'http://example.org/?rest_route=/wp/v2/types', - 'Schema.routes./wp/v2/statuses._links.self' => 'http://example.org/?rest_route=/wp/v2/statuses', - 'Schema.routes./wp/v2/taxonomies._links.self' => 'http://example.org/?rest_route=/wp/v2/taxonomies', - 'Schema.routes./wp/v2/categories._links.self' => 'http://example.org/?rest_route=/wp/v2/categories', - 'Schema.routes./wp/v2/tags._links.self' => 'http://example.org/?rest_route=/wp/v2/tags', - 'Schema.routes./wp/v2/users._links.self' => 'http://example.org/?rest_route=/wp/v2/users', - 'Schema.routes./wp/v2/users/me._links.self' => 'http://example.org/?rest_route=/wp/v2/users/me', - 'Schema.routes./wp/v2/comments._links.self' => 'http://example.org/?rest_route=/wp/v2/comments', - 'Schema.routes./wp/v2/settings._links.self' => 'http://example.org/?rest_route=/wp/v2/settings', - 'oembed.routes./oembed/1.0._links.self' => 'http://example.org/?rest_route=/oembed/1.0', - 'oembed.routes./oembed/1.0/embed._links.self' => 'http://example.org/?rest_route=/oembed/1.0/embed', - 'oembed.routes./oembed/1.0/proxy._links.self' => 'http://example.org/?rest_route=/oembed/1.0/proxy', + 'Schema.routes./._links.self' => 'http://example.org/index.php?rest_route=/', + 'Schema.routes./oembed/1.0._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0', + 'Schema.routes./oembed/1.0/embed._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0/embed', + 'Schema.routes./oembed/1.0/proxy._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0/proxy', + 'Schema.routes./wp/v2._links.self' => 'http://example.org/index.php?rest_route=/wp/v2', + 'Schema.routes./wp/v2/posts._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/posts', + 'Schema.routes./wp/v2/pages._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/pages', + 'Schema.routes./wp/v2/media._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/media', + 'Schema.routes./wp/v2/types._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/types', + 'Schema.routes./wp/v2/statuses._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/statuses', + 'Schema.routes./wp/v2/taxonomies._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/taxonomies', + 'Schema.routes./wp/v2/categories._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/categories', + 'Schema.routes./wp/v2/tags._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/tags', + 'Schema.routes./wp/v2/users._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/users', + 'Schema.routes./wp/v2/users/me._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/users/me', + 'Schema.routes./wp/v2/comments._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/comments', + 'Schema.routes./wp/v2/settings._links.self' => 'http://example.org/index.php?rest_route=/wp/v2/settings', + 'oembed.routes./oembed/1.0._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0', + 'oembed.routes./oembed/1.0/embed._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0/embed', + 'oembed.routes./oembed/1.0/proxy._links.self' => 'http://example.org/index.php?rest_route=/oembed/1.0/proxy', 'oembeds.provider_name' => 'Test Blog', 'oembeds.provider_url' => 'http://example.org', 'oembeds.author_name' => 'Test Blog', @@ -409,14 +409,14 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 'PostsCollection.0.id' => 3, 'PostsCollection.0.guid.rendered' => 'http://example.org/?p=3', 'PostsCollection.0.link' => 'http://example.org/?p=3', - 'PostsCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3', - 'PostsCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/posts', - 'PostsCollection.0._links.about.0.href' => 'http://example.org/?rest_route=/wp/v2/types/post', - 'PostsCollection.0._links.replies.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=3', - 'PostsCollection.0._links.version-history.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3/revisions', - 'PostsCollection.0._links.wp:attachment.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3', - 'PostsCollection.0._links.wp:term.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcategories&post=3', - 'PostsCollection.0._links.wp:term.1.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Ftags&post=3', + 'PostsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/3', + 'PostsCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts', + 'PostsCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types/post', + 'PostsCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3', + 'PostsCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/3/revisions', + 'PostsCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3', + 'PostsCollection.0._links.wp:term.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3', + 'PostsCollection.0._links.wp:term.1.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3', 'PostModel.id' => 3, 'PostModel.guid.rendered' => 'http://example.org/?p=3', 'PostModel.link' => 'http://example.org/?p=3', @@ -425,7 +425,7 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 'postRevisions.0.parent' => 3, 'postRevisions.0.slug' => '3-revision-v1', 'postRevisions.0.guid.rendered' => 'http://example.org/?p=4', - 'postRevisions.0._links.parent.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3', + 'postRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/3', 'revision.author' => 2, 'revision.id' => 4, 'revision.parent' => 3, @@ -434,12 +434,12 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 'PagesCollection.0.id' => 5, 'PagesCollection.0.guid.rendered' => 'http://example.org/?page_id=5', 'PagesCollection.0.link' => 'http://example.org/?page_id=5', - 'PagesCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/pages/5', - 'PagesCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/pages', - 'PagesCollection.0._links.about.0.href' => 'http://example.org/?rest_route=/wp/v2/types/page', - 'PagesCollection.0._links.replies.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=5', - 'PagesCollection.0._links.version-history.0.href' => 'http://example.org/?rest_route=/wp/v2/pages/5/revisions', - 'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5', + 'PagesCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/5', + 'PagesCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages', + 'PagesCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types/page', + 'PagesCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5', + 'PagesCollection.0._links.version-history.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/5/revisions', + 'PagesCollection.0._links.wp:attachment.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5', 'PageModel.id' => 5, 'PageModel.guid.rendered' => 'http://example.org/?page_id=5', 'PageModel.link' => 'http://example.org/?page_id=5', @@ -448,7 +448,7 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 'pageRevisions.0.parent' => 5, 'pageRevisions.0.slug' => '5-revision-v1', 'pageRevisions.0.guid.rendered' => 'http://example.org/?p=6', - 'pageRevisions.0._links.parent.0.href' => 'http://example.org/?rest_route=/wp/v2/pages/5', + 'pageRevisions.0._links.parent.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages/5', 'pageRevision.author' => 2, 'pageRevision.id' => 6, 'pageRevision.parent' => 5, @@ -459,55 +459,55 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 'MediaCollection.0.link' => 'http://example.org/?attachment_id=7', 'MediaCollection.0.description.rendered' => '

', 'MediaCollection.0.source_url' => 'http://example.org/wp-content/uploads//tmp/canola.jpg', - 'MediaCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/media/7', - 'MediaCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/media', - 'MediaCollection.0._links.about.0.href' => 'http://example.org/?rest_route=/wp/v2/types/attachment', - 'MediaCollection.0._links.replies.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=7', + 'MediaCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media/7', + 'MediaCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media', + 'MediaCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types/attachment', + 'MediaCollection.0._links.replies.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7', 'MediaModel.id' => 7, 'MediaModel.guid.rendered' => 'http://example.org/?attachment_id=7', 'MediaModel.link' => 'http://example.org/?attachment_id=7', 'MediaModel.description.rendered' => '

', 'MediaModel.source_url' => 'http://example.org/wp-content/uploads//tmp/canola.jpg', - 'TypesCollection.post._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/types', - 'TypesCollection.post._links.wp:items.0.href' => 'http://example.org/?rest_route=/wp/v2/posts', - 'TypesCollection.page._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/types', - 'TypesCollection.page._links.wp:items.0.href' => 'http://example.org/?rest_route=/wp/v2/pages', - 'TypesCollection.attachment._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/types', - 'TypesCollection.attachment._links.wp:items.0.href' => 'http://example.org/?rest_route=/wp/v2/media', - 'StatusesCollection.publish._links.archives.0.href' => 'http://example.org/?rest_route=/wp/v2/posts', - 'StatusesCollection.future._links.archives.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=future', - 'StatusesCollection.draft._links.archives.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=draft', - 'StatusesCollection.pending._links.archives.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=pending', - 'StatusesCollection.private._links.archives.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=private', - 'StatusesCollection.trash._links.archives.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=trash', - 'TaxonomiesCollection.category._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/taxonomies', - 'TaxonomiesCollection.category._links.wp:items.0.href' => 'http://example.org/?rest_route=/wp/v2/categories', - 'TaxonomiesCollection.post_tag._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/taxonomies', - 'TaxonomiesCollection.post_tag._links.wp:items.0.href' => 'http://example.org/?rest_route=/wp/v2/tags', + 'TypesCollection.post._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types', + 'TypesCollection.post._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts', + 'TypesCollection.page._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types', + 'TypesCollection.page._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/pages', + 'TypesCollection.attachment._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/types', + 'TypesCollection.attachment._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/media', + 'StatusesCollection.publish._links.archives.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts', + 'StatusesCollection.future._links.archives.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=future', + 'StatusesCollection.draft._links.archives.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=draft', + 'StatusesCollection.pending._links.archives.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=pending', + 'StatusesCollection.private._links.archives.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=private', + 'StatusesCollection.trash._links.archives.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&status=trash', + 'TaxonomiesCollection.category._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/taxonomies', + 'TaxonomiesCollection.category._links.wp:items.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/categories', + 'TaxonomiesCollection.post_tag._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/taxonomies', + '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._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/categories/1', - 'CategoriesCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/categories', - 'CategoriesCollection.0._links.about.0.href' => 'http://example.org/?rest_route=/wp/v2/taxonomies/category', - 'CategoriesCollection.0._links.wp:post_type.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&categories=1', + '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', 'TagsCollection.0.id' => 2, 'TagsCollection.0.link' => 'http://example.org/?tag=restapi-client-fixture-tag', - 'TagsCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/tags/2', - 'TagsCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/tags', - 'TagsCollection.0._links.about.0.href' => 'http://example.org/?rest_route=/wp/v2/taxonomies/post_tag', - 'TagsCollection.0._links.wp:post_type.0.href' => 'http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&tags=2', + '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', + 'TagsCollection.0._links.about.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/taxonomies/post_tag', + 'TagsCollection.0._links.wp:post_type.0.href' => 'http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&tags=2', 'TagModel.id' => 2, 'TagModel.link' => 'http://example.org/?tag=restapi-client-fixture-tag', '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', 'UsersCollection.0.avatar_urls.48' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=48&d=mm&r=g', 'UsersCollection.0.avatar_urls.96' => 'http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=96&d=mm&r=g', - 'UsersCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/users/1', - 'UsersCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/users', + 'UsersCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/users/1', + 'UsersCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/users', 'UsersCollection.1.id' => 2, 'UsersCollection.1.link' => 'http://example.org/?author=2', - 'UsersCollection.1._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/users/2', - 'UsersCollection.1._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/users', + 'UsersCollection.1._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/users/2', + 'UsersCollection.1._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/users', 'UserModel.id' => 2, 'UserModel.link' => 'http://example.org/?author=2', 'me.id' => 2, @@ -515,9 +515,9 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase { 'CommentsCollection.0.id' => 2, 'CommentsCollection.0.post' => 3, 'CommentsCollection.0.link' => 'http://example.org/?p=3#comment-2', - 'CommentsCollection.0._links.self.0.href' => 'http://example.org/?rest_route=/wp/v2/comments/2', - 'CommentsCollection.0._links.collection.0.href' => 'http://example.org/?rest_route=/wp/v2/comments', - 'CommentsCollection.0._links.up.0.href' => 'http://example.org/?rest_route=/wp/v2/posts/3', + 'CommentsCollection.0._links.self.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/comments/2', + 'CommentsCollection.0._links.collection.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/comments', + 'CommentsCollection.0._links.up.0.href' => 'http://example.org/index.php?rest_route=/wp/v2/posts/3', 'CommentModel.id' => 2, 'CommentModel.post' => 3, 'CommentModel.link' => 'http://example.org/?p=3#comment-2', diff --git a/tests/qunit/fixtures/wp-api-generated.js b/tests/qunit/fixtures/wp-api-generated.js index fa31a4e41e..679d024598 100644 --- a/tests/qunit/fixtures/wp-api-generated.js +++ b/tests/qunit/fixtures/wp-api-generated.js @@ -3568,7 +3568,7 @@ mockedApiResponse.PostsCollection = [ "_links": { "self": [ { - "href": "http://example.org/?rest_route=/wp/v2/posts/3" + "href": "http://example.org/index.php?rest_route=/wp/v2/posts/3" } ], "collection": [ @@ -3584,29 +3584,29 @@ mockedApiResponse.PostsCollection = [ "replies": [ { "embeddable": true, - "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=3" + "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3" } ], "version-history": [ { - "href": "http://example.org/?rest_route=/wp/v2/posts/3/revisions" + "href": "http://example.org/index.php?rest_route=/wp/v2/posts/3/revisions" } ], "wp:attachment": [ { - "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3" + "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3" } ], "wp:term": [ { "taxonomy": "category", "embeddable": true, - "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcategories&post=3" + "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3" }, { "taxonomy": "post_tag", "embeddable": true, - "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Ftags&post=3" + "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3" } ], "curies": [ @@ -3683,7 +3683,7 @@ mockedApiResponse.postRevisions = [ "_links": { "parent": [ { - "href": "http://example.org/?rest_route=/wp/v2/posts/3" + "href": "http://example.org/index.php?rest_route=/wp/v2/posts/3" } ] } @@ -3749,7 +3749,7 @@ mockedApiResponse.PagesCollection = [ "_links": { "self": [ { - "href": "http://example.org/?rest_route=/wp/v2/pages/5" + "href": "http://example.org/index.php?rest_route=/wp/v2/pages/5" } ], "collection": [ @@ -3765,17 +3765,17 @@ mockedApiResponse.PagesCollection = [ "replies": [ { "embeddable": true, - "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=5" + "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5" } ], "version-history": [ { - "href": "http://example.org/?rest_route=/wp/v2/pages/5/revisions" + "href": "http://example.org/index.php?rest_route=/wp/v2/pages/5/revisions" } ], "wp:attachment": [ { - "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5" + "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5" } ], "curies": [ @@ -3848,7 +3848,7 @@ mockedApiResponse.pageRevisions = [ "_links": { "parent": [ { - "href": "http://example.org/?rest_route=/wp/v2/pages/5" + "href": "http://example.org/index.php?rest_route=/wp/v2/pages/5" } ] } @@ -3915,7 +3915,7 @@ mockedApiResponse.MediaCollection = [ "_links": { "self": [ { - "href": "http://example.org/?rest_route=/wp/v2/media/7" + "href": "http://example.org/index.php?rest_route=/wp/v2/media/7" } ], "collection": [ @@ -3931,7 +3931,7 @@ mockedApiResponse.MediaCollection = [ "replies": [ { "embeddable": true, - "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=7" + "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7" } ] } @@ -4300,7 +4300,7 @@ mockedApiResponse.TagsCollection = [ "_links": { "self": [ { - "href": "http://example.org/?rest_route=/wp/v2/tags/2" + "href": "http://example.org/index.php?rest_route=/wp/v2/tags/2" } ], "collection": [ @@ -4315,7 +4315,7 @@ mockedApiResponse.TagsCollection = [ ], "wp:post_type": [ { - "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&tags=2" + "href": "http://example.org/index.php?rest_route=%2Fwp%2Fv2%2Fposts&tags=2" } ], "curies": [ @@ -4383,7 +4383,7 @@ mockedApiResponse.UsersCollection = [ "_links": { "self": [ { - "href": "http://example.org/?rest_route=/wp/v2/users/2" + "href": "http://example.org/index.php?rest_route=/wp/v2/users/2" } ], "collection": [ @@ -4450,7 +4450,7 @@ mockedApiResponse.CommentsCollection = [ "_links": { "self": [ { - "href": "http://example.org/?rest_route=/wp/v2/comments/2" + "href": "http://example.org/index.php?rest_route=/wp/v2/comments/2" } ], "collection": [ @@ -4462,7 +4462,7 @@ mockedApiResponse.CommentsCollection = [ { "embeddable": true, "post_type": "post", - "href": "http://example.org/?rest_route=/wp/v2/posts/3" + "href": "http://example.org/index.php?rest_route=/wp/v2/posts/3" } ] }