Changeset 8952
- Timestamp:
- 09/22/2008 05:15:41 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-app.php
r8600 r8952 68 68 if ( !function_exists('wp_set_current_user') ) : 69 69 /** 70 * wp_set_current_user() - Sets the current WordPress User70 * Sets the current WordPress User. 71 71 * 72 72 * Pluggable function which is also found in pluggable.php. … … 75 75 * @uses $current_user Global of current user to test whether $id is the same. 76 76 * 77 * @param int $id The user's ID 77 * @param int $id The user's ID. 78 78 * @param string $name Optional. The username of the user. 79 79 * @return WP_User Current user's User object … … 92 92 93 93 /** 94 * wa_posts_where_include_drafts_filter() - Filter to add more post statuses94 * Filter to add more post statuses. 95 95 * 96 96 * @param string $where SQL statement to filter … … 105 105 106 106 /** 107 * @internal 108 * Left undocumented to work on later. If you want to finish, then please do so. 107 * WordPress AtomPub API implementation. 109 108 * 110 109 * @package WordPress 111 110 * @subpackage Publishing 111 * @since 2.2.0 112 112 */ 113 113 class AtomServer { -
trunk/wp-login.php
r8919 r8952 24 24 25 25 /** 26 * login_header() - Outputs the header for the login page 27 * 28 * @package WordPress 26 * Outputs the header for the login page. 27 * 29 28 * @uses do_action() Calls the 'login_head' for outputting HTML in the Login 30 29 * header. … … 88 87 89 88 /** 90 * retrieve_password() - Handles sending password retrieval email to user 91 * 92 * {@internal Missing Long Description}} 89 * Handles sending password retrieval email to user. 93 90 * 94 91 * @uses $wpdb WordPress Database object … … 158 155 159 156 /** 160 * reset_password() - Handles resetting the user's password 161 * 162 * {@internal Missing Long Description}} 157 * Handles resetting the user's password. 163 158 * 164 159 * @uses $wpdb WordPress Database object … … 197 192 198 193 /** 199 * register_new_user() - Handles registering a new user 200 * 201 * {@internal Missing Long Description}} 194 * Handles registering a new user. 202 195 * 203 196 * @param string $user_login User's username for logging in -
trunk/xmlrpc.php
r8720 r8952 100 100 101 101 /** 102 * @internal 103 * Left undocumented to work on later. If you want to finish, then please do so. 102 * WordPress XMLRPC server implementation. 103 * 104 * Implements compatability for Blogger API, MetaWeblog API, MovableType, and 105 * pingback. Additional WordPress API for managing comments, pages, posts, 106 * options, etc. 107 * 108 * Since WordPress 2.6.0, WordPress XMLRPC server can be disabled in the 109 * administration panels. 104 110 * 105 111 * @package WordPress 106 112 * @subpackage Publishing 113 * @since 1.5.0 107 114 */ 108 115 class wp_xmlrpc_server extends IXR_Server { 109 116 117 /** 118 * Register all of the XMLRPC methods that XMLRPC server understands. 119 * 120 * PHP4 constructor and sets up server and method property. Passes XMLRPC 121 * methods through the 'xmlrpc_methods' filter to allow plugins to extend 122 * or replace XMLRPC methods. 123 * 124 * @since 1.5.0 125 * 126 * @return wp_xmlrpc_server 127 */ 110 128 function wp_xmlrpc_server() { 111 129 $this->methods = array( … … 186 204 } 187 205 206 /** 207 * Test XMLRPC API by saying, "Hello!" to client. 208 * 209 * @since 1.5.0 210 * 211 * @param array $args Method Parameters. 212 * @return string 213 */ 188 214 function sayHello($args) { 189 215 return 'Hello!'; 190 216 } 191 217 218 /** 219 * Test XMLRPC API by adding two numbers for client. 220 * 221 * @since 1.5.0 222 * 223 * @param array $args Method Parameters. 224 * @return int 225 */ 192 226 function addTwoNumbers($args) { 193 227 $number1 = $args[0]; … … 196 230 } 197 231 232 /** 233 * Check user's credentials. 234 * 235 * @since 1.5.0 236 * 237 * @param string $user_login User's username. 238 * @param string $user_pass User's password. 239 * @return bool Whether authentication passed. 240 */ 198 241 function login_pass_ok($user_login, $user_pass) { 199 242 if ( !get_option( 'enable_xmlrpc' ) ) { … … 209 252 } 210 253 254 /** 255 * Sanitize string or array of strings for database. 256 * 257 * @since 1.5.2 258 * 259 * @param string|array $array Sanitize single string or array of strings. 260 * @return string|array Type matches $array and sanitized for the database. 261 */ 211 262 function escape(&$array) { 212 263 global $wpdb; … … 228 279 } 229 280 281 /** 282 * Retrieve custom fields for post. 283 * 284 * @since 2.5.0 285 * 286 * @param int $post_id Post ID. 287 * @return array Custom fields, if exist. 288 */ 230 289 function get_custom_fields($post_id) { 231 290 $post_id = (int) $post_id; … … 249 308 } 250 309 310 /** 311 * Set custom fields for post. 312 * 313 * @since 2.5.0 314 * 315 * @param int $post_id Post ID. 316 * @param array $fields Custom fields. 317 */ 251 318 function set_custom_fields($post_id, $fields) { 252 319 $post_id = (int) $post_id; … … 271 338 } 272 339 340 /** 341 * Setup blog options property. 342 * 343 * Passes property through 'xmlrpc_blog_options' filter. 344 * 345 * @since 2.6.0 346 */ 273 347 function initialise_blog_option_info( ) { 274 348 global $wp_version; … … 324 398 325 399 /** 326 * WordPress XML-RPC API 327 * wp_getUsersBlogs 400 * Retrieve the blogs of the user. 401 * 402 * @since 2.6.0 403 * 404 * @param array $args Method parameters. 405 * @return array 328 406 */ 329 407 function wp_getUsersBlogs( $args ) { … … 371 449 372 450 /** 373 * WordPress XML-RPC API 374 * wp_getPage 451 * Retrieve page. 452 * 453 * @since 2.2.0 454 * 455 * @param array $args Method parameters. 456 * @return array 375 457 */ 376 458 function wp_getPage($args) { … … 465 547 466 548 /** 467 * WordPress XML-RPC API 468 * wp_getPages 549 * Retrieve Pages. 550 * 551 * @since 2.2.0 552 * 553 * @param array $args Method parameters. 554 * @return array 469 555 */ 470 556 function wp_getPages($args) { … … 509 595 510 596 /** 511 * WordPress XML-RPC API 512 * wp_newPage 597 * Create new page. 598 * 599 * @since 2.2.0 600 * 601 * @param array $args Method parameters. 602 * @return unknown 513 603 */ 514 604 function wp_newPage($args) { … … 540 630 541 631 /** 542 * WordPress XML-RPC API 543 * wp_deletePage 632 * Delete page. 633 * 634 * @since 2.2.0 635 * 636 * @param array $args Method parameters. 637 * @return bool True, if success. 544 638 */ 545 639 function wp_deletePage($args) { … … 583 677 584 678 /** 585 * WordPress XML-RPC API 586 * wp_editPage 679 * Edit page. 680 * 681 * @since 2.2.0 682 * 683 * @param array $args Method parameters. 684 * @return unknown 587 685 */ 588 686 function wp_editPage($args) { … … 633 731 634 732 /** 635 * WordPress XML-RPC API 636 * wp_getPageList 733 * Retrieve page list. 734 * 735 * @since 2.2.0 736 * 737 * @param array $args Method parameters. 738 * @return unknown 637 739 */ 638 740 function wp_getPageList($args) { … … 684 786 685 787 /** 686 * WordPress XML-RPC API 687 * wp_getAuthors 788 * Retrieve authors list. 789 * 790 * @since 2.2.0 791 * 792 * @param array $args Method parameters. 793 * @return array 688 794 */ 689 795 function wp_getAuthors($args) { … … 702 808 if(!current_user_can("edit_posts")) { 703 809 return(new IXR_Error(401, __("Sorry, you can not edit posts on this blog."))); 704 810 } 705 811 706 812 do_action('xmlrpc_call', 'wp.getAuthors'); … … 719 825 720 826 /** 721 * WordPress XML-RPC API 722 * wp_newCategory 827 * Create new category. 828 * 829 * @since 2.2.0 830 * 831 * @param array $args Method parameters. 832 * @return int Category ID. 723 833 */ 724 834 function wp_newCategory($args) { … … 775 885 776 886 /** 777 * WordPress XML-RPC API 778 * wp_deleteCategory 887 * Remove category. 888 * 889 * @since 2.5.0 890 * 891 * @param array $args Method parameters. 892 * @return mixed See {@link wp_delete_category()} for return info. 779 893 */ 780 894 function wp_deleteCategory($args) { … … 800 914 } 801 915 802 803 /** 804 * WordPress XML-RPC API 805 * wp_suggestCategories 916 /** 917 * Retrieve category list. 918 * 919 * @since 2.2.0 920 * 921 * @param array $args Method parameters. 922 * @return array 806 923 */ 807 924 function wp_suggestCategories($args) { … … 836 953 } 837 954 955 /** 956 * Retrieve comment. 957 * 958 * @since 2.7.0 959 * 960 * @param array $args Method parameters. 961 * @return array 962 */ 838 963 function wp_getComment($args) { 839 964 $this->escape($args); … … 888 1013 } 889 1014 1015 /** 1016 * Retrieve comments. 1017 * 1018 * @since 2.7.0 1019 * 1020 * @param array $args Method parameters. 1021 * @return array 1022 */ 890 1023 function wp_getComments($args) { 891 1024 $this->escape($args); … … 940 1073 } 941 1074 1075 /** 1076 * Remove comment. 1077 * 1078 * @since 2.7.0 1079 * 1080 * @param array $args Method parameters. 1081 * @return mixed {@link wp_delete_comment()} 1082 */ 942 1083 function wp_deleteComment($args) { 943 1084 $this->escape($args); … … 963 1104 } 964 1105 1106 /** 1107 * Edit comment. 1108 * 1109 * @since 2.7.0 1110 * 1111 * @param array $args Method parameters. 1112 * @return bool True, on success. 1113 */ 965 1114 function wp_editComment($args) { 966 1115 $this->escape($args); … … 1025 1174 } 1026 1175 1176 /** 1177 * Create new comment. 1178 * 1179 * @since 2.7.0 1180 * 1181 * @param array $args Method parameters. 1182 * @return mixed {@link wp_new_comment()} 1183 */ 1027 1184 function wp_newComment($args) { 1028 1185 global $wpdb; … … 1099 1256 } 1100 1257 1258 /** 1259 * Retrieve all of the comment status. 1260 * 1261 * @since 2.7.0 1262 * 1263 * @param array $args Method parameters. 1264 * @return array 1265 */ 1101 1266 function wp_getCommentStatusList($args) { 1102 1267 $this->escape( $args ); … … 1118 1283 } 1119 1284 1285 /** 1286 * Retrieve comment count. 1287 * 1288 * @since 2.5.0 1289 * 1290 * @param array $args Method parameters. 1291 * @return array 1292 */ 1120 1293 function wp_getCommentCount( $args ) { 1121 1294 $this->escape($args); … … 1146 1319 } 1147 1320 1321 /** 1322 * Retrieve post statuses. 1323 * 1324 * @since 2.5.0 1325 * 1326 * @param array $args Method parameters. 1327 * @return array 1328 */ 1148 1329 function wp_getPostStatusList( $args ) { 1149 1330 $this->escape( $args ); … … 1167 1348 } 1168 1349 1169 1350 /** 1351 * Retrieve page statuses. 1352 * 1353 * @since 2.5.0 1354 * 1355 * @param array $args Method parameters. 1356 * @return array 1357 */ 1170 1358 function wp_getPageStatusList( $args ) { 1171 1359 $this->escape( $args ); … … 1189 1377 } 1190 1378 1379 /** 1380 * Retrieve page templates. 1381 * 1382 * @since 2.6.0 1383 * 1384 * @param array $args Method parameters. 1385 * @return array 1386 */ 1191 1387 function wp_getPageTemplates( $args ) { 1192 1388 $this->escape( $args ); … … 1211 1407 } 1212 1408 1409 /** 1410 * Retrieve blog options. 1411 * 1412 * @since 2.6.0 1413 * 1414 * @param array $args Method parameters. 1415 * @return array 1416 */ 1213 1417 function wp_getOptions( $args ) { 1214 1418 $this->escape( $args ); … … 1232 1436 } 1233 1437 1438 /** 1439 * Retrieve blog options value from list. 1440 * 1441 * @since 2.6.0 1442 * 1443 * @param array $options Options to retrieve. 1444 * @return array 1445 */ 1234 1446 function _getOptions($options) 1235 1447 { … … 1250 1462 } 1251 1463 1464 /** 1465 * Update blog options. 1466 * 1467 * @since 2.6.0 1468 * 1469 * @param array $args Method parameters. 1470 * @return unknown 1471 */ 1252 1472 function wp_setOptions( $args ) { 1253 1473 $this->escape( $args ); … … 1283 1503 } 1284 1504 1285 /* Blogger API functions 1505 /* Blogger API functions. 1286 1506 * specs on http://plant.blogger.com/api and http://groups.yahoo.com/group/bloggerDev/ 1287 1507 */ 1288 1508 1289 1290 /* blogger.getUsersBlogs will make more sense once we support multiple blogs */ 1509 /** 1510 * Retrieve blogs that user owns. 1511 * 1512 * Will make more sense once we support multiple blogs. 1513 * 1514 * @since 1.5.0 1515 * 1516 * @param array $args Method parameters. 1517 * @return array 1518 */ 1291 1519 function blogger_getUsersBlogs($args) { 1292 1520 … … 1316 1544 } 1317 1545 1318 1319 /* blogger.getUsersInfo gives your client some info about you, so you don't have to */ 1546 /** 1547 * Retrieve user's data. 1548 * 1549 * Gives your client some info about you, so you don't have to. 1550 * 1551 * @since 1.5.0 1552 * 1553 * @param array $args Method parameters. 1554 * @return array 1555 */ 1320 1556 function blogger_getUserInfo($args) { 1321 1557 … … 1348 1584 } 1349 1585 1350 1351 /* blogger.getPost ...gets a post */ 1586 /** 1587 * Retrieve post. 1588 * 1589 * @since 1.5.0 1590 * 1591 * @param array $args Method parameters. 1592 * @return array 1593 */ 1352 1594 function blogger_getPost($args) { 1353 1595 … … 1386 1628 } 1387 1629 1388 1389 /* blogger.getRecentPosts ...gets recent posts */ 1630 /** 1631 * Retrieve list of recent posts. 1632 * 1633 * @since 1.5.0 1634 * 1635 * @param array $args Method parameters. 1636 * @return array 1637 */ 1390 1638 function blogger_getRecentPosts($args) { 1391 1639 … … 1440 1688 } 1441 1689 1442 1443 /* blogger.getTemplate returns your blog_filename */ 1690 /** 1691 * Retrieve blog_filename content. 1692 * 1693 * @since 1.5.0 1694 * 1695 * @param array $args Method parameters. 1696 * @return string 1697 */ 1444 1698 function blogger_getTemplate($args) { 1445 1699 1446 1700 $this->escape($args); 1447 1701 1448 $blog_ID = (int) $args[1]; 1449 $user_login = $args[2]; 1450 $user_pass = $args[3]; 1451 $template = $args[4]; /* could be 'main' or 'archiveIndex', but we don't use it */ 1452 1453 if (!$this->login_pass_ok($user_login, $user_pass)) { 1454 return $this->error; 1455 } 1456 1457 do_action('xmlrpc_call', 'blogger.getTemplate'); 1458 1459 set_current_user(0, $user_login); 1460 if ( !current_user_can('edit_themes') ) { 1461 return new IXR_Error(401, __('Sorry, this user can not edit the template.')); 1462 } 1463 1464 /* warning: here we make the assumption that the blog's URL is on the same server */ 1465 $filename = get_option('home') . '/'; 1466 $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); 1467 1468 $f = fopen($filename, 'r'); 1469 $content = fread($f, filesize($filename)); 1470 fclose($f); 1471 1472 /* so it is actually editable with a windows/mac client */ 1473 // FIXME: (or delete me) do we really want to cater to bad clients at the expense of good ones by BEEPing up their line breaks? commented. $content = str_replace("\n", "\r\n", $content); 1474 1475 return $content; 1476 } 1477 1478 1479 /* blogger.setTemplate updates the content of blog_filename */ 1702 $blog_ID = (int) $args[1]; 1703 $user_login = $args[2]; 1704 $user_pass = $args[3]; 1705 $template = $args[4]; /* could be 'main' or 'archiveIndex', but we don't use it */ 1706 1707 if (!$this->login_pass_ok($user_login, $user_pass)) { 1708 return $this->error; 1709 } 1710 1711 do_action('xmlrpc_call', 'blogger.getTemplate'); 1712 1713 set_current_user(0, $user_login); 1714 if ( !current_user_can('edit_themes') ) { 1715 return new IXR_Error(401, __('Sorry, this user can not edit the template.')); 1716 } 1717 1718 /* warning: here we make the assumption that the blog's URL is on the same server */ 1719 $filename = get_option('home') . '/'; 1720 $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); 1721 1722 $f = fopen($filename, 'r'); 1723 $content = fread($f, filesize($filename)); 1724 fclose($f); 1725 1726 /* so it is actually editable with a windows/mac client */ 1727 // FIXME: (or delete me) do we really want to cater to bad clients at the expense of good ones by BEEPing up their line breaks? commented. $content = str_replace("\n", "\r\n", $content); 1728 1729 return $content; 1730 } 1731 1732 /** 1733 * Updates the content of blog_filename. 1734 * 1735 * @since 1.5.0 1736 * 1737 * @param array $args Method parameters. 1738 * @return bool True when done. 1739 */ 1480 1740 function blogger_setTemplate($args) { 1481 1741 … … 1513 1773 } 1514 1774 1515 1516 /* blogger.newPost ...creates a new post */ 1775 /** 1776 * Create new post. 1777 * 1778 * @since 1.5.0 1779 * 1780 * @param array $args Method parameters. 1781 * @return int 1782 */ 1517 1783 function blogger_newPost($args) { 1518 1784 … … 1563 1829 } 1564 1830 1565 /* blogger.editPost ...edits a post */ 1831 /** 1832 * Edit a post. 1833 * 1834 * @since 1.5.0 1835 * 1836 * @param array $args Method parameters. 1837 * @return bool true when done. 1838 */ 1566 1839 function blogger_editPost($args) { 1567 1840 … … 1613 1886 } 1614 1887 1615 1616 /* blogger.deletePost ...deletes a post */ 1888 /** 1889 * Remove a post. 1890 * 1891 * @since 1.5.0 1892 * 1893 * @param array $args Method parameters. 1894 * @return bool True when post is deleted. 1895 */ 1617 1896 function blogger_deletePost($args) { 1618 1897 $this->escape($args); … … 1648 1927 } 1649 1928 1650 1651 1652 1929 /* MetaWeblog API functions 1653 1930 * specs on wherever Dave Winer wants them to be 1654 1931 */ 1655 1932 1656 /* metaweblog.newPost creates a post */ 1933 /** 1934 * Create a new post. 1935 * 1936 * @since 1.5.0 1937 * 1938 * @param array $args Method parameters. 1939 * @return int 1940 */ 1657 1941 function mw_newPost($args) { 1658 1942 $this->escape($args); … … 1897 2181 } 1898 2182 2183 /** 2184 * Attach upload to a post. 2185 * 2186 * @since 2.1.0 2187 * 2188 * @param int $post_ID Post ID. 2189 * @param string $post_content Post Content for attachment. 2190 */ 1899 2191 function attach_uploads( $post_ID, $post_content ) { 1900 2192 global $wpdb; … … 1911 2203 } 1912 2204 1913 /* metaweblog.editPost ...edits a post */ 2205 /** 2206 * Edit a post. 2207 * 2208 * @since 1.5.0 2209 * 2210 * @param array $args Method parameters. 2211 * @return bool True on success. 2212 */ 1914 2213 function mw_editPost($args) { 1915 2214 … … 2165 2464 } 2166 2465 2167 2168 /* metaweblog.getPost ...returns a post */ 2466 /** 2467 * Retrieve post. 2468 * 2469 * @since 1.5.0 2470 * 2471 * @param array $args Method parameters. 2472 * @return array 2473 */ 2169 2474 function mw_getPost($args) { 2170 2475 … … 2251 2556 } 2252 2557 2253 2254 /* metaweblog.getRecentPosts ...returns recent posts */ 2558 /** 2559 * Retrieve list of recent posts. 2560 * 2561 * @since 1.5.0 2562 * 2563 * @param array $args Method parameters. 2564 * @return array 2565 */ 2255 2566 function mw_getRecentPosts($args) { 2256 2567 … … 2323 2634 'link' => $link, 2324 2635 'permaLink' => $link, 2325 // commented out because no other tool seems to use this2326 //'content' => $entry['post_content'],2636 // commented out because no other tool seems to use this 2637 // 'content' => $entry['post_content'], 2327 2638 'categories' => $categories, 2328 2639 'mt_excerpt' => $entry['post_excerpt'], … … 2350 2661 } 2351 2662 2352 2353 /* metaweblog.getCategories ...returns the list of categories on a given blog */ 2663 /** 2664 * Retrieve the list of categories on a given blog. 2665 * 2666 * @since 1.5.0 2667 * 2668 * @param array $args Method parameters. 2669 * @return array 2670 */ 2354 2671 function mw_getCategories($args) { 2355 2672 … … 2388 2705 } 2389 2706 2390 2391 /* metaweblog.newMediaObject uploads a file, following your settings */ 2707 /** 2708 * Uploads a file, following your settings. 2709 * 2710 * Adapted from a patch by Johann Richard. 2711 * 2712 * @link http://mycvs.org/archives/2004/06/30/file-upload-to-wordpress-in-ecto/ 2713 * 2714 * @since 1.5.0 2715 * 2716 * @param array $args Method parameters. 2717 * @return array 2718 */ 2392 2719 function mw_newMediaObject($args) { 2393 // adapted from a patch by Johann Richard2394 // http://mycvs.org/archives/2004/06/30/file-upload-to-wordpress-in-ecto/2395 2396 2720 global $wpdb; 2397 2721 … … 2465 2789 } 2466 2790 2467 2468 2791 /* MovableType API functions 2469 2792 * specs on http://www.movabletype.org/docs/mtmanual_programmatic.html 2470 2793 */ 2471 2794 2472 /* mt.getRecentPostTitles ...returns recent posts' titles */ 2795 /** 2796 * Retrieve the post titles of recent posts. 2797 * 2798 * @since 1.5.0 2799 * 2800 * @param array $args Method parameters. 2801 * @return array 2802 */ 2473 2803 function mt_getRecentPostTitles($args) { 2474 2804 … … 2520 2850 } 2521 2851 2522 2523 /* mt.getCategoryList ...returns the list of categories on a given blog */ 2852 /** 2853 * Retrieve list of all categories on blog. 2854 * 2855 * @since 1.5.0 2856 * 2857 * @param array $args Method parameters. 2858 * @return array 2859 */ 2524 2860 function mt_getCategoryList($args) { 2525 2861 … … 2554 2890 } 2555 2891 2556 2557 /* mt.getPostCategories ...returns a post's categories */ 2892 /** 2893 * Retrieve post categories. 2894 * 2895 * @since 1.5.0 2896 * 2897 * @param array $args Method parameters. 2898 * @return array 2899 */ 2558 2900 function mt_getPostCategories($args) { 2559 2901 … … 2590 2932 } 2591 2933 2592 2593 /* mt.setPostCategories ...sets a post's categories */ 2934 /** 2935 * Sets categories for a post. 2936 * 2937 * @since 1.5.0 2938 * 2939 * @param array $args Method parameters. 2940 * @return bool True on success. 2941 */ 2594 2942 function mt_setPostCategories($args) { 2595 2943 … … 2620 2968 } 2621 2969 2622 2623 /* mt.supportedMethods ...returns an array of methods supported by this server */ 2970 /** 2971 * Retrieve an array of methods supported by this server. 2972 * 2973 * @since 1.5.0 2974 * 2975 * @param array $args Method parameters. 2976 * @return array 2977 */ 2624 2978 function mt_supportedMethods($args) { 2625 2979 … … 2634 2988 } 2635 2989 2636 2637 /* mt.supportedTextFilters ...returns an empty array because we don't 2638 support per-post text filters yet */ 2990 /** 2991 * Retrieve an empty array because we don't support per-post text filters. 2992 * 2993 * @since 1.5.0 2994 * 2995 * @param array $args Method parameters. 2996 */ 2639 2997 function mt_supportedTextFilters($args) { 2640 2998 do_action('xmlrpc_call', 'mt.supportedTextFilters'); … … 2642 3000 } 2643 3001 2644 2645 /* mt.getTrackbackPings ...returns trackbacks sent to a given post */ 3002 /** 3003 * Retrieve trackbacks sent to a given post. 3004 * 3005 * @since 1.5.0 3006 * 3007 * @param array $args Method parameters. 3008 * @return mixed 3009 */ 2646 3010 function mt_getTrackbackPings($args) { 2647 3011 … … 2680 3044 } 2681 3045 2682 2683 /* mt.publishPost ...sets a post's publish status to 'publish' */ 3046 /** 3047 * Sets a post's publish status to 'publish'. 3048 * 3049 * @since 1.5.0 3050 * 3051 * @param array $args Method parameters. 3052 * @return int 3053 */ 2684 3054 function mt_publishPost($args) { 2685 3055 … … 2714 3084 } 2715 3085 2716 2717 2718 3086 /* PingBack functions 2719 3087 * specs on www.hixie.ch/specs/pingback/pingback 2720 3088 */ 2721 3089 2722 /* pingback.ping gets a pingback and registers it */ 3090 /** 3091 * Retrieves a pingback and registers it. 3092 * 3093 * @since 1.5.0 3094 * 3095 * @param array $args Method parameters. 3096 * @return array 3097 */ 2723 3098 function pingback_ping($args) { 2724 3099 global $wpdb; … … 2882 3257 } 2883 3258 2884 2885 /* pingback.extensions.getPingbacks returns an array of URLs 2886 that pingbacked the given URL 2887 specs on http://www.aquarionics.com/misc/archives/blogite/0198.html */ 3259 /** 3260 * Retrieve array of URLs that pingbacked the given URL. 3261 * 3262 * Specs on http://www.aquarionics.com/misc/archives/blogite/0198.html 3263 * 3264 * @since 1.5.0 3265 * 3266 * @param array $args Method parameters. 3267 * @return array 3268 */ 2888 3269 function pingback_extensions_getPingbacks($args) { 2889 3270 … … 2925 3306 } 2926 3307 2927 2928 3308 $wp_xmlrpc_server = new wp_xmlrpc_server(); 2929 3309
Note: See TracChangeset
for help on using the changeset viewer.