Changeset 30138 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 11/01/2014 01:43:41 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r30137 r30138 1067 1067 * 1068 1068 * @param array $args Method parameters. Contains: 1069 * - int $blog_id 1069 * - int $blog_id (unused) 1070 1070 * - string $username 1071 1071 * - string $password … … 1098 1098 $this->escape( $args ); 1099 1099 1100 $blog_id = (int) $args[0];1101 1100 $username = $args[1]; 1102 1101 $password = $args[2]; … … 1394 1393 * 1395 1394 * @param array $args Method parameters. Contains: 1396 * - int $blog_id 1395 * - int $blog_id (unused) 1397 1396 * - string $username 1398 1397 * - string $password … … 1407 1406 $this->escape( $args ); 1408 1407 1409 $blog_id = (int) $args[0];1410 1408 $username = $args[1]; 1411 1409 $password = $args[2]; … … 1458 1456 * @uses wp_delete_post() 1459 1457 * @param array $args Method parameters. Contains: 1460 * - int $blog_id 1458 * - int $blog_id (unused) 1461 1459 * - string $username 1462 1460 * - string $password … … 1470 1468 $this->escape( $args ); 1471 1469 1472 $blog_id = (int) $args[0];1473 1470 $username = $args[1]; 1474 1471 $password = $args[2]; … … 1512 1509 * @uses get_post() 1513 1510 * @param array $args Method parameters. Contains: 1514 * - int $ post_id1511 * - int $blog_id (unset) 1515 1512 * - string $username 1516 1513 * - string $password 1514 * - int $post_id 1517 1515 * - array $fields optional 1518 1516 * @return array contains (based on $fields parameter): … … 1546 1544 $this->escape( $args ); 1547 1545 1548 $blog_id = (int) $args[0];1549 1546 $username = $args[1]; 1550 1547 $password = $args[2]; … … 1599 1596 * 1600 1597 * @param array $args Method parameters. Contains: 1601 * - int $blog_id 1598 * - int $blog_id (unused) 1602 1599 * - string $username 1603 1600 * - string $password … … 1612 1609 $this->escape( $args ); 1613 1610 1614 $blog_id = (int) $args[0];1615 1611 $username = $args[1]; 1616 1612 $password = $args[2]; … … 1690 1686 * @uses wp_insert_term() 1691 1687 * @param array $args Method parameters. Contains: 1692 * - int $blog_id 1688 * - int $blog_id (unused) 1693 1689 * - string $username 1694 1690 * - string $password … … 1709 1705 $this->escape( $args ); 1710 1706 1711 $blog_id = (int) $args[0];1712 1707 $username = $args[1]; 1713 1708 $password = $args[2]; … … 1777 1772 * @uses wp_update_term() 1778 1773 * @param array $args Method parameters. Contains: 1779 * - int $blog_id 1774 * - int $blog_id (unused) 1780 1775 * - string $username 1781 1776 * - string $password … … 1797 1792 $this->escape( $args ); 1798 1793 1799 $blog_id = (int) $args[0];1800 1794 $username = $args[1]; 1801 1795 $password = $args[2]; … … 1877 1871 * @uses wp_delete_term() 1878 1872 * @param array $args Method parameters. Contains: 1879 * - int $blog_id 1873 * - int $blog_id (unused) 1880 1874 * - string $username 1881 1875 * - string $password … … 1890 1884 $this->escape( $args ); 1891 1885 1892 $blog_id = (int) $args[0];1893 1886 $username = $args[1]; 1894 1887 $password = $args[2]; … … 1936 1929 * @uses get_term() 1937 1930 * @param array $args Method parameters. Contains: 1938 * - int $blog_id 1931 * - int $blog_id (unused) 1939 1932 * - string $username 1940 1933 * - string $password … … 1958 1951 $this->escape( $args ); 1959 1952 1960 $blog_id = (int) $args[0];1961 1953 $username = $args[1]; 1962 1954 $password = $args[2]; … … 1999 1991 * @uses get_terms() 2000 1992 * @param array $args Method parameters. Contains: 2001 * - int $blog_id 1993 * - int $blog_id (unused) 2002 1994 * - string $username 2003 1995 * - string $password … … 2012 2004 $this->escape( $args ); 2013 2005 2014 $blog_id = (int) $args[0];2015 2006 $username = $args[1]; 2016 2007 $password = $args[2]; … … 2076 2067 * @uses get_taxonomy() 2077 2068 * @param array $args Method parameters. Contains: 2078 * - int $blog_id 2069 * - int $blog_id (unused) 2079 2070 * - string $username 2080 2071 * - string $password … … 2088 2079 $this->escape( $args ); 2089 2080 2090 $blog_id = (int) $args[0];2091 2081 $username = $args[1]; 2092 2082 $password = $args[2]; … … 2131 2121 * @uses get_taxonomies() 2132 2122 * @param array $args Method parameters. Contains: 2133 * - int $blog_id 2123 * - int $blog_id (unused) 2134 2124 * - string $username 2135 2125 * - string $password … … 2142 2132 $this->escape( $args ); 2143 2133 2144 $blog_id = (int) $args[0];2145 2134 $username = $args[1]; 2146 2135 $password = $args[2]; … … 2189 2178 * @uses get_userdata() 2190 2179 * @param array $args Method parameters. Contains: 2191 * - int $blog_id 2180 * - int $blog_id (unused) 2192 2181 * - string $username 2193 2182 * - string $password … … 2214 2203 $this->escape( $args ); 2215 2204 2216 $blog_id = (int) $args[0];2217 2205 $username = $args[1]; 2218 2206 $password = $args[2]; … … 2264 2252 * 2265 2253 * @param array $args Method parameters. Contains: 2266 * - int $blog_id 2254 * - int $blog_id (unused) 2267 2255 * - string $username 2268 2256 * - string $password … … 2277 2265 $this->escape( $args ); 2278 2266 2279 $blog_id = (int) $args[0];2280 2267 $username = $args[1]; 2281 2268 $password = $args[2]; … … 2336 2323 * @uses get_userdata() 2337 2324 * @param array $args Method parameters. Contains: 2338 * - int $blog_id 2325 * - int $blog_id (unused) 2339 2326 * - string $username 2340 2327 * - string $password … … 2348 2335 $this->escape( $args ); 2349 2336 2350 $blog_id = (int) $args[0];2351 2337 $username = $args[1]; 2352 2338 $password = $args[2]; … … 2378 2364 * @uses wp_update_user() 2379 2365 * @param array $args Method parameters. Contains: 2380 * - int $blog_id 2366 * - int $blog_id (unused) 2381 2367 * - string $username 2382 2368 * - string $password … … 2398 2384 $this->escape( $args ); 2399 2385 2400 $blog_id = (int) $args[0];2401 2386 $username = $args[1]; 2402 2387 $password = $args[2]; … … 2455 2440 * 2456 2441 * @param array $args Method parameters. Contains: 2457 * - blog_id 2442 * - blog_id (unused) 2458 2443 * - page_id 2459 2444 * - username … … 2464 2449 $this->escape($args); 2465 2450 2466 $blog_id = (int) $args[0];2467 2451 $page_id = (int) $args[1]; 2468 2452 $username = $args[2]; … … 2499 2483 * 2500 2484 * @param array $args Method parameters. Contains: 2501 * - blog_id 2485 * - blog_id (unused) 2502 2486 * - username 2503 2487 * - password … … 2508 2492 $this->escape($args); 2509 2493 2510 $blog_id = (int) $args[0];2511 2494 $username = $args[1]; 2512 2495 $password = $args[2]; … … 2581 2564 $this->escape($args); 2582 2565 2583 $blog_id = (int) $args[0];2584 2566 $username = $args[1]; 2585 2567 $password = $args[2]; … … 2630 2612 public function wp_editPage($args) { 2631 2613 // Items not escaped here will be escaped in editPost. 2632 $blog_id = (int) $args[0];2633 2614 $page_id = (int) $this->escape($args[1]); 2634 2615 $username = $this->escape($args[2]); … … 2681 2662 $this->escape($args); 2682 2663 2683 $blog_id = (int) $args[0];2684 2664 $username = $args[1]; 2685 2665 $password = $args[2]; … … 2733 2713 $this->escape($args); 2734 2714 2735 $blog_id = (int) $args[0];2736 2715 $username = $args[1]; 2737 2716 $password = $args[2]; … … 2769 2748 $this->escape( $args ); 2770 2749 2771 $blog_id = (int) $args[0];2772 2750 $username = $args[1]; 2773 2751 $password = $args[2]; … … 2811 2789 $this->escape($args); 2812 2790 2813 $blog_id = (int) $args[0];2814 2791 $username = $args[1]; 2815 2792 $password = $args[2]; … … 2881 2858 $this->escape($args); 2882 2859 2883 $blog_id = (int) $args[0];2884 2860 $username = $args[1]; 2885 2861 $password = $args[2]; … … 2923 2899 $this->escape($args); 2924 2900 2925 $blog_id = (int) $args[0];2926 2901 $username = $args[1]; 2927 2902 $password = $args[2]; … … 2961 2936 $this->escape($args); 2962 2937 2963 $blog_id = (int) $args[0];2964 2938 $username = $args[1]; 2965 2939 $password = $args[2]; … … 2984 2958 * Retrieve comments. 2985 2959 * 2986 * Besides the common blog_id , username, and password arguments, it takes a filter2960 * Besides the common blog_id (unused), username, and password arguments, it takes a filter 2987 2961 * array as last argument. 2988 2962 * … … 3003 2977 $this->escape($args); 3004 2978 3005 $blog_id = (int) $args[0];3006 2979 $username = $args[1]; 3007 2980 $password = $args[2]; … … 3055 3028 * 3056 3029 * @param array $args Method parameters. Contains: 3057 * - blog_id 3030 * - blog_id (unused) 3058 3031 * - username 3059 3032 * - password … … 3064 3037 $this->escape($args); 3065 3038 3066 $blog_id = (int) $args[0];3067 3039 $username = $args[1]; 3068 3040 $password = $args[2]; … … 3104 3076 * Edit comment. 3105 3077 * 3106 * Besides the common blog_id , username, and password arguments, it takes a3078 * Besides the common blog_id (unused), username, and password arguments, it takes a 3107 3079 * comment_id integer and a content_struct array as last argument. 3108 3080 * … … 3118 3090 * 3119 3091 * @param array $args. Contains: 3120 * - blog_id 3092 * - blog_id (unused) 3121 3093 * - username 3122 3094 * - password … … 3128 3100 $this->escape($args); 3129 3101 3130 $blog_id = (int) $args[0];3131 3102 $username = $args[1]; 3132 3103 $password = $args[2]; … … 3212 3183 $this->escape($args); 3213 3184 3214 $blog_id = (int) $args[0];3215 3185 $username = $args[1]; 3216 3186 $password = $args[2]; … … 3314 3284 $this->escape( $args ); 3315 3285 3316 $blog_id = (int) $args[0];3317 3286 $username = $args[1]; 3318 3287 $password = $args[2]; … … 3341 3310 $this->escape($args); 3342 3311 3343 $blog_id = (int) $args[0];3344 3312 $username = $args[1]; 3345 3313 $password = $args[2]; … … 3375 3343 $this->escape( $args ); 3376 3344 3377 $blog_id = (int) $args[0];3378 3345 $username = $args[1]; 3379 3346 $password = $args[2]; … … 3402 3369 $this->escape( $args ); 3403 3370 3404 $blog_id = (int) $args[0];3405 3371 $username = $args[1]; 3406 3372 $password = $args[2]; … … 3429 3395 $this->escape( $args ); 3430 3396 3431 $blog_id = (int) $args[0];3432 3397 $username = $args[1]; 3433 3398 $password = $args[2]; … … 3456 3421 $this->escape( $args ); 3457 3422 3458 $blog_id = (int) $args[0];3459 3423 $username = $args[1]; 3460 3424 $password = $args[2]; … … 3510 3474 $this->escape( $args ); 3511 3475 3512 $blog_id = (int) $args[0];3513 3476 $username = $args[1]; 3514 3477 $password = $args[2]; … … 3542 3505 * 3543 3506 * @param array $args Method parameters. Contains: 3544 * - blog_id 3507 * - blog_id (unused) 3545 3508 * - username 3546 3509 * - password … … 3559 3522 $this->escape($args); 3560 3523 3561 $blog_id = (int) $args[0];3562 3524 $username = $args[1]; 3563 3525 $password = $args[2]; … … 3582 3544 * Retrieves a collection of media library items (or attachments) 3583 3545 * 3584 * Besides the common blog_id , username, and password arguments, it takes a filter3546 * Besides the common blog_id (unused), username, and password arguments, it takes a filter 3585 3547 * array as last argument. 3586 3548 * … … 3596 3558 * 3597 3559 * @param array $args Method parameters. Contains: 3598 * - blog_id 3560 * - blog_id (unused) 3599 3561 * - username 3600 3562 * - password … … 3605 3567 $this->escape($args); 3606 3568 3607 $blog_id = (int) $args[0];3608 3569 $username = $args[1]; 3609 3570 $password = $args[2]; … … 3640 3601 * 3641 3602 * @param array $args Method parameters. Contains: 3642 * - blog_id 3603 * - blog_id (unused) 3643 3604 * - username 3644 3605 * - password … … 3648 3609 $this->escape( $args ); 3649 3610 3650 $blog_id = (int) $args[0];3651 3611 $username = $args[1]; 3652 3612 $password = $args[2]; … … 3687 3647 * @uses get_post_type_object() 3688 3648 * @param array $args Method parameters. Contains: 3689 * - int $blog_id 3649 * - int $blog_id (unused) 3690 3650 * - string $username 3691 3651 * - string $password … … 3709 3669 $this->escape( $args ); 3710 3670 3711 $blog_id = (int) $args[0];3712 3671 $username = $args[1]; 3713 3672 $password = $args[2]; … … 3752 3711 * @uses get_post_types() 3753 3712 * @param array $args Method parameters. Contains: 3754 * - int $blog_id 3713 * - int $blog_id (unused) 3755 3714 * - string $username 3756 3715 * - string $password … … 3765 3724 $this->escape( $args ); 3766 3725 3767 $blog_id = (int) $args[0];3768 3726 $username = $args[1]; 3769 3727 $password = $args[2]; … … 3809 3767 * 3810 3768 * @param array $args Method parameters. Contains: 3811 * - int $blog_id 3769 * - int $blog_id (unused) 3812 3770 * - string $username 3813 3771 * - string $password … … 3822 3780 $this->escape( $args ); 3823 3781 3824 $blog_id = (int) $args[0];3825 3782 $username = $args[1]; 3826 3783 $password = $args[2]; … … 3886 3843 * 3887 3844 * @param array $args Method parameters. Contains: 3888 * - int $blog_id 3845 * - int $blog_id (unused) 3889 3846 * - string $username 3890 3847 * - string $password … … 3898 3855 $this->escape( $args ); 3899 3856 3900 $blog_id = (int) $args[0];3901 3857 $username = $args[1]; 3902 3858 $password = $args[2]; … … 4096 4052 4097 4053 // $args[0] = appkey - ignored 4098 $blog_ID = (int) $args[1]; /* though we don't use it yet */4099 4054 $username = $args[2]; 4100 4055 $password = $args[3]; … … 4180 4135 $this->escape($args); 4181 4136 4182 $blog_ID = (int) $args[1]; /* though we don't use it yet */4183 4137 $username = $args[2]; 4184 4138 $password = $args[3]; … … 4207 4161 $post_date_gmt = current_time('mysql', 1); 4208 4162 4209 $post_data = compact(' blog_ID', 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_category', 'post_status');4163 $post_data = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_category', 'post_status'); 4210 4164 4211 4165 $post_ID = wp_insert_post($post_data); … … 4379 4333 * 4380 4334 * @param array $args Method parameters. Contains: 4381 * - blog_id 4335 * - blog_id (unused) 4382 4336 * - username 4383 4337 * - password … … 4389 4343 $this->escape($args); 4390 4344 4391 $blog_ID = (int) $args[0];4392 4345 $username = $args[1]; 4393 4346 $password = $args[2]; … … 5129 5082 $this->escape($args); 5130 5083 5131 $blog_ID = (int) $args[0];5132 5084 $username = $args[1]; 5133 5085 $password = $args[2]; … … 5249 5201 $this->escape($args); 5250 5202 5251 $blog_ID = (int) $args[0];5252 5203 $username = $args[1]; 5253 5204 $password = $args[2]; … … 5296 5247 global $wpdb; 5297 5248 5298 $blog_ID = (int) $args[0];5299 5249 $username = $this->escape($args[1]); 5300 5250 $password = $this->escape($args[2]); … … 5411 5361 $this->escape($args); 5412 5362 5413 $blog_ID = (int) $args[0];5414 5363 $username = $args[1]; 5415 5364 $password = $args[2]; … … 5472 5421 $this->escape($args); 5473 5422 5474 $blog_ID = (int) $args[0];5475 5423 $username = $args[1]; 5476 5424 $password = $args[2];
Note: See TracChangeset
for help on using the changeset viewer.