Commit Graph

11204 Commits

Author SHA1 Message Date
Andrew Nacin 86a0b9ad45 Media: Prevent the compat view from wrapping around the attachment details. Allow the filename to break-word. props koopersmith, SergeyBiryukov. fixes #22667.
git-svn-id: https://develop.svn.wordpress.org/trunk@22983 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 04:15:32 +00:00
Andrew Nacin f88b538001 Bring Featured Images back into the main media dialog.
Most users don't realize that the Featured Image meta box exists; if they do, few use it.

Restores the old meta box UI, including the admin_post_thumbnail_html filter. If a plugin is using _wp_post_thumbnail_html() in conjunction with Thickbox elsewhere, it will also magically still work.

Specific underlying changes:
 * Converts the modal view to use the view manager, which means that a call to open() will automatically call render and attach if necessary.
 * Doesn't automatically set a state in wp.media, to allow code to customize the states to be added before activation.

props koopersmith.
fixes #21776.



git-svn-id: https://develop.svn.wordpress.org/trunk@22979 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 02:38:10 +00:00
Daryl Koopersmith 8a6d1c5b89 Prevent small thumbnails from being upscaled. props helenyhou. fixes #22681.
git-svn-id: https://develop.svn.wordpress.org/trunk@22978 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 00:42:26 +00:00
Andrew Nacin 8cd2af059b Media templates: Make sure we have a width and height before printing dimensions. We don't calculate dimensions for icons. fixes #22680.
git-svn-id: https://develop.svn.wordpress.org/trunk@22976 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 21:53:45 +00:00
bumpbot 30066d6553 Compress scripts/styles: 3.5-RC2-22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@22975 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 19:49:31 +00:00
Andrew Nacin a83710408f `wp.media` instead of just `media`. props alexkingorg, see #22676.
git-svn-id: https://develop.svn.wordpress.org/trunk@22974 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 19:24:22 +00:00
bumpbot 23f78b14df Compress scripts/styles: 3.5-RC2-22973.
git-svn-id: https://develop.svn.wordpress.org/trunk@22973 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:57:38 +00:00
Andrew Nacin 5c611cde9d Use wp.media, not media, in media-editor.js. see #22676.
git-svn-id: https://develop.svn.wordpress.org/trunk@22972 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:55:58 +00:00
bumpbot dff51dff56 Compress scripts/styles: 3.5-RC2-22971.
git-svn-id: https://develop.svn.wordpress.org/trunk@22971 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:50:10 +00:00
Andrew Nacin f2b9e1a090 SimplePie: Return nothing and throw an error in SimplePie_Sanitize when DOMDocument is disabled.
Note that when SimplePie is used through the WordPress fetch_feed() function, we use kses rather than SimplePie_Sanitize, which removes the dependency on DOMDocument. This change is only for plugins using SimplePie directly.

props rmccue. fixes #21990.



git-svn-id: https://develop.svn.wordpress.org/trunk@22970 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:43:12 +00:00
Andrew Nacin 1839a359b9 Add wp_enqueue_media action to the function of the same name. props koopersmith, fixes #22678.
git-svn-id: https://develop.svn.wordpress.org/trunk@22969 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:33:20 +00:00
Andrew Nacin 7d0efc4012 Avoid leaking the 'media' var into the global JS namespace. props koopersmith, fixes #22676.
git-svn-id: https://develop.svn.wordpress.org/trunk@22968 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:32:47 +00:00
Andrew Nacin d8e714d6e3 Allow the 'Uploaded to this post' view to be sorted, saving the resulting order as menu_order.
This functionality is designed to be backwards compatible with manual querying for attachments by menu_order.

props koopersmith.
see #22607.



git-svn-id: https://develop.svn.wordpress.org/trunk@22967 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:06:31 +00:00
bumpbot 976342549d Compress scripts/styles: 3.5-RC2-22966.
git-svn-id: https://develop.svn.wordpress.org/trunk@22966 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 04:35:23 +00:00
Ryan Boren 14bd848ee5 In the media modal, show the Link To: url.
Props nacin
fixes #22662


