- Timestamp:
- 07/27/2017 12:40:27 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-request.php
r40815 r41162 33 33 * 34 34 * @since 4.4.0 35 * @access protected36 35 * @var string 37 36 */ … … 45 44 * 46 45 * @since 4.4.0 47 * @access protected48 46 * @var array Contains GET, POST and FILES keys mapping to arrays of data. 49 47 */ … … 54 52 * 55 53 * @since 4.4.0 56 * @access protected57 54 * @var array Map of key to value. Key is always lowercase, as per HTTP specification. 58 55 */ … … 63 60 * 64 61 * @since 4.4.0 65 * @access protected66 62 * @var string Binary data from the request. 67 63 */ … … 72 68 * 73 69 * @since 4.4.0 74 * @access protected75 70 * @var string 76 71 */ … … 84 79 * 85 80 * @since 4.4.0 86 * @access protected87 81 * @var array Attributes for the request. 88 82 */ … … 95 89 * 96 90 * @since 4.4.0 97 * @access protected98 91 * @var bool 99 92 */ … … 104 97 * 105 98 * @since 4.4.0 106 * @access protected107 99 * @var bool 108 100 */ … … 113 105 * 114 106 * @since 4.4.0 115 * @access public116 107 * 117 108 * @param string $method Optional. Request method. Default empty. … … 141 132 * 142 133 * @since 4.4.0 143 * @access public144 134 * 145 135 * @return string HTTP method. … … 153 143 * 154 144 * @since 4.4.0 155 * @access public156 145 * 157 146 * @param string $method HTTP method. … … 165 154 * 166 155 * @since 4.4.0 167 * @access public168 156 * 169 157 * @return array Map of key to value. Key is always lowercase, as per HTTP specification. … … 187 175 * 188 176 * @since 4.4.0 189 * @access public190 177 * @static 191 178 * … … 208 195 * 209 196 * @since 4.4.0 210 * @access public211 197 * 212 198 * @param string $key Header name, will be canonicalized to lowercase. … … 227 213 * 228 214 * @since 4.4.0 229 * @access public230 215 * 231 216 * @param string $key Header name, will be canonicalized to lowercase. … … 246 231 * 247 232 * @since 4.4.0 248 * @access public249 233 * 250 234 * @param string $key Header name. … … 262 246 * 263 247 * @since 4.4.0 264 * @access public265 248 * 266 249 * @param string $key Header name. … … 282 265 * 283 266 * @since 4.4.0 284 * @access public285 267 * 286 268 * @param string $key Header name. … … 295 277 * 296 278 * @since 4.4.0 297 * @access public298 279 * 299 280 * @param array $headers Map of header name to value. … … 314 295 * 315 296 * @since 4.4.0 316 * @access public317 297 * 318 298 * @return array Map containing 'value' and 'parameters' keys. … … 349 329 * 350 330 * @since 4.4.0 351 * @access protected352 331 * 353 332 * @return array List of types to check, in order of priority. … … 401 380 * 402 381 * @since 4.4.0 403 * @access public404 382 * 405 383 * @param string $key Parameter name. … … 423 401 * 424 402 * @since 4.4.0 425 * @access public426 403 * 427 404 * @param string $key Parameter name. … … 440 417 * 441 418 * @since 4.4.0 442 * @access public443 419 * 444 420 * @return array Map of key to value. … … 466 442 * 467 443 * @since 4.4.0 468 * @access public469 444 * 470 445 * @return array Parameter map of key to value. … … 480 455 * 481 456 * @since 4.4.0 482 * @access public483 457 * 484 458 * @param array $params Parameter map of key to value. … … 494 468 * 495 469 * @since 4.4.0 496 * @access public497 470 * 498 471 * @return array Parameter map of key to value … … 508 481 * 509 482 * @since 4.4.0 510 * @access public511 483 * 512 484 * @param array $params Parameter map of key to value. … … 522 494 * 523 495 * @since 4.4.0 524 * @access public525 496 * 526 497 * @return array Parameter map of key to value. … … 536 507 * 537 508 * @since 4.4.0 538 * @access public539 509 * 540 510 * @param array $params Parameter map of key to value. … … 550 520 * 551 521 * @since 4.4.0 552 * @access public553 522 * 554 523 * @return array Parameter map of key to value … … 564 533 * 565 534 * @since 4.4.0 566 * @access public567 535 * 568 536 * @param array $params Parameter map of key to value. … … 578 546 * 579 547 * @since 4.4.0 580 * @access public581 548 * 582 549 * @return array Parameter map of key to value … … 592 559 * 593 560 * @since 4.4.0 594 * @access public595 561 * 596 562 * @param array $params Parameter map of key to value. … … 604 570 * 605 571 * @since 4.4.0 606 * @access public607 572 * 608 573 * @return string Binary data from the request body. … … 616 581 * 617 582 * @since 4.4.0 618 * @access public619 583 * 620 584 * @param string $data Binary data from the request body. … … 633 597 * 634 598 * @since 4.4.0 635 * @access public636 599 * 637 600 * @return array Parameter map of key to value. … … 651 614 * @since 4.4.0 652 615 * @since 4.7.0 Returns error instance if value cannot be decoded. 653 * @access protected654 616 * @return true|WP_Error True if the JSON data was passed or no JSON data was provided, WP_Error if invalid JSON was passed. 655 617 */ … … 707 669 * 708 670 * @since 4.4.0 709 * @access protected710 671 */ 711 672 protected function parse_body_params() { … … 748 709 * 749 710 * @since 4.4.0 750 * @access public751 711 * 752 712 * @return string Route matching regex. … … 760 720 * 761 721 * @since 4.4.0 762 * @access public763 722 * 764 723 * @param string $route Route matching regex. … … 774 733 * 775 734 * @since 4.4.0 776 * @access public777 735 * 778 736 * @return array Attributes for the request. … … 786 744 * 787 745 * @since 4.4.0 788 * @access public789 746 * 790 747 * @param array $attributes Attributes for the request. … … 801 758 * 802 759 * @since 4.4.0 803 * @access public804 760 * 805 761 * @return true|WP_Error True if parameters were sanitized, WP_Error if an error occurred during sanitization. … … 857 813 * 858 814 * @since 4.4.0 859 * @access public860 815 * 861 816 * @return bool|WP_Error True if there are no parameters to validate or if all pass validation, … … 925 880 * 926 881 * @since 4.4.0 927 * @access public928 882 * 929 883 * @param string $offset Parameter name. … … 946 900 * 947 901 * @since 4.4.0 948 * @access public949 902 * 950 903 * @param string $offset Parameter name. … … 959 912 * 960 913 * @since 4.4.0 961 * @access public962 914 * 963 915 * @param string $offset Parameter name. … … 972 924 * 973 925 * @since 4.4.0 974 * @access public975 926 * 976 927 * @param string $offset Parameter name. … … 990 941 * @static 991 942 * @since 4.5.0 992 * @access public993 943 * 994 944 * @param string $url URL with protocol, domain, path and query args.
Note: See TracChangeset
for help on using the changeset viewer.