Andrew Nacin
a962e6f58b
Autosave: Properly convert undefined fields to empty strings. This bug could cause issues if a post type didn't support the title and/or editor. see #22491 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 21:04:04 +00:00
Bot (Assets)
f328a74f77
Compress scripts/styles: 3.5-beta3-22793.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 21:03:21 +00:00
Daryl Koopersmith
4aa6a83d47
Media: Rename PriorityList's add/remove methods to set/unset (to prevent the default remove from being overridden). see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 20:43:42 +00:00
Daryl Koopersmith
452c486d5f
Media: Refresh the window-wide uploader whenever a state is activated. Properly unbind controller events. fixes #22504 , see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 20:34:46 +00:00
Daryl Koopersmith
1923278143
Media: Make the window-wide uploader a subview of the frame view.
...
Allows the uploader to leverage the ready event to know when it has been attached to the page.
see #21390 .
git-svn-id: http://core.svn.wordpress.org/trunk@22790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 20:27:49 +00:00
Daryl Koopersmith
095093e390
Uploader: Route plupload errors to the correct handler and prevent naming conflicts. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 20:17:25 +00:00
Daryl Koopersmith
46020c6dd0
Uploader: Correctly trigger error callback. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 20:12:02 +00:00
Daryl Koopersmith
1480429ec0
Media: Make inline uploader use main dispose method. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 19:54:06 +00:00
Daryl Koopersmith
f8630d2be3
Media: Remove unused variable for state attributes. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 19:21:08 +00:00
Andrew Nacin
c1467fb68d
Revert [22767] and fix icon alignment issues in the sprites themselves. props lessbloat. fixes #22527 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 19:17:01 +00:00
Andrew Nacin
5da775fe3b
WP_Theme: If the parent theme is missing, instantiate a WP_Theme object anyway, so it can hold errors.
...
Fixes the installation of parent themes when installing a child theme from WordPress.org.
see #22515 .
git-svn-id: http://core.svn.wordpress.org/trunk@22784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 18:58:19 +00:00
Andrew Nacin
55a6c62e76
Support attachment_fields_to_save and attachment_fields_to_edit for attachments going through post.php. see #22186 . see #21391 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 18:53:00 +00:00
Daryl Koopersmith
6815f4bfef
Media: Normalize font sizes, link colors, and other styles. props lessbloat, see #22284 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 18:37:52 +00:00
Daryl Koopersmith
b5335a5d24
Media: Make the upload state a dedicated screen, instead of including its own library view. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 18:29:53 +00:00
Daryl Koopersmith
5ee8582b7a
Media: Add base form element CSS. props lessbloat. see #22284 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 18:00:18 +00:00
Daryl Koopersmith
7de56d32db
Media: Use a more specific class for toolbar buttons. see #22284 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 17:50:02 +00:00
Andrew Nacin
dfb844b64b
Remove legacy media uploader bits from custom-header.php and custom-background.php. see #22186 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 17:44:49 +00:00
Andrew Nacin
f26102a248
Redirect post-new.php?post_type=attachment to media-new.php. see #22491 , #22083 , #21391 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 17:40:53 +00:00
Daryl Koopersmith
c27d5dab73
Media: Make media views dependent on jQuery UI sortable. see #22284 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 17:28:14 +00:00
Daryl Koopersmith
fa0ca48a50
Make jQuery a Backbone dependency. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 17:22:13 +00:00
Daryl Koopersmith
1ba7bea0a0
Media: Move send_to_editor to wp.media.editor.insert to prevent redeclaration.
...
Maintains backwards compatibility by delegating to window.send_to_editor and window.tb_remove if they exist.
see #21390 .
git-svn-id: http://core.svn.wordpress.org/trunk@22774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 17:01:40 +00:00
Daryl Koopersmith
bc66935dc6
Media: Remove unused link-formatting function from media-editor.js. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 16:50:58 +00:00
Daryl Koopersmith
c95bd0198a
Media: Remove dead thickbox code from media-editor.js. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 16:50:13 +00:00
Daryl Koopersmith
9090f73af9
Media: The media views CSS depends on the button styles. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 16:47:55 +00:00
Daryl Koopersmith
cfdea9673b
Media: Move the new sections of media-upload.js to media-editor.js to allow the media modal to be used on the front end and prevent dependency conflicts with older themes and plugins. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 16:46:32 +00:00
Peter Westwood
ecbbb81587
Posting: Improve the capability checking _wp_translate_postdata() when updating posts.
...
* Use the specific post_type's 'edit_post' cap
* Pass the ID of the post being edited.
Fixes #22417
git-svn-id: http://core.svn.wordpress.org/trunk@22769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 16:34:57 +00:00
Daryl Koopersmith
bfc8690006
Media: Backwards compatibility for the many send_to_editor filters. props nacin. see #22186 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 16:02:20 +00:00
Andrew Nacin
f1752a5568
Move the admin menu icons up one pixel, to restore their 3.4 positioning. props lessbloat. fixes #22527 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 15:37:43 +00:00
Andrew Nacin
fd191b3228
Re-align the TinyMCE HiDPI icons. props lessbloat. fixes #22528 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 15:34:24 +00:00
Andrew Nacin
9b54e5c380
Have the media modal direct users to media-new.php for the browser uploader. fixes #22444 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 15:30:48 +00:00
Andrew Nacin
229a919b27
media-new.php: Remove unused scripts, strings, error handling, save handling, and save button. fixes #22083 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 15:10:17 +00:00
Bot (Assets)
852d90b3d6
Compress scripts/styles: 3.5-beta3-22763.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 14:58:31 +00:00
Daryl Koopersmith
5cecff80b8
Media: Calculate image width and height when embedding images. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 14:32:52 +00:00
Daryl Koopersmith
e0ebe09802
Media: Backwards compatibility for the disable_captions filter. see #22186 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 14:27:22 +00:00
Daryl Koopersmith
4d01db3f0a
Media: Use the wp.media.string functions when generating embed strings. Embed captions now work. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 14:20:01 +00:00
Andrew Nacin
75c464671d
Revert accidental changes to admin/includes/media.php in [22755]. see #22083 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 14:04:24 +00:00
Daryl Koopersmith
c901a4825e
Media: Make the attachment object optional when using the wp.media.string methods. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 13:53:15 +00:00
Andrew Nacin
1935e74233
Properly nest the if tag. props helenyhou. see #21391 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 13:32:26 +00:00
Daryl Koopersmith
7a4b96d78f
Customizer: Track the link that was used to open the customizer and restore focus on close. props lessbloat. fixes #21283 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 13:17:10 +00:00
Andrew Nacin
e276fc44be
Have media-new.php return simple rows of basic attachment data, with an 'Edit' link next to each taking them to post.php (in a new window). Not ideal, but this is largely a fallback screen at this point.
...
This is bolted on to existing code, the vast majority of which is destined to be ripped out in 3.6 once things settle.
see #22083 .
git-svn-id: http://core.svn.wordpress.org/trunk@22755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 13:05:44 +00:00
Bot (Assets)
68e4e2c4a6
Compress scripts/styles: 3.5-beta3-22754.
...
git-svn-id: http://core.svn.wordpress.org/trunk@22754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 12:58:33 +00:00
Daryl Koopersmith
1a3e06ddd5
Media: Ensure Attachments.mirror returns true. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 12:53:02 +00:00
Andrew Nacin
07a0349e2c
Remove cruft from media-new.php. No need to keep extra parameters around (including post ID, which is always 0 here). see #22083 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 12:27:12 +00:00
Andrew Nacin
f6b9a928e5
Split media-new.php and media-upload.php into distinct files.
...
* media-new.php will remain the entry point for uploading isolated files, and for using the browser-based uploader (versus Plupload).
* media-upload.php is the legacy (pre-3.5) media uploader.
see #22083 .
git-svn-id: http://core.svn.wordpress.org/trunk@22751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 12:19:40 +00:00
Daryl Koopersmith
5e39581c13
Media: Remove redundant code.
...
Make the composite gallery library use `mirror` instead of `observe`, as one method now invokes the other. Also, make `mirror` return the attachment collection for chaining.
see #21390 .
git-svn-id: http://core.svn.wordpress.org/trunk@22750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 12:11:38 +00:00
Andrew Nacin
96576a2dca
Properly refresh the thumbnail on post.php after an image edit. props ocean90. see #21391 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 12:05:24 +00:00
Andrew Nacin
9ad10730c0
Non-images don't have alternative text. props helenyhou. see #21391 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 12:03:35 +00:00
Andrew Nacin
8f3a9e1907
Stop inserting title attributes for images inserted into the editor by modifying get_image_send_to_editor(), not the generic get_image_tag().
...
see #18984 , [22409].
git-svn-id: http://core.svn.wordpress.org/trunk@22747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 11:50:30 +00:00
Daryl Koopersmith
ff1707892d
Media: Make mirroring a collection of attachments a special case of observing a collection of attachments. see #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 11:35:30 +00:00
Daryl Koopersmith
ff482e86fb
Media: Add filters for image-only libraries. see #22514 , #21390 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-21 11:04:23 +00:00