Changeset 21651 for trunk/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 08/28/2012 07:08:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r21597 r21651 1257 1257 do_action( 'xmlrpc_call', 'wp.deletePost' ); 1258 1258 1259 $post = wp_get_single_post( $post_id, ARRAY_A );1259 $post = get_post( $post_id, ARRAY_A ); 1260 1260 if ( empty( $post['ID'] ) ) 1261 1261 return new IXR_Error( 404, __( 'Invalid post ID.' ) ); … … 1287 1287 * and 'enclosure'. 1288 1288 * 1289 * @uses wp_get_single_post()1289 * @uses get_post() 1290 1290 * @param array $args Method parameters. Contains: 1291 1291 * - int $post_id … … 1338 1338 do_action( 'xmlrpc_call', 'wp.getPost' ); 1339 1339 1340 $post = wp_get_single_post( $post_id, ARRAY_A );1340 $post = get_post( $post_id, ARRAY_A ); 1341 1341 1342 1342 if ( empty( $post['ID'] ) ) … … 2061 2061 // Get the current page based on the page_id and 2062 2062 // make sure it is a page and not a post. 2063 $actual_page = wp_get_single_post($page_id, ARRAY_A);2063 $actual_page = get_post($page_id, ARRAY_A); 2064 2064 if ( !$actual_page || ($actual_page['post_type'] != 'page') ) 2065 2065 return(new IXR_Error(404, __('Sorry, no such page.'))); … … 2102 2102 2103 2103 // Get the page data and make sure it is a page. 2104 $actual_page = wp_get_single_post($page_id, ARRAY_A);2104 $actual_page = get_post($page_id, ARRAY_A); 2105 2105 if ( !$actual_page || ($actual_page['post_type'] != 'page') ) 2106 2106 return(new IXR_Error(404, __('Sorry, no such page.'))); … … 3297 3297 return $this->error; 3298 3298 3299 $post_data = wp_get_single_post($post_ID, ARRAY_A);3299 $post_data = get_post($post_ID, ARRAY_A); 3300 3300 if ( ! $post_data ) 3301 3301 return new IXR_Error( 404, __( 'Invalid post ID.' ) ); … … 3539 3539 do_action('xmlrpc_call', 'blogger.editPost'); 3540 3540 3541 $actual_post = wp_get_single_post($post_ID,ARRAY_A);3541 $actual_post = get_post($post_ID,ARRAY_A); 3542 3542 3543 3543 if ( !$actual_post || $actual_post['post_type'] != 'post' ) … … 3593 3593 do_action('xmlrpc_call', 'blogger.deletePost'); 3594 3594 3595 $actual_post = wp_get_single_post($post_ID,ARRAY_A);3595 $actual_post = get_post($post_ID,ARRAY_A); 3596 3596 3597 3597 if ( !$actual_post || $actual_post['post_type'] != 'post' ) … … 3983 3983 do_action('xmlrpc_call', 'metaWeblog.editPost'); 3984 3984 3985 $postdata = wp_get_single_post( $post_ID, ARRAY_A );3985 $postdata = get_post( $post_ID, ARRAY_A ); 3986 3986 3987 3987 // If there is no post data for the give post id, stop … … 4248 4248 return $this->error; 4249 4249 4250 $postdata = wp_get_single_post($post_ID, ARRAY_A);4250 $postdata = get_post($post_ID, ARRAY_A); 4251 4251 if ( ! $postdata ) 4252 4252 return new IXR_Error( 404, __( 'Invalid post ID.' ) ); … … 4828 4828 do_action('xmlrpc_call', 'mt.getTrackbackPings'); 4829 4829 4830 $actual_post = wp_get_single_post($post_ID, ARRAY_A);4830 $actual_post = get_post($post_ID, ARRAY_A); 4831 4831 4832 4832 if ( !$actual_post ) … … 4875 4875 do_action('xmlrpc_call', 'mt.publishPost'); 4876 4876 4877 $postdata = wp_get_single_post($post_ID, ARRAY_A);4877 $postdata = get_post($post_ID, ARRAY_A); 4878 4878 if ( ! $postdata ) 4879 4879 return new IXR_Error( 404, __( 'Invalid post ID.' ) ); … … 5089 5089 } 5090 5090 5091 $actual_post = wp_get_single_post($post_ID, ARRAY_A);5091 $actual_post = get_post($post_ID, ARRAY_A); 5092 5092 5093 5093 if ( !$actual_post ) {
Note: See TracChangeset
for help on using the changeset viewer.