git-svn-id: https://develop.svn.wordpress.org/trunk@22965 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 00:43:08 +00:00
bumpbot 5a1ca22cca Compress scripts/styles: 3.5-RC2-22961.
git-svn-id: https://develop.svn.wordpress.org/trunk@22961 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 02:56:11 +00:00
Ryan Boren f9b0b72ffc Responsive and RTL css improvements or the media modal.
Props ocean90, koopersmith
see #22615


git-svn-id: https://develop.svn.wordpress.org/trunk@22960 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 02:53:53 +00:00
Andrew Nacin 229c5c9be3 Media: Add -webkit-overflow-scrolling for a smoother mobile/iOS experience.
props koopersmith.
fixes #22657.



git-svn-id: https://develop.svn.wordpress.org/trunk@22959 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 01:44:15 +00:00
bumpbot ce238d39ef Compress scripts/styles: 3.5-RC2-22958.
git-svn-id: https://develop.svn.wordpress.org/trunk@22958 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 17:41:19 +00:00
Ryan Boren 0996e3d153 Resolve race conditions in Attachments.more().
Props koopersmith
fixes #22656


git-svn-id: https://develop.svn.wordpress.org/trunk@22957 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 16:45:43 +00:00
Ryan Boren 303f2bd2ff Resolve race conditions in Attachments.more(). Provides for smoother refreshes when searching and properly cleans out content components.
Props koopersmith
fixes #22656


git-svn-id: https://develop.svn.wordpress.org/trunk@22956 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 16:41:38 +00:00
bumpbot b80e435481 Compress scripts/styles: 3.5-RC2-22955.
git-svn-id: https://develop.svn.wordpress.org/trunk@22955 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:54:16 +00:00
Ryan Boren 780c0ec85b Properly pass WordPress uploading errors to wp.Uploader.
Props koopersmith
fixes #22655


git-svn-id: https://develop.svn.wordpress.org/trunk@22954 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:40:09 +00:00
bumpbot 98d7fb5e28 Compress scripts/styles: 3.5-RC2-22953. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22953 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:20:51 +00:00
Ryan Boren 06b9663f58 Refine media state machine methods.
* state( id ) becomes setState( id )
* get( id ) becomes state( id )
* state() stays the same
* previous() becomes lastState()

Props koopersmith
fixes #22652


git-svn-id: https://develop.svn.wordpress.org/trunk@22952 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:19:11 +00:00
Ryan Boren d7ec10376b Update the "Uploaded to this post" filter view when uploading new files.
* Add an Attachments collection filter for uploadedTo (post_parent).
* Correct an erroneous map from the non-existent parent prop to post_parent.
* Define default menuOrder and uploadedTo props for uploading attachments.
* Unify filterable props into a single method (improving validation performance for calls to set with multiple properties).

Props koopersmith
fixes #22654


git-svn-id: https://develop.svn.wordpress.org/trunk@22951 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:11:44 +00:00
bumpbot 74f9eabbd0 Compress scripts/styles: 3.5-RC2-22949.
git-svn-id: https://develop.svn.wordpress.org/trunk@22949 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:52:16 +00:00
Ryan Boren c53137f535 Scope button classes so they can be used on the frontend without interfering with theme styles.
Props helenyhou, koopersmith
fixes #22644


git-svn-id: https://develop.svn.wordpress.org/trunk@22948 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:40:59 +00:00
Ryan Boren 5178ac86cb RTL fixes for media and color picker.
Props ocean90
see #22453


git-svn-id: https://develop.svn.wordpress.org/trunk@22947 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:34:16 +00:00
Andrew Nacin be096cf4a5 Pressing escape now closes the media modal. props koopersmith, see #22502.
git-svn-id: https://develop.svn.wordpress.org/trunk@22946 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 08:37:17 +00:00
Ryan Boren 17622c2daa Improve switching between browser and upload state.
Props koopersmith
fixes #22628


