Changeset 4526 for trunk/xmlrpc.php
- Timestamp:
- 11/24/2006 04:39:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r4495 r4526 834 834 } 835 835 836 if ( $upload_err = apply_filters( "pre_upload_error", false ) ) 837 return new IXR_Error(500, $upload_err); 838 836 839 $upload = wp_upload_bits($name, $type, $bits); 837 840 if ( ! empty($upload['error']) ) { … … 839 842 return new IXR_Error(500, 'Could not write file '.$name); 840 843 } 841 842 return array('url' => $upload['url']); 844 return apply_filters( 'wp_handle_upload', array( 'file' => $name, 'url' => $upload[ 'url' ], 'type' => $type ) ); 843 845 } 844 846 … … 1216 1218 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_content', 'comment_type'); 1217 1219 1218 wp_new_comment($commentdata);1219 do_action('pingback_post', $ wpdb->insert_id);1220 $comment_ID = wp_new_comment($commentdata); 1221 do_action('pingback_post', $comment_ID); 1220 1222 1221 1223 return "Pingback from $pagelinkedfrom to $pagelinkedto registered. Keep the web talking! :-)";
Note: See TracChangeset
for help on using the changeset viewer.