- Timestamp:
- 02/03/2023 01:33:18 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php
r55104 r55210 1134 1134 1135 1135 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1136 $request->add_header( ' content-type', 'application/json' );1136 $request->add_header( 'Content-Type', 'application/json' ); 1137 1137 $request->set_body( wp_json_encode( $params ) ); 1138 1138 … … 1240 1240 1241 1241 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1242 $request->add_header( ' content-type', 'application/json' );1242 $request->add_header( 'Content-Type', 'application/json' ); 1243 1243 $request->set_body( wp_json_encode( $params ) ); 1244 1244 … … 1265 1265 1266 1266 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1267 $request->add_header( ' content-type', 'application/json' );1267 $request->add_header( 'Content-Type', 'application/json' ); 1268 1268 $request->set_body( wp_json_encode( $params ) ); 1269 1269 … … 1288 1288 1289 1289 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1290 $request->add_header( ' content-type', 'application/json' );1290 $request->add_header( 'Content-Type', 'application/json' ); 1291 1291 $request->set_body( wp_json_encode( $params ) ); 1292 1292 … … 1308 1308 1309 1309 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1310 $request->add_header( ' content-type', 'application/json' );1310 $request->add_header( 'Content-Type', 'application/json' ); 1311 1311 $request->set_body( wp_json_encode( $params ) ); 1312 1312 … … 1328 1328 1329 1329 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1330 $request->add_header( ' content-type', 'application/json' );1330 $request->add_header( 'Content-Type', 'application/json' ); 1331 1331 $request->set_body( wp_json_encode( $params ) ); 1332 1332 … … 1348 1348 1349 1349 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1350 $request->add_header( ' content-type', 'application/json' );1350 $request->add_header( 'Content-Type', 'application/json' ); 1351 1351 $request->set_body( wp_json_encode( $params ) ); 1352 1352 … … 1366 1366 1367 1367 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1368 $request->add_header( ' content-type', 'application/json' );1368 $request->add_header( 'Content-Type', 'application/json' ); 1369 1369 $request->set_body( wp_json_encode( $params ) ); 1370 1370 $response = rest_get_server()->dispatch( $request ); … … 1387 1387 1388 1388 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1389 $request->add_header( ' content-type', 'application/json' );1389 $request->add_header( 'Content-Type', 'application/json' ); 1390 1390 $request->set_body( wp_json_encode( $params ) ); 1391 1391 … … 1414 1414 1415 1415 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1416 $request->add_header( ' content-type', 'application/json' );1416 $request->add_header( 'Content-Type', 'application/json' ); 1417 1417 $request->set_body( wp_json_encode( $params ) ); 1418 1418 … … 1436 1436 1437 1437 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1438 $request->add_header( ' content-type', 'application/json' );1438 $request->add_header( 'Content-Type', 'application/json' ); 1439 1439 $request->set_body( wp_json_encode( $params ) ); 1440 1440 … … 1461 1461 1462 1462 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1463 $request->add_header( ' content-type', 'application/json' );1463 $request->add_header( 'Content-Type', 'application/json' ); 1464 1464 $request->set_body( wp_json_encode( $params ) ); 1465 1465 … … 1482 1482 1483 1483 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1484 $request->add_header( ' content-type', 'application/json' );1484 $request->add_header( 'Content-Type', 'application/json' ); 1485 1485 $request->set_body( wp_json_encode( $params ) ); 1486 1486 … … 1511 1511 1512 1512 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1513 $request->add_header( ' content-type', 'application/json' );1513 $request->add_header( 'Content-Type', 'application/json' ); 1514 1514 $request->set_body( wp_json_encode( $params ) ); 1515 1515 $response = rest_get_server()->dispatch( $request ); … … 1537 1537 1538 1538 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1539 $request->add_header( ' content-type', 'application/json' );1539 $request->add_header( 'Content-Type', 'application/json' ); 1540 1540 $request->set_body( wp_json_encode( $params ) ); 1541 1541 … … 1576 1576 1577 1577 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1578 $request->add_header( ' content-type', 'application/json' );1578 $request->add_header( 'Content-Type', 'application/json' ); 1579 1579 $request->set_body( wp_json_encode( $params ) ); 1580 1580 … … 1599 1599 1600 1600 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1601 $request->add_header( ' content-type', 'application/json' );1601 $request->add_header( 'Content-Type', 'application/json' ); 1602 1602 $request->set_body( wp_json_encode( $params ) ); 1603 1603 … … 1626 1626 1627 1627 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1628 $request->add_header( ' content-type', 'application/json' );1628 $request->add_header( 'Content-Type', 'application/json' ); 1629 1629 $request->set_body( wp_json_encode( $params ) ); 1630 1630 $response = rest_get_server()->dispatch( $request ); … … 1655 1655 1656 1656 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1657 $request->add_header( ' content-type', 'application/json' );1657 $request->add_header( 'Content-Type', 'application/json' ); 1658 1658 $request->set_body( wp_json_encode( $params ) ); 1659 1659 $response = rest_get_server()->dispatch( $request ); … … 1680 1680 1681 1681 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1682 $request->add_header( ' content-type', 'application/json' );1682 $request->add_header( 'Content-Type', 'application/json' ); 1683 1683 $request->set_body( wp_json_encode( $params ) ); 1684 1684 $response = rest_get_server()->dispatch( $request ); … … 1700 1700 1701 1701 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1702 $request->add_header( ' content-type', 'application/json' );1702 $request->add_header( 'Content-Type', 'application/json' ); 1703 1703 $request->set_body( wp_json_encode( $params ) ); 1704 1704 $response = rest_get_server()->dispatch( $request ); … … 1721 1721 1722 1722 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1723 $request->add_header( ' content-type', 'application/json' );1723 $request->add_header( 'Content-Type', 'application/json' ); 1724 1724 $request->set_body( wp_json_encode( $params ) ); 1725 1725 $response = rest_get_server()->dispatch( $request ); … … 1745 1745 1746 1746 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1747 $request->add_header( ' content-type', 'application/json' );1747 $request->add_header( 'Content-Type', 'application/json' ); 1748 1748 $request->set_body( wp_json_encode( $params ) ); 1749 1749 … … 1769 1769 1770 1770 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1771 $request->add_header( ' content-type', 'application/json' );1772 $request->add_header( ' user_agent', 'Mozilla/4.0 (compatible; MSIE 5.5; AOL 4.0; Windows 95)' );1771 $request->add_header( 'Content-Type', 'application/json' ); 1772 $request->add_header( 'User_Agent', 'Mozilla/4.0 (compatible; MSIE 5.5; AOL 4.0; Windows 95)' ); 1773 1773 $request->set_body( wp_json_encode( $params ) ); 1774 1774 … … 1795 1795 ); 1796 1796 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1797 $request->add_header( ' content-type', 'application/json' );1797 $request->add_header( 'Content-Type', 'application/json' ); 1798 1798 $request->set_body( wp_json_encode( $params ) ); 1799 1799 $response = rest_get_server()->dispatch( $request ); … … 1816 1816 ); 1817 1817 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1818 $request->add_header( ' content-type', 'application/json' );1818 $request->add_header( 'Content-Type', 'application/json' ); 1819 1819 $request->set_body( wp_json_encode( $params ) ); 1820 1820 … … 1836 1836 1837 1837 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1838 $request->add_header( ' content-type', 'application/json' );1838 $request->add_header( 'Content-Type', 'application/json' ); 1839 1839 $request->set_body( wp_json_encode( $params ) ); 1840 1840 $response = rest_get_server()->dispatch( $request ); … … 1856 1856 1857 1857 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1858 $request->add_header( ' content-type', 'application/json' );1858 $request->add_header( 'Content-Type', 'application/json' ); 1859 1859 $request->set_body( wp_json_encode( $params ) ); 1860 1860 $response = rest_get_server()->dispatch( $request ); … … 1876 1876 1877 1877 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1878 $request->add_header( ' content-type', 'application/json' );1878 $request->add_header( 'Content-Type', 'application/json' ); 1879 1879 $request->set_body( wp_json_encode( $params ) ); 1880 1880 … … 1896 1896 1897 1897 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1898 $request->add_header( ' content-type', 'application/json' );1898 $request->add_header( 'Content-Type', 'application/json' ); 1899 1899 $request->set_body( wp_json_encode( $params ) ); 1900 1900 … … 1916 1916 1917 1917 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1918 $request->add_header( ' content-type', 'application/json' );1918 $request->add_header( 'Content-Type', 'application/json' ); 1919 1919 $request->set_body( wp_json_encode( $params ) ); 1920 1920 … … 1936 1936 1937 1937 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1938 $request->add_header( ' content-type', 'application/json' );1938 $request->add_header( 'Content-Type', 'application/json' ); 1939 1939 $request->set_body( wp_json_encode( $params ) ); 1940 1940 … … 1956 1956 1957 1957 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1958 $request->add_header( ' content-type', 'application/json' );1958 $request->add_header( 'Content-Type', 'application/json' ); 1959 1959 $request->set_body( wp_json_encode( $params ) ); 1960 1960 … … 1977 1977 1978 1978 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1979 $request->add_header( ' content-type', 'application/json' );1979 $request->add_header( 'Content-Type', 'application/json' ); 1980 1980 $request->set_body( wp_json_encode( $params ) ); 1981 1981 … … 1997 1997 1998 1998 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 1999 $request->add_header( ' content-type', 'application/json' );1999 $request->add_header( 'Content-Type', 'application/json' ); 2000 2000 $request->set_body( wp_json_encode( $params ) ); 2001 2001 … … 2024 2024 2025 2025 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2026 $request->add_header( ' content-type', 'application/json' );2026 $request->add_header( 'Content-Type', 'application/json' ); 2027 2027 $request->set_body( wp_json_encode( $params ) ); 2028 2028 $response = rest_get_server()->dispatch( $request ); … … 2045 2045 2046 2046 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2047 $request->add_header( ' content-type', 'application/json' );2047 $request->add_header( 'Content-Type', 'application/json' ); 2048 2048 $request->set_body( wp_json_encode( $params ) ); 2049 2049 $response = rest_get_server()->dispatch( $request ); … … 2076 2076 2077 2077 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2078 $request->add_header( ' content-type', 'application/json' );2078 $request->add_header( 'Content-Type', 'application/json' ); 2079 2079 $request->set_body( wp_json_encode( $params ) ); 2080 2080 … … 2094 2094 2095 2095 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2096 $request->add_header( ' content-type', 'application/json' );2096 $request->add_header( 'Content-Type', 'application/json' ); 2097 2097 $request->set_body( wp_json_encode( $params ) ); 2098 2098 … … 2118 2118 2119 2119 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2120 $request->add_header( ' content-type', 'application/json' );2120 $request->add_header( 'Content-Type', 'application/json' ); 2121 2121 $request->set_body( wp_json_encode( $params ) ); 2122 2122 … … 2133 2133 2134 2134 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2135 $request->add_header( ' content-type', 'application/json' );2135 $request->add_header( 'Content-Type', 'application/json' ); 2136 2136 $request->set_body( wp_json_encode( $params ) ); 2137 2137 … … 2157 2157 2158 2158 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2159 $request->add_header( ' content-type', 'application/json' );2159 $request->add_header( 'Content-Type', 'application/json' ); 2160 2160 $request->set_body( wp_json_encode( $params ) ); 2161 2161 … … 2184 2184 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2185 2185 2186 $request->add_header( ' content-type', 'application/json' );2186 $request->add_header( 'Content-Type', 'application/json' ); 2187 2187 $request->set_body( wp_json_encode( $params ) ); 2188 2188 $response = rest_get_server()->dispatch( $request ); … … 2208 2208 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2209 2209 2210 $request->add_header( ' content-type', 'application/json' );2210 $request->add_header( 'Content-Type', 'application/json' ); 2211 2211 $request->set_body( wp_json_encode( $params ) ); 2212 2212 $response = rest_get_server()->dispatch( $request ); … … 2232 2232 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2233 2233 2234 $request->add_header( ' content-type', 'application/json' );2234 $request->add_header( 'Content-Type', 'application/json' ); 2235 2235 $request->set_body( wp_json_encode( $params ) ); 2236 2236 $response = rest_get_server()->dispatch( $request ); … … 2256 2256 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2257 2257 2258 $request->add_header( ' content-type', 'application/json' );2258 $request->add_header( 'Content-Type', 'application/json' ); 2259 2259 $request->set_body( wp_json_encode( $params ) ); 2260 2260 $response = rest_get_server()->dispatch( $request ); … … 2276 2276 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2277 2277 2278 $request->add_header( ' content-type', 'application/json' );2278 $request->add_header( 'Content-Type', 'application/json' ); 2279 2279 $request->set_body( wp_json_encode( $params ) ); 2280 2280 $response = rest_get_server()->dispatch( $request ); … … 2297 2297 $request = new WP_REST_Request( 'POST', '/wp/v2/comments' ); 2298 2298 2299 $request->add_header( ' content-type', 'application/json' );2299 $request->add_header( 'Content-Type', 'application/json' ); 2300 2300 $request->set_body( wp_json_encode( $params ) ); 2301 2301 $response = rest_get_server()->dispatch( $request ); … … 2320 2320 2321 2321 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2322 $request->add_header( ' content-type', 'application/json' );2322 $request->add_header( 'Content-Type', 'application/json' ); 2323 2323 $request->set_body( wp_json_encode( $params ) ); 2324 2324 … … 2425 2425 2426 2426 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', $comment_id ) ); 2427 $request->add_header( ' content-type', 'application/json' );2427 $request->add_header( 'Content-Type', 'application/json' ); 2428 2428 $request->set_body( wp_json_encode( $params ) ); 2429 2429 … … 2453 2453 2454 2454 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', $comment_id ) ); 2455 $request->add_header( ' content-type', 'application/json' );2455 $request->add_header( 'Content-Type', 'application/json' ); 2456 2456 $request->set_body( wp_json_encode( $params ) ); 2457 2457 … … 2475 2475 2476 2476 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2477 $request->add_header( ' content-type', 'application/json' );2477 $request->add_header( 'Content-Type', 'application/json' ); 2478 2478 $request->set_body( wp_json_encode( $params ) ); 2479 2479 … … 2499 2499 2500 2500 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2501 $request->add_header( ' content-type', 'application/json' );2501 $request->add_header( 'Content-Type', 'application/json' ); 2502 2502 $request->set_body( wp_json_encode( $params ) ); 2503 2503 … … 2519 2519 2520 2520 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2521 $request->add_header( ' content-type', 'application/json' );2521 $request->add_header( 'Content-Type', 'application/json' ); 2522 2522 $request->set_body( wp_json_encode( $params ) ); 2523 2523 … … 2538 2538 2539 2539 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2540 $request->add_header( ' content-type', 'application/json' );2540 $request->add_header( 'Content-Type', 'application/json' ); 2541 2541 $request->set_body( wp_json_encode( $params ) ); 2542 2542 … … 2558 2558 2559 2559 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2560 $request->add_header( ' content-type', 'application/json' );2560 $request->add_header( 'Content-Type', 'application/json' ); 2561 2561 $request->set_body( wp_json_encode( $params ) ); 2562 2562 … … 2576 2576 2577 2577 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2578 $request->add_header( ' content-type', 'application/json' );2578 $request->add_header( 'Content-Type', 'application/json' ); 2579 2579 $request->set_body( wp_json_encode( $params ) ); 2580 2580 $response = rest_get_server()->dispatch( $request ); … … 2593 2593 2594 2594 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2595 $request->add_header( ' content-type', 'application/json' );2595 $request->add_header( 'Content-Type', 'application/json' ); 2596 2596 $request->set_body( wp_json_encode( $params ) ); 2597 2597 … … 2610 2610 2611 2611 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2612 $request->add_header( ' content-type', 'application/json' );2612 $request->add_header( 'Content-Type', 'application/json' ); 2613 2613 $request->set_body( wp_json_encode( $params ) ); 2614 2614 … … 2631 2631 2632 2632 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2633 $request->add_header( ' content-type', 'application/json' );2633 $request->add_header( 'Content-Type', 'application/json' ); 2634 2634 $request->set_body( wp_json_encode( $params ) ); 2635 2635 … … 2647 2647 2648 2648 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2649 $request->add_header( ' content-type', 'application/json' );2649 $request->add_header( 'Content-Type', 'application/json' ); 2650 2650 $request->set_body( wp_json_encode( $params ) ); 2651 2651 … … 2662 2662 2663 2663 $request = new WP_REST_Request( 'PUT', '/wp/v2/comments/' . REST_TESTS_IMPOSSIBLY_HIGH_NUMBER ); 2664 $request->add_header( ' content-type', 'application/json' );2664 $request->add_header( 'Content-Type', 'application/json' ); 2665 2665 $request->set_body( wp_json_encode( $params ) ); 2666 2666 … … 2687 2687 2688 2688 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$hold_id ) ); 2689 $request->add_header( ' content-type', 'application/json' );2689 $request->add_header( 'Content-Type', 'application/json' ); 2690 2690 $request->set_body( wp_json_encode( $params ) ); 2691 2691 … … 2706 2706 2707 2707 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2708 $request->add_header( ' content-type', 'application/json' );2708 $request->add_header( 'Content-Type', 'application/json' ); 2709 2709 $request->set_body( wp_json_encode( $params ) ); 2710 2710 … … 2736 2736 2737 2737 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', $private_comment_id ) ); 2738 $request->add_header( ' content-type', 'application/json' );2738 $request->add_header( 'Content-Type', 'application/json' ); 2739 2739 $request->set_body( wp_json_encode( $params ) ); 2740 2740 … … 2795 2795 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2796 2796 2797 $request->add_header( ' content-type', 'application/json' );2797 $request->add_header( 'Content-Type', 'application/json' ); 2798 2798 $request->set_body( wp_json_encode( $params ) ); 2799 2799 $response = rest_get_server()->dispatch( $request ); … … 2815 2815 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2816 2816 2817 $request->add_header( ' content-type', 'application/json' );2817 $request->add_header( 'Content-Type', 'application/json' ); 2818 2818 $request->set_body( wp_json_encode( $params ) ); 2819 2819 $response = rest_get_server()->dispatch( $request ); … … 2835 2835 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2836 2836 2837 $request->add_header( ' content-type', 'application/json' );2837 $request->add_header( 'Content-Type', 'application/json' ); 2838 2838 $request->set_body( wp_json_encode( $params ) ); 2839 2839 $response = rest_get_server()->dispatch( $request ); … … 2854 2854 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2855 2855 2856 $request->add_header( ' content-type', 'application/json' );2856 $request->add_header( 'Content-Type', 'application/json' ); 2857 2857 $request->set_body( wp_json_encode( $params ) ); 2858 2858 $response = rest_get_server()->dispatch( $request ); … … 2875 2875 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%d', self::$approved_id ) ); 2876 2876 2877 $request->add_header( ' content-type', 'application/json' );2877 $request->add_header( 'Content-Type', 'application/json' ); 2878 2878 $request->set_body( wp_json_encode( $params ) ); 2879 2879 $response = rest_get_server()->dispatch( $request );
Note: See TracChangeset
for help on using the changeset viewer.