[wp-trac] [WordPress Trac] #21085: mw_newMediaObject needs more functionality
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 26 22:53:24 UTC 2012
#21085: mw_newMediaObject needs more functionality
--------------------------+------------------
Reporter: markoheijnen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: XML-RPC | Version: 2.3
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------
Changes (by maxcutler):
* cc: maxcutler (added)
Comment:
I worry that it will be difficult to add new features and fix all of these
issues without breaking existing clients. Media uploading is already a
problematic area for many clients, and trying to patch
wp.uploadFile/mw.newMediaObject without breaking things is likely not
worth the effort.
Instead, I propose that we add a new method for creating and editing
media/attachments that is better aligned with modern core functionality:
* Create a new `wp.newMediaItem` method for uploading files.
* Create a new `wp.editMediaItem` method for editing existing media files.
* Create a `wp.getMediaItems` alias for the existing `wp.getMediaLibrary`
method.
* Deprecate `wp.uploadFile` and `mw.newMediaObject` (though all of `mw.*`,
`mt.*` and `blogger.*` should be deprecated).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21085#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list