git-svn-id: https://develop.svn.wordpress.org/trunk@22945 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 06:01:47 +00:00
bumpbot 020dfbc71a Compress scripts/styles: 3.5-RC2-22944.
git-svn-id: https://develop.svn.wordpress.org/trunk@22944 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 05:39:13 +00:00
Ryan Boren 870250e617 Correctly insert images at caret position in IE8/7.
Props lessbloat
fixes #22638


git-svn-id: https://develop.svn.wordpress.org/trunk@22943 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 04:54:09 +00:00
Ryan Boren e746a5dbb5 In the edit image modal, move Title to the advanced section and move Caption above Alt.
Props nacin
fixes #22646


git-svn-id: https://develop.svn.wordpress.org/trunk@22942 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 04:09:17 +00:00
Ryan Boren d34177f831 Remove focus outline from admin bar elements.
Props azaozz, lessbloat, dllh
fixes #22643


git-svn-id: https://develop.svn.wordpress.org/trunk@22941 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 02:29:36 +00:00
Ryan Boren 405868616c ImageOptim for uplaoder icons. see #22610
git-svn-id: https://develop.svn.wordpress.org/trunk@22940 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 02:18:07 +00:00
Ryan Boren b44ab8213f Fix image alignment of the remove (X) icons in the media modal.
Props JerrySarcastic
fixes #22610


git-svn-id: https://develop.svn.wordpress.org/trunk@22939 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 02:17:14 +00:00
Ryan Boren 6b972a4c53 In the media modal, ensure modal events are always fired on its frame. This ensures restoreThickbox() and thus tbRemove() are called properly when clicking the close button of the modal.
Props koopersmith
fixes #22632


git-svn-id: https://develop.svn.wordpress.org/trunk@22938 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 01:55:37 +00:00
Ryan Boren 3c145e0d49 In the add media modal, fallback back to caption if alt is not set. Falback to title if neither caption nor alt are set.
Props koopersmith
see #18984


git-svn-id: https://develop.svn.wordpress.org/trunk@22937 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 01:38:41 +00:00
Ryan Boren cdce6a366e Introduce API to add back the description field in the new media popup.
Props nacin
fixes #22642


git-svn-id: https://develop.svn.wordpress.org/trunk@22929 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 23:52:30 +00:00
bumpbot a792f59b19 Compress scripts/styles: 3.5-RC2-22928.
git-svn-id: https://develop.svn.wordpress.org/trunk@22928 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 22:09:26 +00:00
Andrew Nacin 5c0e068d3f Send the alt attribute when sending attachments to the editor. fixes #22640.
git-svn-id: https://develop.svn.wordpress.org/trunk@22927 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 21:23:55 +00:00
Andrew Nacin 4a91b43ab2 3.5-RC2.
git-svn-id: https://develop.svn.wordpress.org/trunk@22926 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 19:31:56 +00:00
bumpbot 990f02a136 Compress scripts/styles: 3.5-RC1-22924.
git-svn-id: https://develop.svn.wordpress.org/trunk@22924 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 17:00:38 +00:00
Ryan Boren 6fbf7fcfbf Revert accidental bits from r22919. see #22628
git-svn-id: https://develop.svn.wordpress.org/trunk@22923 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:58:08 +00:00
bumpbot 972a3b7e43 Compress scripts/styles: 3.5-RC1-22922.
git-svn-id: https://develop.svn.wordpress.org/trunk@22922 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:17:06 +00:00
Ryan Boren a26c25a8bc Map the create_posts post type cap to upload_files for attachments.
Props nacin
fixes #16714


git-svn-id: https://develop.svn.wordpress.org/trunk@22921 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:14:07 +00:00
Ryan Boren 49b230b82a Icons for select, deselect, and window close in the media modal.
Props JerrySarcastic, helenyhou, ocean90, lessbloat
fixes #22610


