Commit Graph

1381 Commits

Author SHA1 Message Date
Andrew Ozz afb0b8627b TinyMCE: improve hiding of the image/gallery popup buttons, fix selecting a gallery in IE, don't leave empty paragraph after deleting an image with the popup button, fixes #22463, see #21390
git-svn-id: https://develop.svn.wordpress.org/trunk@22857 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 01:31:51 +00:00
bumpbot f54c353123 Compress scripts/styles: 3.5-RC1-22852.
git-svn-id: https://develop.svn.wordpress.org/trunk@22852 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:58:43 +00:00
Ryan Boren 9e26663d18 Rename 'id' to 'state' in menu item view.
Props koopersmith
fixes #22594


git-svn-id: https://develop.svn.wordpress.org/trunk@22851 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:49:45 +00:00
Ryan Boren e12621eccb In wp.media.editor:send, revert back to the old field names used by media_upload_form_handler() for easier back compat.
Fix notices in wp_ajax_send_attachment_to_editor().

Props nacin, azaozz, miqrogroove
fixes #22553


git-svn-id: https://develop.svn.wordpress.org/trunk@22847 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:08:50 +00:00
bumpbot ff8e7a594d Compress scripts/styles: 3.5-RC1-22844.
git-svn-id: https://develop.svn.wordpress.org/trunk@22844 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 16:58:36 +00:00
Andrew Nacin a2eb48c7ab Media: When inserting an attachment, if the item is unattached (no post_parent), attach it to the post. fixes #22085.
git-svn-id: https://develop.svn.wordpress.org/trunk@22843 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 16:34:42 +00:00
Ryan Boren 1368fae5b6 Correctly access the nonce to save attachment fields. Fixes firing attachment_fields_to_save.
Props koopersmith
fixes #22577


git-svn-id: https://develop.svn.wordpress.org/trunk@22842 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 15:07:36 +00:00
Ryan Boren 65f7674216 Always render the attachment compat view. Assures attachment_fields_to_edit is always fired.
Props koopersmith, Chouby
fixes #22578


git-svn-id: https://develop.svn.wordpress.org/trunk@22841 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 15:05:14 +00:00
bumpbot 9dd670c47a Compress scripts/styles: 3.5-RC1-22839.
git-svn-id: https://develop.svn.wordpress.org/trunk@22839 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:47:40 +00:00
Andrew Nacin faca39f74c Media: Watch more events for input changes to catch paste, autocomplete, etc.
Fixes issue where pasting a URL in 'From URL' (via the context menu) did not
enable the insert button, as the event was not yet fired.

props koopersmith.
fixes #22545.



git-svn-id: https://develop.svn.wordpress.org/trunk@22836 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:35:28 +00:00
Andrew Nacin 9774c85abc Media: Include the link URL when inserting non-image attachments. props koopersmith. fixes #22544.
git-svn-id: https://develop.svn.wordpress.org/trunk@22835 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:33:30 +00:00
Daryl Koopersmith 978add32e3 jQuery UI 1.9.2. props ocean90. fixes #22563.
git-svn-id: https://develop.svn.wordpress.org/trunk@22833 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 01:20:40 +00:00
bumpbot eb3b795233 Compress scripts/styles: 3.5-beta3-22826.
git-svn-id: https://develop.svn.wordpress.org/trunk@22826 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:58:32 +00:00
Daryl Koopersmith f20573509b Media: Use a full uploader status view in the inline uploader. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22825 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:54:49 +00:00
Daryl Koopersmith 2070f5ca49 Media: Add uploader error detection to the inline uploader view as well. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22824 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:35:05 +00:00
Daryl Koopersmith e572052ab8 Media: Properly render any pre-existing upload errors in the uploader status. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22823 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:24:54 +00:00
Daryl Koopersmith 6841b73925 Uploader: Display a more specific error message when a file exceeds the file size limit. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22822 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 12:18:17 +00:00
Daryl Koopersmith 99def3ec51 Media: Make friends with media_upload_form. Adds notices for browser incompatibility, upload limits, maximum file size, and large file issues to the uploader. fixes #22243, see #22186, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22821 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 11:46:03 +00:00
bumpbot 0c83571904 Compress scripts/styles: 3.5-beta3-22819.
git-svn-id: https://develop.svn.wordpress.org/trunk@22820 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 10:58:36 +00:00
Daryl Koopersmith b007f89d0d Media: Display WordPress and plupload error messages whenever an upload fails. see #22243, #22186, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22818 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 10:56:10 +00:00
Daryl Koopersmith ff6ae18d2d Media: Add global upload progress to the sidebar. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22816 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:32:21 +00:00
bumpbot 555235adcf Compress scripts/styles: 3.5-beta3-22810.
git-svn-id: https://develop.svn.wordpress.org/trunk@22810 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 06:58:42 +00:00
Daryl Koopersmith 4a99fa363e Media: Move sidebar from the frame view to the attachment browser view. Prevents juggling sidebar visibility state, and makes managing sidebar contents more reasonable. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22809 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 06:30:25 +00:00
bumpbot 6f9025dbf5 Compress scripts/styles: 3.5-beta3-22808.
git-svn-id: https://develop.svn.wordpress.org/trunk@22808 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 04:58:35 +00:00
Daryl Koopersmith 0086598c9b Media: Check to see if we need more attachments when the browser is attached to the DOM. fixes #22480, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22806 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 03:19:08 +00:00
bumpbot 0b59477b3a Compress scripts/styles: 3.5-beta3-22805.
git-svn-id: https://develop.svn.wordpress.org/trunk@22805 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 02:58:33 +00:00
Daryl Koopersmith d4be102ab2 Media: Convert the attachments browser to use internal views. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22804 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 01:43:31 +00:00
bumpbot a18c3758ce Compress scripts/styles: 3.5-beta3-22803.
git-svn-id: https://develop.svn.wordpress.org/trunk@22803 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 00:58:36 +00:00
Daryl Koopersmith 02bd60e532 Media: Make priority list views leverage the subview management class. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22802 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 00:41:39 +00:00
bumpbot 54ae64c4b1 Compress scripts/styles: 3.5-beta3-22801.
git-svn-id: https://develop.svn.wordpress.org/trunk@22801 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:58:36 +00:00
Jon Cave 749d5a3db7 Set svn:eol-style to native for all the files
(Except wp-config-sample.php and a couple of license files)


