Make WordPress Core

Changeset 40066


Ignore:
Timestamp:
02/17/2017 12:12:49 AM (7 years ago)
Author:
jnylen0
Message:

REST API: Skip generating the client test fixtures in PHP 5.2 and 5.3.

Follow-up to [40065] - JSON_* constants are differently unsupported in PHP 5.2 and 5.3, which caused other, more different failures.

Also bring back JSON_UNESCAPED_SLASHES because the generated output looks nicer this way.

Fixes #39264.

Location:
trunk/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r40065 r40066  
    276276            $this->assertTrue( ! empty( $data ), $route['name'] . ' route should return data.' );
    277277
    278             $fixture = $this->normalize_fixture( $data, $route['name'] );
    279             $mocked_responses .= "\nmockedApiResponse." . $route['name'] . ' = '
    280                 . json_encode( $fixture, JSON_PRETTY_PRINT )
    281                 . ";\n";
    282         }
    283 
    284         // Save the route object for QUnit tests.
    285         $file = './tests/qunit/fixtures/wp-api-generated.js';
    286         file_put_contents( $file, $mocked_responses );
     278            if ( version_compare( PHP_VERSION, '5.4', '>=' ) ) {
     279                $fixture = $this->normalize_fixture( $data, $route['name'] );
     280                $mocked_responses .= "\nmockedApiResponse." . $route['name'] . ' = '
     281                    . json_encode( $fixture, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES )
     282                    . ";\n";
     283            }
     284        }
     285
     286        if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
     287            echo "Skipping generation of API client fixtures due to unsupported JSON_* constants.\n";
     288        } else {
     289            // Save the route object for QUnit tests.
     290            $file = './tests/qunit/fixtures/wp-api-generated.js';
     291            file_put_contents( $file, $mocked_responses );
     292        }
    287293
    288294        // Clean up our test data.
  • trunk/tests/qunit/fixtures/wp-api-generated.js

    r40065 r40066  
    99    "name": "Test Blog",
    1010    "description": "Just another WordPress site",
    11     "url": "http:\/\/example.org",
    12     "home": "http:\/\/example.org",
     11    "url": "http://example.org",
     12    "home": "http://example.org",
    1313    "namespaces": [
    14         "oembed\/1.0",
    15         "wp\/v2"
     14        "oembed/1.0",
     15        "wp/v2"
    1616    ],
    1717    "authentication": [],
    1818    "routes": {
    19         "\/": {
     19        "/": {
    2020            "namespace": "",
    2121            "methods": [
     
    3636            ],
    3737            "_links": {
    38                 "self": "http:\/\/example.org\/?rest_route=\/"
     38                "self": "http://example.org/?rest_route=/"
    3939            }
    4040        },
    41         "\/oembed\/1.0": {
    42             "namespace": "oembed\/1.0",
     41        "/oembed/1.0": {
     42            "namespace": "oembed/1.0",
    4343            "methods": [
    4444                "GET"
     
    5252                        "namespace": {
    5353                            "required": false,
    54                             "default": "oembed\/1.0"
     54                            "default": "oembed/1.0"
    5555                        },
    5656                        "context": {
     
    6262            ],
    6363            "_links": {
    64                 "self": "http:\/\/example.org\/?rest_route=\/oembed\/1.0"
     64                "self": "http://example.org/?rest_route=/oembed/1.0"
    6565            }
    6666        },
    67         "\/oembed\/1.0\/embed": {
    68             "namespace": "oembed\/1.0",
     67        "/oembed/1.0/embed": {
     68            "namespace": "oembed/1.0",
    6969            "methods": [
    7070                "GET"
     
    9191            ],
    9292            "_links": {
    93                 "self": "http:\/\/example.org\/?rest_route=\/oembed\/1.0\/embed"
     93                "self": "http://example.org/?rest_route=/oembed/1.0/embed"
    9494            }
    9595        },
    96         "\/wp\/v2": {
    97             "namespace": "wp\/v2",
     96        "/wp/v2": {
     97            "namespace": "wp/v2",
    9898            "methods": [
    9999                "GET"
     
    107107                        "namespace": {
    108108                            "required": false,
    109                             "default": "wp\/v2"
     109                            "default": "wp/v2"
    110110                        },
    111111                        "context": {
     
    117117            ],
    118118            "_links": {
    119                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2"
     119                "self": "http://example.org/?rest_route=/wp/v2"
    120120            }
    121121        },
    122         "\/wp\/v2\/posts": {
    123             "namespace": "wp\/v2",
     122        "/wp/v2/posts": {
     123            "namespace": "wp/v2",
    124124            "methods": [
    125125                "GET",
     
    432432            ],
    433433            "_links": {
    434                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/posts"
     434                "self": "http://example.org/?rest_route=/wp/v2/posts"
    435435            }
    436436        },
    437         "\/wp\/v2\/posts\/(?P<id>[\\d]+)": {
    438             "namespace": "wp\/v2",
     437        "/wp/v2/posts/(?P<id>[\\d]+)": {
     438            "namespace": "wp/v2",
    439439            "methods": [
    440440                "GET",
     
    624624            ]
    625625        },
    626         "\/wp\/v2\/posts\/(?P<parent>[\\d]+)\/revisions": {
    627             "namespace": "wp\/v2",
     626        "/wp/v2/posts/(?P<parent>[\\d]+)/revisions": {
     627            "namespace": "wp/v2",
    628628            "methods": [
    629629                "GET"
     
    655655            ]
    656656        },
    657         "\/wp\/v2\/posts\/(?P<parent>[\\d]+)\/revisions\/(?P<id>[\\d]+)": {
    658             "namespace": "wp\/v2",
     657        "/wp/v2/posts/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": {
     658            "namespace": "wp/v2",
    659659            "methods": [
    660660                "GET",
     
    715715            ]
    716716        },
    717         "\/wp\/v2\/pages": {
    718             "namespace": "wp\/v2",
     717        "/wp/v2/pages": {
     718            "namespace": "wp/v2",
    719719            "methods": [
    720720                "GET",
     
    991991            ],
    992992            "_links": {
    993                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/pages"
     993                "self": "http://example.org/?rest_route=/wp/v2/pages"
    994994            }
    995995        },
    996         "\/wp\/v2\/pages\/(?P<id>[\\d]+)": {
    997             "namespace": "wp\/v2",
     996        "/wp/v2/pages/(?P<id>[\\d]+)": {
     997            "namespace": "wp/v2",
    998998            "methods": [
    999999                "GET",
     
    11641164            ]
    11651165        },
    1166         "\/wp\/v2\/pages\/(?P<parent>[\\d]+)\/revisions": {
    1167             "namespace": "wp\/v2",
     1166        "/wp/v2/pages/(?P<parent>[\\d]+)/revisions": {
     1167            "namespace": "wp/v2",
    11681168            "methods": [
    11691169                "GET"
     
    11951195            ]
    11961196        },
    1197         "\/wp\/v2\/pages\/(?P<parent>[\\d]+)\/revisions\/(?P<id>[\\d]+)": {
    1198             "namespace": "wp\/v2",
     1197        "/wp/v2/pages/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)": {
     1198            "namespace": "wp/v2",
    11991199            "methods": [
    12001200                "GET",
     
    12551255            ]
    12561256        },
    1257         "\/wp\/v2\/media": {
    1258             "namespace": "wp\/v2",
     1257        "/wp/v2/media": {
     1258            "namespace": "wp/v2",
    12591259            "methods": [
    12601260                "GET",
     
    15261526            ],
    15271527            "_links": {
    1528                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/media"
     1528                "self": "http://example.org/?rest_route=/wp/v2/media"
    15291529            }
    15301530        },
    1531         "\/wp\/v2\/media\/(?P<id>[\\d]+)": {
    1532             "namespace": "wp\/v2",
     1531        "/wp/v2/media/(?P<id>[\\d]+)": {
     1532            "namespace": "wp/v2",
    15331533            "methods": [
    15341534                "GET",
     
    16841684            ]
    16851685        },
    1686         "\/wp\/v2\/types": {
    1687             "namespace": "wp\/v2",
     1686        "/wp/v2/types": {
     1687            "namespace": "wp/v2",
    16881688            "methods": [
    16891689                "GET"
     
    17101710            ],
    17111711            "_links": {
    1712                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/types"
     1712                "self": "http://example.org/?rest_route=/wp/v2/types"
    17131713            }
    17141714        },
    1715         "\/wp\/v2\/types\/(?P<type>[\\w-]+)": {
    1716             "namespace": "wp\/v2",
     1715        "/wp/v2/types/(?P<type>[\\w-]+)": {
     1716            "namespace": "wp/v2",
    17171717            "methods": [
    17181718                "GET"
     
    17441744            ]
    17451745        },
    1746         "\/wp\/v2\/statuses": {
    1747             "namespace": "wp\/v2",
     1746        "/wp/v2/statuses": {
     1747            "namespace": "wp/v2",
    17481748            "methods": [
    17491749                "GET"
     
    17701770            ],
    17711771            "_links": {
    1772                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/statuses"
     1772                "self": "http://example.org/?rest_route=/wp/v2/statuses"
    17731773            }
    17741774        },
    1775         "\/wp\/v2\/statuses\/(?P<status>[\\w-]+)": {
    1776             "namespace": "wp\/v2",
     1775        "/wp/v2/statuses/(?P<status>[\\w-]+)": {
     1776            "namespace": "wp/v2",
    17771777            "methods": [
    17781778                "GET"
     
    18041804            ]
    18051805        },
    1806         "\/wp\/v2\/taxonomies": {
    1807             "namespace": "wp\/v2",
     1806        "/wp/v2/taxonomies": {
     1807            "namespace": "wp/v2",
    18081808            "methods": [
    18091809                "GET"
     
    18351835            ],
    18361836            "_links": {
    1837                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/taxonomies"
     1837                "self": "http://example.org/?rest_route=/wp/v2/taxonomies"
    18381838            }
    18391839        },
    1840         "\/wp\/v2\/taxonomies\/(?P<taxonomy>[\\w-]+)": {
    1841             "namespace": "wp\/v2",
     1840        "/wp/v2/taxonomies/(?P<taxonomy>[\\w-]+)": {
     1841            "namespace": "wp/v2",
    18421842            "methods": [
    18431843                "GET"
     
    18691869            ]
    18701870        },
    1871         "\/wp\/v2\/categories": {
    1872             "namespace": "wp\/v2",
     1871        "/wp/v2/categories": {
     1872            "namespace": "wp/v2",
    18731873            "methods": [
    18741874                "GET",
     
    20092009            ],
    20102010            "_links": {
    2011                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/categories"
     2011                "self": "http://example.org/?rest_route=/wp/v2/categories"
    20122012            }
    20132013        },
    2014         "\/wp\/v2\/categories\/(?P<id>[\\d]+)": {
    2015             "namespace": "wp\/v2",
     2014        "/wp/v2/categories/(?P<id>[\\d]+)": {
     2015            "namespace": "wp/v2",
    20162016            "methods": [
    20172017                "GET",
     
    21042104            ]
    21052105        },
    2106         "\/wp\/v2\/tags": {
    2107             "namespace": "wp\/v2",
     2106        "/wp/v2/tags": {
     2107            "namespace": "wp/v2",
    21082108            "methods": [
    21092109                "GET",
     
    22392239            ],
    22402240            "_links": {
    2241                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/tags"
     2241                "self": "http://example.org/?rest_route=/wp/v2/tags"
    22422242            }
    22432243        },
    2244         "\/wp\/v2\/tags\/(?P<id>[\\d]+)": {
    2245             "namespace": "wp\/v2",
     2244        "/wp/v2/tags/(?P<id>[\\d]+)": {
     2245            "namespace": "wp/v2",
    22462246            "methods": [
    22472247                "GET",
     
    23292329            ]
    23302330        },
    2331         "\/wp\/v2\/users": {
    2332             "namespace": "wp\/v2",
     2331        "/wp/v2/users": {
     2332            "namespace": "wp/v2",
    23332333            "methods": [
    23342334                "GET",
     
    25162516            ],
    25172517            "_links": {
    2518                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/users"
     2518                "self": "http://example.org/?rest_route=/wp/v2/users"
    25192519            }
    25202520        },
    2521         "\/wp\/v2\/users\/(?P<id>[\\d]+)": {
    2522             "namespace": "wp\/v2",
     2521        "/wp/v2/users/(?P<id>[\\d]+)": {
     2522            "namespace": "wp/v2",
    25232523            "methods": [
    25242524                "GET",
     
    26662666            ]
    26672667        },
    2668         "\/wp\/v2\/users\/me": {
    2669             "namespace": "wp\/v2",
     2668        "/wp/v2/users/me": {
     2669            "namespace": "wp/v2",
    26702670            "methods": [
    26712671                "GET",
     
    27982798            ],
    27992799            "_links": {
    2800                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/users\/me"
     2800                "self": "http://example.org/?rest_route=/wp/v2/users/me"
    28012801            }
    28022802        },
    2803         "\/wp\/v2\/comments": {
    2804             "namespace": "wp\/v2",
     2803        "/wp/v2/comments": {
     2804            "namespace": "wp/v2",
    28052805            "methods": [
    28062806                "GET",
     
    30423042            ],
    30433043            "_links": {
    3044                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/comments"
     3044                "self": "http://example.org/?rest_route=/wp/v2/comments"
    30453045            }
    30463046        },
    3047         "\/wp\/v2\/comments\/(?P<id>[\\d]+)": {
    3048             "namespace": "wp\/v2",
     3047        "/wp/v2/comments/(?P<id>[\\d]+)": {
     3048            "namespace": "wp/v2",
    30493049            "methods": [
    30503050                "GET",
     
    31873187            ]
    31883188        },
    3189         "\/wp\/v2\/settings": {
    3190             "namespace": "wp\/v2",
     3189        "/wp/v2/settings": {
     3190            "namespace": "wp/v2",
    31913191            "methods": [
    31923192                "GET",
     
    32963296            ],
    32973297            "_links": {
    3298                 "self": "http:\/\/example.org\/?rest_route=\/wp\/v2\/settings"
     3298                "self": "http://example.org/?rest_route=/wp/v2/settings"
    32993299            }
    33003300        }
     
    33033303
    33043304mockedApiResponse.oembed = {
    3305     "namespace": "oembed\/1.0",
     3305    "namespace": "oembed/1.0",
    33063306    "routes": {
    3307         "\/oembed\/1.0": {
    3308             "namespace": "oembed\/1.0",
     3307        "/oembed/1.0": {
     3308            "namespace": "oembed/1.0",
    33093309            "methods": [
    33103310                "GET"
     
    33183318                        "namespace": {
    33193319                            "required": false,
    3320                             "default": "oembed\/1.0"
     3320                            "default": "oembed/1.0"
    33213321                        },
    33223322                        "context": {
     
    33283328            ],
    33293329            "_links": {
    3330                 "self": "http:\/\/example.org\/?rest_route=\/oembed\/1.0"
     3330                "self": "http://example.org/?rest_route=/oembed/1.0"
    33313331            }
    33323332        },
    3333         "\/oembed\/1.0\/embed": {
    3334             "namespace": "oembed\/1.0",
     3333        "/oembed/1.0/embed": {
     3334            "namespace": "oembed/1.0",
    33353335            "methods": [
    33363336                "GET"
     
    33573357            ],
    33583358            "_links": {
    3359                 "self": "http:\/\/example.org\/?rest_route=\/oembed\/1.0\/embed"
     3359                "self": "http://example.org/?rest_route=/oembed/1.0/embed"
    33603360            }
    33613361        }
     
    33803380        "date_gmt": "2017-02-14T00:00:00",
    33813381        "guid": {
    3382             "rendered": "http:\/\/example.org\/?p=3"
     3382            "rendered": "http://example.org/?p=3"
    33833383        },
    33843384        "modified": "2017-02-14T00:00:00",
     
    33863386        "slug": "restapi-client-fixture-post",
    33873387        "type": "post",
    3388         "link": "http:\/\/example.org\/?p=3",
     3388        "link": "http://example.org/?p=3",
    33893389        "title": {
    33903390            "rendered": "REST API Client Fixture: Post"
    33913391        },
    33923392        "content": {
    3393             "rendered": "<p>Updated post content.<\/p>\n",
     3393            "rendered": "<p>Updated post content.</p>\n",
    33943394            "protected": false
    33953395        },
    33963396        "excerpt": {
    3397             "rendered": "<p>REST API Client Fixture: Post<\/p>\n",
     3397            "rendered": "<p>REST API Client Fixture: Post</p>\n",
    33983398            "protected": false
    33993399        },
     
    34133413            "self": [
    34143414                {
    3415                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/posts\/3"
     3415                    "href": "http://example.org/?rest_route=/wp/v2/posts/3"
    34163416                }
    34173417            ],
    34183418            "collection": [
    34193419                {
    3420                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/posts"
     3420                    "href": "http://example.org/?rest_route=/wp/v2/posts"
    34213421                }
    34223422            ],
    34233423            "about": [
    34243424                {
    3425                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/types\/post"
     3425                    "href": "http://example.org/?rest_route=/wp/v2/types/post"
    34263426                }
    34273427            ],
     
    34293429                {
    34303430                    "embeddable": true,
    3431                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fcomments&post=3"
     3431                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=3"
    34323432                }
    34333433            ],
    34343434            "version-history": [
    34353435                {
    3436                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/posts\/3\/revisions"
     3436                    "href": "http://example.org/?rest_route=/wp/v2/posts/3/revisions"
    34373437                }
    34383438            ],
    34393439            "wp:attachment": [
    34403440                {
    3441                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3"
     3441                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3"
    34423442                }
    34433443            ],
     
    34463446                    "taxonomy": "category",
    34473447                    "embeddable": true,
    3448                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fcategories&post=3"
     3448                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcategories&post=3"
    34493449                },
    34503450                {
    34513451                    "taxonomy": "post_tag",
    34523452                    "embeddable": true,
    3453                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Ftags&post=3"
     3453                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Ftags&post=3"
    34543454                }
    34553455            ],
     
    34573457                {
    34583458                    "name": "wp",
    3459                     "href": "https:\/\/api.w.org\/{rel}",
     3459                    "href": "https://api.w.org/{rel}",
    34603460                    "templated": true
    34613461                }
     
    34703470    "date_gmt": "2017-02-14T00:00:00",
    34713471    "guid": {
    3472         "rendered": "http:\/\/example.org\/?p=3"
     3472        "rendered": "http://example.org/?p=3"
    34733473    },
    34743474    "modified": "2017-02-14T00:00:00",
     
    34763476    "slug": "restapi-client-fixture-post",
    34773477    "type": "post",
    3478     "link": "http:\/\/example.org\/?p=3",
     3478    "link": "http://example.org/?p=3",
    34793479    "title": {
    34803480        "rendered": "REST API Client Fixture: Post"
    34813481    },
    34823482    "content": {
    3483         "rendered": "<p>Updated post content.<\/p>\n",
     3483        "rendered": "<p>Updated post content.</p>\n",
    34843484        "protected": false
    34853485    },
    34863486    "excerpt": {
    3487         "rendered": "<p>REST API Client Fixture: Post<\/p>\n",
     3487        "rendered": "<p>REST API Client Fixture: Post</p>\n",
    34883488        "protected": false
    34893489    },
     
    35133513        "slug": "3-revision-v1",
    35143514        "guid": {
    3515             "rendered": "http:\/\/example.org\/?p=4"
     3515            "rendered": "http://example.org/?p=4"
    35163516        },
    35173517        "title": {
     
    35193519        },
    35203520        "content": {
    3521             "rendered": "<p>Updated post content.<\/p>\n"
     3521            "rendered": "<p>Updated post content.</p>\n"
    35223522        },
    35233523        "excerpt": {
    3524             "rendered": "<p>REST API Client Fixture: Post<\/p>\n"
     3524            "rendered": "<p>REST API Client Fixture: Post</p>\n"
    35253525        },
    35263526        "_links": {
    35273527            "parent": [
    35283528                {
    3529                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/posts\/3"
     3529                    "href": "http://example.org/?rest_route=/wp/v2/posts/3"
    35303530                }
    35313531            ]
     
    35483548        "date_gmt": "2017-02-14T00:00:00",
    35493549        "guid": {
    3550             "rendered": "http:\/\/example.org\/?page_id=5"
     3550            "rendered": "http://example.org/?page_id=5"
    35513551        },
    35523552        "modified": "2017-02-14T00:00:00",
     
    35543554        "slug": "restapi-client-fixture-page",
    35553555        "type": "page",
    3556         "link": "http:\/\/example.org\/?page_id=5",
     3556        "link": "http://example.org/?page_id=5",
    35573557        "title": {
    35583558            "rendered": "REST API Client Fixture: Page"
    35593559        },
    35603560        "content": {
    3561             "rendered": "<p>Updated page content.<\/p>\n",
     3561            "rendered": "<p>Updated page content.</p>\n",
    35623562            "protected": false
    35633563        },
    35643564        "excerpt": {
    3565             "rendered": "<p>REST API Client Fixture: Page<\/p>\n",
     3565            "rendered": "<p>REST API Client Fixture: Page</p>\n",
    35663566            "protected": false
    35673567        },
     
    35773577            "self": [
    35783578                {
    3579                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/pages\/5"
     3579                    "href": "http://example.org/?rest_route=/wp/v2/pages/5"
    35803580                }
    35813581            ],
    35823582            "collection": [
    35833583                {
    3584                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/pages"
     3584                    "href": "http://example.org/?rest_route=/wp/v2/pages"
    35853585                }
    35863586            ],
    35873587            "about": [
    35883588                {
    3589                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/types\/page"
     3589                    "href": "http://example.org/?rest_route=/wp/v2/types/page"
    35903590                }
    35913591            ],
     
    35933593                {
    35943594                    "embeddable": true,
    3595                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"
     3595                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"
    35963596                }
    35973597            ],
    35983598            "version-history": [
    35993599                {
    3600                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/pages\/5\/revisions"
     3600                    "href": "http://example.org/?rest_route=/wp/v2/pages/5/revisions"
    36013601                }
    36023602            ],
    36033603            "wp:attachment": [
    36043604                {
    3605                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"
     3605                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"
    36063606                }
    36073607            ],
     
    36093609                {
    36103610                    "name": "wp",
    3611                     "href": "https:\/\/api.w.org\/{rel}",
     3611                    "href": "https://api.w.org/{rel}",
    36123612                    "templated": true
    36133613                }
     
    36223622    "date_gmt": "2017-02-14T00:00:00",
    36233623    "guid": {
    3624         "rendered": "http:\/\/example.org\/?page_id=5"
     3624        "rendered": "http://example.org/?page_id=5"
    36253625    },
    36263626    "modified": "2017-02-14T00:00:00",
     
    36283628    "slug": "restapi-client-fixture-page",
    36293629    "type": "page",
    3630     "link": "http:\/\/example.org\/?page_id=5",
     3630    "link": "http://example.org/?page_id=5",
    36313631    "title": {
    36323632        "rendered": "REST API Client Fixture: Page"
    36333633    },
    36343634    "content": {
    3635         "rendered": "<p>Updated page content.<\/p>\n",
     3635        "rendered": "<p>Updated page content.</p>\n",
    36363636        "protected": false
    36373637    },
    36383638    "excerpt": {
    3639         "rendered": "<p>REST API Client Fixture: Page<\/p>\n",
     3639        "rendered": "<p>REST API Client Fixture: Page</p>\n",
    36403640        "protected": false
    36413641    },
     
    36613661        "slug": "5-revision-v1",
    36623662        "guid": {
    3663             "rendered": "http:\/\/example.org\/?p=6"
     3663            "rendered": "http://example.org/?p=6"
    36643664        },
    36653665        "title": {
     
    36673667        },
    36683668        "content": {
    3669             "rendered": "<p>Updated page content.<\/p>\n"
     3669            "rendered": "<p>Updated page content.</p>\n"
    36703670        },
    36713671        "excerpt": {
    3672             "rendered": "<p>REST API Client Fixture: Page<\/p>\n"
     3672            "rendered": "<p>REST API Client Fixture: Page</p>\n"
    36733673        },
    36743674        "_links": {
    36753675            "parent": [
    36763676                {
    3677                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/pages\/5"
     3677                    "href": "http://example.org/?rest_route=/wp/v2/pages/5"
    36783678                }
    36793679            ]
     
    36963696        "date_gmt": "2017-02-14T00:00:00",
    36973697        "guid": {
    3698             "rendered": "http:\/\/example.org\/?attachment_id=7"
     3698            "rendered": "http://example.org/?attachment_id=7"
    36993699        },
    37003700        "modified": "2017-02-14T00:00:00",
     
    37023702        "slug": "restapi-client-fixture-attachment",
    37033703        "type": "attachment",
    3704         "link": "http:\/\/example.org\/?attachment_id=7",
     3704        "link": "http://example.org/?attachment_id=7",
    37053705        "title": {
    37063706            "rendered": "REST API Client Fixture: Attachment"
     
    37123712        "meta": [],
    37133713        "description": {
    3714             "rendered": "<p class=\"attachment\"><a href='http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg'><img width=\"1\" height=\"1\" src=\"http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" \/><\/a><\/p>\n"
     3714            "rendered": "<p class=\"attachment\"><a href='http://example.org/wp-content/uploads//tmp/canola.jpg'><img width=\"1\" height=\"1\" src=\"http://example.org/wp-content/uploads//tmp/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" /></a></p>\n"
    37153715        },
    37163716        "caption": {
    3717             "rendered": "<p>A sample caption<\/p>\n"
     3717            "rendered": "<p>A sample caption</p>\n"
    37183718        },
    37193719        "alt_text": "",
    37203720        "media_type": "image",
    3721         "mime_type": "image\/jpeg",
     3721        "mime_type": "image/jpeg",
    37223722        "media_details": {},
    37233723        "post": null,
    3724         "source_url": "http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg",
     3724        "source_url": "http://example.org/wp-content/uploads//tmp/canola.jpg",
    37253725        "_links": {
    37263726            "self": [
    37273727                {
    3728                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/media\/7"
     3728                    "href": "http://example.org/?rest_route=/wp/v2/media/7"
    37293729                }
    37303730            ],
    37313731            "collection": [
    37323732                {
    3733                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/media"
     3733                    "href": "http://example.org/?rest_route=/wp/v2/media"
    37343734                }
    37353735            ],
    37363736            "about": [
    37373737                {
    3738                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/types\/attachment"
     3738                    "href": "http://example.org/?rest_route=/wp/v2/types/attachment"
    37393739                }
    37403740            ],
     
    37423742                {
    37433743                    "embeddable": true,
    3744                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"
     3744                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"
    37453745                }
    37463746            ]
     
    37543754    "date_gmt": "2017-02-14T00:00:00",
    37553755    "guid": {
    3756         "rendered": "http:\/\/example.org\/?attachment_id=7"
     3756        "rendered": "http://example.org/?attachment_id=7"
    37573757    },
    37583758    "modified": "2017-02-14T00:00:00",
     
    37603760    "slug": "restapi-client-fixture-attachment",
    37613761    "type": "attachment",
    3762     "link": "http:\/\/example.org\/?attachment_id=7",
     3762    "link": "http://example.org/?attachment_id=7",
    37633763    "title": {
    37643764        "rendered": "REST API Client Fixture: Attachment"
     
    37703770    "meta": [],
    37713771    "description": {
    3772         "rendered": "<p class=\"attachment\"><a href='http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg'><img width=\"1\" height=\"1\" src=\"http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" \/><\/a><\/p>\n"
     3772        "rendered": "<p class=\"attachment\"><a href='http://example.org/wp-content/uploads//tmp/canola.jpg'><img width=\"1\" height=\"1\" src=\"http://example.org/wp-content/uploads//tmp/canola.jpg\" class=\"attachment-medium size-medium\" alt=\"\" /></a></p>\n"
    37733773    },
    37743774    "caption": {
    3775         "rendered": "<p>A sample caption<\/p>\n"
     3775        "rendered": "<p>A sample caption</p>\n"
    37763776    },
    37773777    "alt_text": "",
    37783778    "media_type": "image",
    3779     "mime_type": "image\/jpeg",
     3779    "mime_type": "image/jpeg",
    37803780    "media_details": {},
    37813781    "post": null,
    3782     "source_url": "http:\/\/example.org\/wp-content\/uploads\/\/tmp\/canola.jpg"
     3782    "source_url": "http://example.org/wp-content/uploads//tmp/canola.jpg"
    37833783};
    37843784
     
    37973797            "collection": [
    37983798                {
    3799                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/types"
     3799                    "href": "http://example.org/?rest_route=/wp/v2/types"
    38003800                }
    38013801            ],
    38023802            "wp:items": [
    38033803                {
    3804                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/posts"
     3804                    "href": "http://example.org/?rest_route=/wp/v2/posts"
    38053805                }
    38063806            ],
     
    38083808                {
    38093809                    "name": "wp",
    3810                     "href": "https:\/\/api.w.org\/{rel}",
     3810                    "href": "https://api.w.org/{rel}",
    38113811                    "templated": true
    38123812                }
     
    38243824            "collection": [
    38253825                {
    3826                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/types"
     3826                    "href": "http://example.org/?rest_route=/wp/v2/types"
    38273827                }
    38283828            ],
    38293829            "wp:items": [
    38303830                {
    3831                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/pages"
     3831                    "href": "http://example.org/?rest_route=/wp/v2/pages"
    38323832                }
    38333833            ],
     
    38353835                {
    38363836                    "name": "wp",
    3837                     "href": "https:\/\/api.w.org\/{rel}",
     3837                    "href": "https://api.w.org/{rel}",
    38383838                    "templated": true
    38393839                }
     
    38513851            "collection": [
    38523852                {
    3853                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/types"
     3853                    "href": "http://example.org/?rest_route=/wp/v2/types"
    38543854                }
    38553855            ],
    38563856            "wp:items": [
    38573857                {
    3858                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/media"
     3858                    "href": "http://example.org/?rest_route=/wp/v2/media"
    38593859                }
    38603860            ],
     
    38623862                {
    38633863                    "name": "wp",
    3864                     "href": "https:\/\/api.w.org\/{rel}",
     3864                    "href": "https://api.w.org/{rel}",
    38653865                    "templated": true
    38663866                }
     
    38873887            "archives": [
    38883888                {
    3889                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/posts"
     3889                    "href": "http://example.org/?rest_route=/wp/v2/posts"
    38903890                }
    38913891            ]
     
    39003900            "archives": [
    39013901                {
    3902                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&status=future"
     3902                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=future"
    39033903                }
    39043904            ]
     
    39133913            "archives": [
    39143914                {
    3915                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&status=draft"
     3915                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=draft"
    39163916                }
    39173917            ]
     
    39263926            "archives": [
    39273927                {
    3928                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&status=pending"
     3928                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=pending"
    39293929                }
    39303930            ]
     
    39393939            "archives": [
    39403940                {
    3941                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&status=private"
     3941                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=private"
    39423942                }
    39433943            ]
     
    39523952            "archives": [
    39533953                {
    3954                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&status=trash"
     3954                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&status=trash"
    39553955                }
    39563956            ]
     
    39793979            "collection": [
    39803980                {
    3981                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/taxonomies"
     3981                    "href": "http://example.org/?rest_route=/wp/v2/taxonomies"
    39823982                }
    39833983            ],
    39843984            "wp:items": [
    39853985                {
    3986                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/categories"
     3986                    "href": "http://example.org/?rest_route=/wp/v2/categories"
    39873987                }
    39883988            ],
     
    39903990                {
    39913991                    "name": "wp",
    3992                     "href": "https:\/\/api.w.org\/{rel}",
     3992                    "href": "https://api.w.org/{rel}",
    39933993                    "templated": true
    39943994                }
     
    40084008            "collection": [
    40094009                {
    4010                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/taxonomies"
     4010                    "href": "http://example.org/?rest_route=/wp/v2/taxonomies"
    40114011                }
    40124012            ],
    40134013            "wp:items": [
    40144014                {
    4015                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/tags"
     4015                    "href": "http://example.org/?rest_route=/wp/v2/tags"
    40164016                }
    40174017            ],
     
    40194019                {
    40204020                    "name": "wp",
    4021                     "href": "https:\/\/api.w.org\/{rel}",
     4021                    "href": "https://api.w.org/{rel}",
    40224022                    "templated": true
    40234023                }
     
    40434043        "count": 1,
    40444044        "description": "",
    4045         "link": "http:\/\/example.org\/?cat=1",
     4045        "link": "http://example.org/?cat=1",
    40464046        "name": "Uncategorized",
    40474047        "slug": "uncategorized",
     
    40524052            "self": [
    40534053                {
    4054                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/categories\/1"
     4054                    "href": "http://example.org/?rest_route=/wp/v2/categories/1"
    40554055                }
    40564056            ],
    40574057            "collection": [
    40584058                {
    4059                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/categories"
     4059                    "href": "http://example.org/?rest_route=/wp/v2/categories"
    40604060                }
    40614061            ],
    40624062            "about": [
    40634063                {
    4064                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/taxonomies\/category"
     4064                    "href": "http://example.org/?rest_route=/wp/v2/taxonomies/category"
    40654065                }
    40664066            ],
    40674067            "wp:post_type": [
    40684068                {
    4069                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&categories=1"
     4069                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&categories=1"
    40704070                }
    40714071            ],
     
    40734073                {
    40744074                    "name": "wp",
    4075                     "href": "https:\/\/api.w.org\/{rel}",
     4075                    "href": "https://api.w.org/{rel}",
    40764076                    "templated": true
    40774077                }
     
    40854085    "count": 1,
    40864086    "description": "",
    4087     "link": "http:\/\/example.org\/?cat=1",
     4087    "link": "http://example.org/?cat=1",
    40884088    "name": "Uncategorized",
    40894089    "slug": "uncategorized",
     
    40984098        "count": 0,
    40994099        "description": "REST API Client Fixture: Tag",
    4100         "link": "http:\/\/example.org\/?tag=restapi-client-fixture-tag",
     4100        "link": "http://example.org/?tag=restapi-client-fixture-tag",
    41014101        "name": "REST API Client Fixture: Tag",
    41024102        "slug": "restapi-client-fixture-tag",
     
    41064106            "self": [
    41074107                {
    4108                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/tags\/2"
     4108                    "href": "http://example.org/?rest_route=/wp/v2/tags/2"
    41094109                }
    41104110            ],
    41114111            "collection": [
    41124112                {
    4113                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/tags"
     4113                    "href": "http://example.org/?rest_route=/wp/v2/tags"
    41144114                }
    41154115            ],
    41164116            "about": [
    41174117                {
    4118                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/taxonomies\/post_tag"
     4118                    "href": "http://example.org/?rest_route=/wp/v2/taxonomies/post_tag"
    41194119                }
    41204120            ],
    41214121            "wp:post_type": [
    41224122                {
    4123                     "href": "http:\/\/example.org\/?rest_route=%2Fwp%2Fv2%2Fposts&tags=2"
     4123                    "href": "http://example.org/?rest_route=%2Fwp%2Fv2%2Fposts&tags=2"
    41244124                }
    41254125            ],
     
    41274127                {
    41284128                    "name": "wp",
    4129                     "href": "https:\/\/api.w.org\/{rel}",
     4129                    "href": "https://api.w.org/{rel}",
    41304130                    "templated": true
    41314131                }
     
    41394139    "count": 0,
    41404140    "description": "REST API Client Fixture: Tag",
    4141     "link": "http:\/\/example.org\/?tag=restapi-client-fixture-tag",
     4141    "link": "http://example.org/?tag=restapi-client-fixture-tag",
    41424142    "name": "REST API Client Fixture: Tag",
    41434143    "slug": "restapi-client-fixture-tag",
     
    41524152        "url": "",
    41534153        "description": "",
    4154         "link": "http:\/\/example.org\/?author=1",
     4154        "link": "http://example.org/?author=1",
    41554155        "slug": "admin",
    41564156        "avatar_urls": {
    4157             "24": "http:\/\/0.gravatar.com\/avatar\/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g",
    4158             "48": "http:\/\/0.gravatar.com\/avatar\/96614ec98aa0c0d2ee75796dced6df54?s=48&d=mm&r=g",
    4159             "96": "http:\/\/0.gravatar.com\/avatar\/96614ec98aa0c0d2ee75796dced6df54?s=96&d=mm&r=g"
     4157            "24": "http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=24&d=mm&r=g",
     4158            "48": "http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=48&d=mm&r=g",
     4159            "96": "http://0.gravatar.com/avatar/96614ec98aa0c0d2ee75796dced6df54?s=96&d=mm&r=g"
    41604160        },
    41614161        "meta": [],
     
    41634163            "self": [
    41644164                {
    4165                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/users\/1"
     4165                    "href": "http://example.org/?rest_route=/wp/v2/users/1"
    41664166                }
    41674167            ],
    41684168            "collection": [
    41694169                {
    4170                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/users"
     4170                    "href": "http://example.org/?rest_route=/wp/v2/users"
    41714171                }
    41724172            ]
     
    41784178        "url": "",
    41794179        "description": "",
    4180         "link": "http:\/\/example.org\/?author=2",
     4180        "link": "http://example.org/?author=2",
    41814181        "slug": "restapiclientfixtureuser",
    41824182        "avatar_urls": {
    4183             "24": "http:\/\/2.gravatar.com\/avatar\/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
    4184             "48": "http:\/\/2.gravatar.com\/avatar\/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
    4185             "96": "http:\/\/2.gravatar.com\/avatar\/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
     4183            "24": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
     4184            "48": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
     4185            "96": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
    41864186        },
    41874187        "meta": [],
     
    41894189            "self": [
    41904190                {
    4191                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/users\/2"
     4191                    "href": "http://example.org/?rest_route=/wp/v2/users/2"
    41924192                }
    41934193            ],
    41944194            "collection": [
    41954195                {
    4196                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/users"
     4196                    "href": "http://example.org/?rest_route=/wp/v2/users"
    41974197                }
    41984198            ]
     
    42064206    "url": "",
    42074207    "description": "",
    4208     "link": "http:\/\/example.org\/?author=2",
     4208    "link": "http://example.org/?author=2",
    42094209    "slug": "restapiclientfixtureuser",
    42104210    "avatar_urls": {
    4211         "24": "http:\/\/2.gravatar.com\/avatar\/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
    4212         "48": "http:\/\/2.gravatar.com\/avatar\/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
    4213         "96": "http:\/\/2.gravatar.com\/avatar\/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
     4211        "24": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
     4212        "48": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
     4213        "96": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
    42144214    },
    42154215    "meta": []
     
    42214221    "url": "",
    42224222    "description": "",
    4223     "link": "http:\/\/example.org\/?author=2",
     4223    "link": "http://example.org/?author=2",
    42244224    "slug": "restapiclientfixtureuser",
    42254225    "avatar_urls": {
    4226         "24": "http:\/\/2.gravatar.com\/avatar\/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
    4227         "48": "http:\/\/2.gravatar.com\/avatar\/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
    4228         "96": "http:\/\/2.gravatar.com\/avatar\/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
     4226        "24": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=24&d=mm&r=g",
     4227        "48": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=48&d=mm&r=g",
     4228        "96": "http://2.gravatar.com/avatar/57cbd982c963c7eb2294e2eee1b4448e?s=96&d=mm&r=g"
    42294229    },
    42304230    "meta": []
     
    42384238        "author": 0,
    42394239        "author_name": "Internet of something or other",
    4240         "author_url": "http:\/\/lights.example.org\/",
     4240        "author_url": "http://lights.example.org/",
    42414241        "date": "2017-02-14T00:00:00",
    42424242        "date_gmt": "2017-02-14T00:00:00",
    42434243        "content": {
    4244             "rendered": "<p>This is a comment<\/p>\n"
    4245         },
    4246         "link": "http:\/\/example.org\/?p=3#comment-2",
     4244            "rendered": "<p>This is a comment</p>\n"
     4245        },
     4246        "link": "http://example.org/?p=3#comment-2",
    42474247        "status": "approved",
    42484248        "type": "comment",
    42494249        "author_avatar_urls": {
    4250             "24": "http:\/\/2.gravatar.com\/avatar\/bd7c2b505bcf39cc71cfee564c614956?s=24&d=mm&r=g",
    4251             "48": "http:\/\/2.gravatar.com\/avatar\/bd7c2b505bcf39cc71cfee564c614956?s=48&d=mm&r=g",
    4252             "96": "http:\/\/2.gravatar.com\/avatar\/bd7c2b505bcf39cc71cfee564c614956?s=96&d=mm&r=g"
     4250            "24": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=24&d=mm&r=g",
     4251            "48": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=48&d=mm&r=g",
     4252            "96": "http://2.gravatar.com/avatar/bd7c2b505bcf39cc71cfee564c614956?s=96&d=mm&r=g"
    42534253        },
    42544254        "meta": [],
     
    42564256            "self": [
    42574257                {
    4258                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/comments\/2"
     4258                    "href": "http://example.org/?rest_route=/wp/v2/comments/2"
    42594259                }
    42604260            ],
    42614261            "collection": [
    42624262                {
    4263                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/comments"
     4263                    "href": "http://example.org/?rest_route=/wp/v2/comments"
    42644264                }
    42654265            ],
     
    42684268                    "embeddable": true,
    42694269                    "post_type": "post",
    4270                     "href": "http:\/\/example.org\/?rest_route=\/wp\/v2\/posts\/3"
     4270                    "href": "http://example.org/?rest_route=/wp/v2/posts/3"
    42714271                }
    42724272            ]
     
    42864286    "title": "Test Blog",
    42874287    "description": "Just another WordPress site",
    4288     "url": "http:\/\/example.org",
     4288    "url": "http://example.org",
    42894289    "email": "admin@example.org",
    42904290    "timezone": "",
Note: See TracChangeset for help on using the changeset viewer.