git-svn-id: https://develop.svn.wordpress.org/trunk@22920 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 14:36:12 +00:00
Ryan Boren 3ad110f078 Icons for select, deselect, and window close in the media modal.
Props JerrySarcastic, helenyhou, ocean90, lessbloat
fixes #22610


git-svn-id: https://develop.svn.wordpress.org/trunk@22919 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 13:33:57 +00:00
Andrew Nacin 3861f2bd9e Update TinyMCE Spellchecker plugin to 2.0.6.1.
git-svn-id: https://develop.svn.wordpress.org/trunk@22917 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 02:45:16 +00:00
Andrew Nacin caa083d2b4 Remove XML-RPC's blogger::getTemplate and setTemplate. They are not supported and do nothing.
git-svn-id: https://develop.svn.wordpress.org/trunk@22914 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 02:35:39 +00:00
bumpbot de104a1ea6 Compress scripts/styles: 3.5-RC1-22913.
git-svn-id: https://develop.svn.wordpress.org/trunk@22913 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 01:37:15 +00:00
Ryan Boren 5c04a9daef In the gallery editor, don't stomp on custom shortcode attributes.
Props koopersmith
fixes #22627


git-svn-id: https://develop.svn.wordpress.org/trunk@22912 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 01:06:21 +00:00
Ryan Boren c8abb2071b In wp_list_bookmarks(), don't stomp the categorize argument. Fixes categorized display in the links widget.
fixes #22216


git-svn-id: https://develop.svn.wordpress.org/trunk@22910 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 23:19:03 +00:00
bumpbot 0e62b927c3 Compress scripts/styles: 3.5-RC1-22909.
git-svn-id: https://develop.svn.wordpress.org/trunk@22909 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:58:34 +00:00
Andrew Nacin 5aac5cb3de Use the create_posts post type cap in more places. Remove the janky create_posts meta cap. see #16714.
git-svn-id: https://develop.svn.wordpress.org/trunk@22908 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:28:20 +00:00
Ryan Boren 4e51b43ad3 Media modal: Don't fire two AJAX calls on settings update.
Props koopersmith
fixes #22611


git-svn-id: https://develop.svn.wordpress.org/trunk@22907 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:27:13 +00:00
Andrew Ozz f2c4ad72d6 Media in Internet Explorer: ensure we save the caret bookmark for IE in TinyMCE for the right instance, fixes #22446
git-svn-id: https://develop.svn.wordpress.org/trunk@22905 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 21:45:10 +00:00
Andrew Nacin c121dfb0fc Explicitly check for version 2.2.0 or higher of the Imagick PHP module, to ensure we can call queryFormats() statically. props DH-Shredder, fixes #22308.
git-svn-id: https://develop.svn.wordpress.org/trunk@22904 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 21:41:44 +00:00
Ryan Boren bb1760e226 Route uploads through async-upload.php instead of admin-ajax.php.
Props nacin, koopersmith
fixes #22622