git-svn-id: https://develop.svn.wordpress.org/trunk@22798 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:31:55 +00:00
Jon Cave d125854d6b Remove svn:executable property from SimplePie and jcrop files
git-svn-id: https://develop.svn.wordpress.org/trunk@22797 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:18:48 +00:00
Andrew Nacin 2b0d2a17fb 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: https://develop.svn.wordpress.org/trunk@22794 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 21:04:04 +00:00
bumpbot 94386517ce Compress scripts/styles: 3.5-beta3-22793.
git-svn-id: https://develop.svn.wordpress.org/trunk@22793 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 21:03:21 +00:00
Daryl Koopersmith 95ed1b1a45 Media: Rename PriorityList's add/remove methods to set/unset (to prevent the default remove from being overridden). see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22792 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:43:42 +00:00
Daryl Koopersmith e99789f504 Media: Refresh the window-wide uploader whenever a state is activated. Properly unbind controller events. fixes #22504, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22791 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:34:46 +00:00
Daryl Koopersmith bf42e8a402 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: https://develop.svn.wordpress.org/trunk@22790 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:27:49 +00:00
Daryl Koopersmith 8be5a507aa Uploader: Route plupload errors to the correct handler and prevent naming conflicts. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22789 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:17:25 +00:00
Daryl Koopersmith afa98fa041 Uploader: Correctly trigger error callback. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22788 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 20:12:02 +00:00
Daryl Koopersmith 6423fba2c4 Media: Make inline uploader use main dispose method. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22787 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 19:54:06 +00:00
Daryl Koopersmith 45f6cf2fb5 Media: Remove unused variable for state attributes. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22786 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 19:21:08 +00:00
Daryl Koopersmith 8d49ec29d0 Media: Make the upload state a dedicated screen, instead of including its own library view. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22781 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:29:53 +00:00
Daryl Koopersmith f8bf1ebec7 Media: Use a more specific class for toolbar buttons. see #22284, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22779 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 17:50:02 +00:00
Daryl Koopersmith fb99782dcd 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: https://develop.svn.wordpress.org/trunk@22774 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 17:01:40 +00:00
Daryl Koopersmith 815ad62697 Media: Remove unused link-formatting function from media-editor.js. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22773 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:50:58 +00:00
Daryl Koopersmith 682afd8c19 Media: Remove dead thickbox code from media-editor.js. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22772 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:50:13 +00:00
Daryl Koopersmith 8ce1f39c6c 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: https://develop.svn.wordpress.org/trunk@22770 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:46:32 +00:00
bumpbot fe20fc8ccc Compress scripts/styles: 3.5-beta3-22763.
git-svn-id: https://develop.svn.wordpress.org/trunk@22763 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:58:31 +00:00
Daryl Koopersmith 5432b5a3f6 Media: Calculate image width and height when embedding images. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22762 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:32:52 +00:00
Daryl Koopersmith 663dd97aa8 Customizer: Track the link that was used to open the customizer and restore focus on close. props lessbloat. fixes #21283.
git-svn-id: https://develop.svn.wordpress.org/trunk@22756 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:17:10 +00:00