Changeset 5089 for trunk/xmlrpc.php
- Timestamp:
- 03/23/2007 02:05:29 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/xmlrpc.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r5087 r5089 513 513 ); 514 514 515 $cat_id = (int)wp_insert_category($new_category);515 $cat_id = wp_insert_category($new_category); 516 516 if(!$cat_id) { 517 517 return(new IXR_Error(500, "Sorry, the new category failed.")); … … 803 803 $post_data = compact('blog_ID', 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_category', 'post_status'); 804 804 805 $post_ID = (int)wp_insert_post($post_data);805 $post_ID = wp_insert_post($post_data); 806 806 807 807 if (!$post_ID) { … … 1031 1031 $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt', 'comment_status', 'ping_status', 'to_ping', 'post_type', 'post_name', 'post_password', 'post_parent', 'menu_order'); 1032 1032 1033 $post_ID = (int)wp_insert_post($postdata);1033 $post_ID = wp_insert_post($postdata); 1034 1034 1035 1035 if (!$post_ID) { … … 1448 1448 1449 1449 // Save the data 1450 $id = (int)wp_insert_attachment( $attachment, $upload[ 'file' ], $post_id );1450 $id = wp_insert_attachment( $attachment, $upload[ 'file' ], $post_id ); 1451 1451 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $upload['file'] ) ); 1452 1452 … … 1838 1838 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_content', 'comment_type'); 1839 1839 1840 $comment_ID = (int)wp_new_comment($commentdata);1840 $comment_ID = wp_new_comment($commentdata); 1841 1841 do_action('pingback_post', $comment_ID); 1842 1842 … … 1856 1856 $url = $args; 1857 1857 1858 $post_ID = (int)url_to_postid($url);1858 $post_ID = url_to_postid($url); 1859 1859 if (!$post_ID) { 1860 1860 // We aren't sure that the resource is available and/or pingback enabled
Note: See TracChangeset
for help on using the changeset viewer.