git-svn-id: https://develop.svn.wordpress.org/trunk@22902 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 20:17:57 +00:00
bumpbot 8925a2cf34 Compress scripts/styles: 3.5-RC1-22901.
git-svn-id: https://develop.svn.wordpress.org/trunk@22901 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 18:58:34 +00:00
Andrew Nacin b60b857268 Use create_posts whenever linking to post-new.php. props johnbillion. fixes #16714.
git-svn-id: https://develop.svn.wordpress.org/trunk@22900 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 18:24:11 +00:00
Andrew Nacin 2520705252 Media: Rename the dialog to 'Add Media' from 'Insert Media' to match the button. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22895 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 17:18:50 +00:00
Andrew Nacin d6f636d353 Some IE7 CSS hacks for media to fix the gallery view. props lessbloat. fixes #22609.
git-svn-id: https://develop.svn.wordpress.org/trunk@22894 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 17:17:43 +00:00
bumpbot e1b8f42f4d Compress scripts/styles: 3.5-RC1-22893.
git-svn-id: https://develop.svn.wordpress.org/trunk@22893 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 04:58:34 +00:00
Andrew Nacin af63ca6803 Check if the object is empty, as objects are always truthy. props koopersmith. see #22593.
git-svn-id: https://develop.svn.wordpress.org/trunk@22892 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 04:41:24 +00:00
Andrew Nacin 82622db77e In the gallery shortcode, handle mapping of "ids" to include and orderby before the post_gallery filter. see #21816. fixes #22617.
git-svn-id: https://develop.svn.wordpress.org/trunk@22891 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 03:51:27 +00:00
bumpbot 19e522e83b Compress scripts/styles: 3.5-RC1-22890.
git-svn-id: https://develop.svn.wordpress.org/trunk@22890 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 02:33:43 +00:00
Andrew Nacin 0cebbfe3e6 Media: Remove the link to the browser uploader. The only need for it is large files (> 100MB) in certain browsers (IE, Opera), so we will show the link then only. fixes #22604.
git-svn-id: https://develop.svn.wordpress.org/trunk@22889 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 02:28:10 +00:00
Andrew Nacin 99845d0384 Ensure attachment modal details are saved before the attachment details view is destroyed. props koopersmith. fixes #22593.
git-svn-id: https://develop.svn.wordpress.org/trunk@22888 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 02:03:31 +00:00
Daryl Koopersmith 2422ab4b83 Responsive CSS for the media modal. props azaozz. see #22615, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22887 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 01:51:15 +00:00
Ryan Boren c5c74b7a39 Scope media views CSS fallbacks.
Props koopersmith
fixes #22616


git-svn-id: https://develop.svn.wordpress.org/trunk@22886 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 01:45:06 +00:00
bumpbot a5d63fdb91 Compress scripts/styles: 3.5-RC1-22885. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22885 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 00:58:44 +00:00
Andrew Nacin 6b911fa633 wp_print_media_templates() does not take an argument.
git-svn-id: https://develop.svn.wordpress.org/trunk@22884 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:50:26 +00:00
Andrew Nacin 92e85f9957 Editor: When hiding gallery/image editing buttons, use Sizzle rather than TinyMCE's internal DOM object. Avoids errors in case the elements do not exist, such as in Press This. props azaozz. fixes #22463.
git-svn-id: https://develop.svn.wordpress.org/trunk@22883 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:36:07 +00:00
Andrew Nacin da9ff4451d When editing a plain, legacy [gallery] shortcode, ensure we are sorting its contents using menu_order.
When attachments are sorted, we convert the shortcode to [gallery ids=""], as before.

props koopersmith.
fixes #22608.



git-svn-id: https://develop.svn.wordpress.org/trunk@22882 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:20:12 +00:00
Andrew Nacin 7ecac8a876 Media: Ensure the edit image and gallery buttons appear above DFW. They only must appear below the media modal. fixes #22541. props koopersmith.
git-svn-id: https://develop.svn.wordpress.org/trunk@22881 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:07:41 +00:00
bumpbot 8d72af5bfc Compress scripts/styles: 3.5-RC1-22879. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22879 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 20:58:37 +00:00
Ryan Boren bf812ac283 Clear the object term relationships cache in wp_set_object_terms() rather than wp_set_post_terms(). This should be done lower in the stack than wp_set_post_terms().
Props batmoo
fixes #22560


git-svn-id: https://develop.svn.wordpress.org/trunk@22878 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:42:38 +00:00
Andrew Nacin bccdaa137d Media in Internet Explorer: Properly insert attachments into the editor at the location of the cursor. props azaozz. fixes #22446.
git-svn-id: https://develop.svn.wordpress.org/trunk@22877 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:24:56 +00:00
Andrew Nacin 3b941ca1b8 Media: IE fixes for attachment selections. props lessbloat. see #22446.
git-svn-id: https://develop.svn.wordpress.org/trunk@22876 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:14:36 +00:00
Andrew Nacin 7f34c3e8ec Media: Introduce wp.media.editor.open(editor_id) and leverage it in distraction-free writing (fullscreen). props azaozz, koopersmith. fixes #22541.
git-svn-id: https://develop.svn.wordpress.org/trunk@22875 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:09:00 +00:00
bumpbot fad058bf84 Compress scripts/styles: 3.5-RC1-22873.
git-svn-id: https://develop.svn.wordpress.org/trunk@22873 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 16:58:37 +00:00
Ryan Boren d2d01ad797 Always send nocache_headers() for admin-ajax.php. This prevents iOS from caching ajax calls. http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results
Turn off multi selection uploads for mobile devices. Currently Plupload cannot upload multiple files in iOS Safari. Only the first file makes it to the queue. 

