Changeset 56180 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 07/09/2023 09:46:24 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r56167 r56180 138 138 'metaWeblog.newMediaObject' => 'this:mw_newMediaObject', 139 139 140 // MetaWeblog API aliases for Blogger API. 141 // See http://www.xmlrpc.com/stories/storyReader$2460 140 /* 141 * MetaWeblog API aliases for Blogger API. 142 * See http://www.xmlrpc.com/stories/storyReader$2460 143 */ 142 144 'metaWeblog.deletePost' => 'this:blogger_deletePost', 143 145 'metaWeblog.getUsersBlogs' => 'this:blogger_getUsersBlogs', … … 3122 3124 do_action( 'xmlrpc_call', 'wp.deletePage', $args, $this ); 3123 3125 3124 // Get the current page based on the 'page_id' and 3125 // make sure it is a page and not a post. 3126 /* 3127 * Get the current page based on the 'page_id' and 3128 * make sure it is a page and not a post. 3129 */ 3126 3130 $actual_page = get_post( $page_id, ARRAY_A ); 3127 3131 if ( ! $actual_page || ( 'page' !== $actual_page['post_type'] ) ) { … … 3412 3416 } 3413 3417 3414 // If no slug was provided, make it empty 3415 // so that WordPress will generate one. 3418 /* 3419 * If no slug was provided, make it empty 3420 * so that WordPress will generate one. 3421 */ 3416 3422 if ( empty( $category['slug'] ) ) { 3417 3423 $category['slug'] = ''; 3418 3424 } 3419 3425 3420 // If no parent_id was provided, make it empty 3421 // so that it will be a top-level page (no parent). 3426 /* 3427 * If no parent_id was provided, make it empty 3428 * so that it will be a top-level page (no parent). 3429 */ 3422 3430 if ( ! isset( $category['parent_id'] ) ) { 3423 3431 $category['parent_id'] = ''; … … 5619 5627 $this->attach_uploads( $post_id, $post_content ); 5620 5628 5621 // Handle post formats if assigned, value is validated earlier 5622 // in this function. 5629 /* 5630 * Handle post formats if assigned, value is validated earlier 5631 * in this function. 5632 */ 5623 5633 if ( isset( $content_struct['wp_post_format'] ) ) { 5624 5634 set_post_format( $post_id, $content_struct['wp_post_format'] ); … … 6999 7009 } 7000 7010 7001 // We're going to use this fake tag to mark the context in a bit. 7002 // The marker is needed in case the link text appears more than once in the paragraph. 7011 /* 7012 * We're going to use this fake tag to mark the context in a bit. 7013 * The marker is needed in case the link text appears more than once in the paragraph. 7014 */ 7003 7015 $excerpt = preg_replace( '|\</?wpcontext\>|', '', $para ); 7004 7016
Note: See TracChangeset
for help on using the changeset viewer.