Changeset 6634
- Timestamp:
- 01/18/2008 07:52:15 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r6596 r6634 69 69 if ( isset($HTTP_RAW_POST_DATA) ) 70 70 logIO("I", $HTTP_RAW_POST_DATA); 71 72 71 73 72 class wp_xmlrpc_server extends IXR_Server { … … 664 663 set_current_user(0, $username); 665 664 if( !current_user_can( 'edit_posts' ) ) 666 return new IXR_Error( 401, __( 'Sorry, you must be able to publishto this blog in order to view categories.' ) );665 return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts to this blog in order to view categories.' ) ); 667 666 668 667 do_action('xmlrpc_call', 'wp.suggestCategories'); … … 697 696 } 698 697 698 do_action('xmlrpc_call', 'wp.getCommentCount'); 699 699 700 return get_comment_count( $post_id ); 700 701 } … … 717 718 } 718 719 720 do_action('xmlrpc_call', 'wp.getPostStatusList'); 721 719 722 return get_post_statuses( ); 720 723 } … … 736 739 return new IXR_Error( 403, __( 'You are not allowed acces to details about this blog.' ) ); 737 740 } 741 742 do_action('xmlrpc_call', 'wp.getPageStatusList'); 738 743 739 744 return get_page_statuses( ); … … 1897 1902 } 1898 1903 1904 do_action('xmlrpc_call', 'mt.getRecentPostTitles'); 1905 1899 1906 $posts_list = wp_get_recent_posts($num_posts); 1900 1907 … … 2049 2056 support per-post text filters yet */ 2050 2057 function mt_supportedTextFilters($args) { 2058 do_action('xmlrpc_call', 'mt.supportedTextFilters'); 2051 2059 return apply_filters('xmlrpc_text_filters', array()); 2052 2060 }
Note: See TracChangeset
for help on using the changeset viewer.