Empty wp on unload to work around caching in iOS Safari.

Props azaozz, miqrogroove, nacin

fixes #22552


git-svn-id: https://develop.svn.wordpress.org/trunk@22872 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 16:17:53 +00:00
Ryan Boren e0a32fe27b Fix overflow of long filenames in the media modal.
Props koopersmith, GregLone
fixes #22554


git-svn-id: https://develop.svn.wordpress.org/trunk@22870 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:58:47 +00:00
Ryan Boren 6a9c14ed5f Add a delete link to the media modal.
Props merty, nacin, koopersmith
fixes #22524


git-svn-id: https://develop.svn.wordpress.org/trunk@22869 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:50:59 +00:00
Ryan Boren 1f4eed3141 Don't use "embed" when referring to inserting from URL.
Props nacin
fixes #22603


git-svn-id: https://develop.svn.wordpress.org/trunk@22868 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:35:36 +00:00
Ryan Boren b750487b07 Fix dragging in IE10 on touch devices.
Props georgestephanis, koopersmith
fixes #22583


git-svn-id: https://develop.svn.wordpress.org/trunk@22866 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:00:00 +00:00
Ryan Boren b1f07f0ae1 Back compat $_REQUEST['post_id'] for media XHR requests.
Props koopersmith, nacin.
fixes #22588


git-svn-id: https://develop.svn.wordpress.org/trunk@22865 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 14:58:08 +00:00
Ryan Boren 31c86e27c2 Clean up WP_Image_Editor_Imagick::test(). Props DH-Shredder. see #22543
git-svn-id: https://develop.svn.wordpress.org/trunk@22864 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 14:52:24 +00:00
Ryan Boren 8b1ebd858a In wp_image_editor(), use wp_image_editor_supports() to check for rotation capabilities rather than directly checking the existence of the imagerotate function.
In WP_Image_Editor_GD::test(), check for existence of imagerotate if the rotate capability is required.

Props DH-Shredder
fixes #22597


git-svn-id: https://develop.svn.wordpress.org/trunk@22863 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 14:36:55 +00:00
Andrew Nacin f7b3d1a854 Make the return of is_upload_space_available() more obvious. props georgestephanis. see #22585.
git-svn-id: https://develop.svn.wordpress.org/trunk@22861 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 03:42:02 +00:00
bumpbot 91f6658471 Compress scripts/styles: 3.5-RC1-22860. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22860 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 02:58:50 +00:00
Andrew Nacin 929d79714b Remove wp_image_editor_class filter. wp_image_editors is sufficient. props scribu. fixes #22538.
git-svn-id: https://develop.svn.wordpress.org/trunk@22859 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 02:27:11 +00:00
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 283e33bd58 Make wp_prepare_attachment_for_js() compatible with plugins that disable all intermediate image sizes (so no images are created on upload), and then create them on the fly using the image_downsize filter (say, with a URL that can dynamically create images on the fly).
Props nacin
fixes #22598


git-svn-id: https://develop.svn.wordpress.org/trunk@22850 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:46:56 +00:00
Ryan Boren 40f11fff98 More feature detection in WP_Image_Editor_Imagick::test().
Check existence of setIteratorIndex().

Props DH-Shredder, markoheijnen
see #22543



git-svn-id: https://develop.svn.wordpress.org/trunk@22849 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:40:34 +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