Changeset 34579
- Timestamp:
- 09/26/2015 05:14:08 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r34578 r34579 907 907 'description' => $media_item->post_content, 908 908 'metadata' => wp_get_attachment_metadata( $media_item->ID ), 909 'type' => $media_item->post_mime_type 909 910 ); 910 911 … … 5771 5772 do_action( 'xmlrpc_call_success_mw_newMediaObject', $id, $args ); 5772 5773 5773 $struct = array(5774 'id' => strval( $id ), 5775 'file' => $name,5776 'url' => $upload[ 'url' ],5777 'type' => $upload[ 'type' ]5778 );5774 $struct = $this->_prepare_media_item( get_post( $id ) ); 5775 5776 // Deprecated values 5777 $struct['id'] = $struct['attachment_id']; 5778 $struct['file'] = $struct['title']; 5779 $struct['url'] = $struct['link']; 5779 5780 5780 5781 return $struct;
Note: See TracChangeset
for help on using the changeset viewer.