Commit Graph

11204 Commits

Author SHA1 Message Date
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
Ryan Boren 7ce1968d15 In media_buttons(), consult global post_ID if get_post() comes up with nothing.
Default postID to 0 in wp_enqueue_media().

Props nacin
fixes #22085


git-svn-id: https://develop.svn.wordpress.org/trunk@22846 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:03:37 +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
Ryan Boren 8bf86e30f7 Make is_upload_space_available() available for front end page loads. Fixes fatal error when calling wp_editor() from the front end.
Props scribu, itworx
fixes #22585


git-svn-id: https://develop.svn.wordpress.org/trunk@22840 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 14:42:43 +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
Daryl Koopersmith 383e24fcfe Add print_media_templates action to allow custom templates to be added. props ocean90. fixes #22565, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22832 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-25 21:45:30 +00:00
Ryan Boren 7fbcbebc3d Handle attachments that have an empty mime type or a mime type without a subtype.
Props SergeyBiryukov
fixes #22532


git-svn-id: https://develop.svn.wordpress.org/trunk@22830 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-23 16:32:21 +00:00
Andrew Ozz 080b51bfe6 Do not optimize/smush/ImageOptim GIFs. Most are either not reduced in size or reduced only couple of bytes but the optimization messes with the transparency/matte. Fixes #22536, see #22381
git-svn-id: https://develop.svn.wordpress.org/trunk@22829 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 19:08:22 +00:00
Andrew Nacin 1f337b2729 3.5-RC1.
git-svn-id: https://develop.svn.wordpress.org/trunk@22827 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 13:12:14 +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 77ed607d8e Media: Make the pre-upload-ui hooks share an element with the post-upload-ui hooks. see #22186, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22819 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 10:57:43 +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
Andrew Nacin f44d1d009e WP_Image_Editor: the last stand.
* Have wp_get_image_editor() rather than WP_Image_Editor::get_instance(). Having static factory methods would be less confusing if there weren't also static methods tied to individual editor implementations.
 * Lazy-load the WP_Image_Editor base class and editor implementations.
 * Have WP_Image_Editor_GD::supports_mime_type() actually check which types it supports.
 * Deprecate gd_edit_image_support() in favor of wp_image_editor_supports().

props DH-Shredder, scribu, markoheijnen. fixes #22356. see #6821.



git-svn-id: https://develop.svn.wordpress.org/trunk@22817 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:52:16 +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
Andrew Nacin eb6ec0d669 Do SimplePie sanitization with wp_kses_post() rather than DOMDocument, which cannot be guaranteed to be available.
Overrides SimplePie_Sanitize with WP_SimplePie_Sanitize_KSES.

props markjaquith, rmccue.
see #21990.



git-svn-id: https://develop.svn.wordpress.org/trunk@22811 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 07:23:43 +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
Andrew Nacin cb17ed8006 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: https://develop.svn.wordpress.org/trunk@22784 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:58:19 +00:00
Andrew Nacin e4759d815d Support attachment_fields_to_save and attachment_fields_to_edit for attachments going through post.php. see #22186. see #21391.
git-svn-id: https://develop.svn.wordpress.org/trunk@22783 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:53:00 +00:00
Daryl Koopersmith b629757edb Media: Normalize font sizes, link colors, and other styles. props lessbloat, see #22284, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22782 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:37:52 +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 2485bff7a2 Media: Add base form element CSS. props lessbloat. see #22284, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22780 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 18:00:18 +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 11699e0567 Media: Make media views dependent on jQuery UI sortable. see #22284, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22776 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 17:28:14 +00:00
Daryl Koopersmith d477be2d12 Make jQuery a Backbone dependency. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22775 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 17:22:13 +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 1694382d8d Media: The media views CSS depends on the button styles. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22771 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:47:55 +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
Daryl Koopersmith 9a2033cabc Media: Backwards compatibility for the many send_to_editor filters. props nacin. see #22186, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22768 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:02:20 +00:00
Andrew Nacin 83087fbddd Re-align the TinyMCE HiDPI icons. props lessbloat. fixes #22528.
git-svn-id: https://develop.svn.wordpress.org/trunk@22766 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 15:34:24 +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 493572fd09 Media: Backwards compatibility for the disable_captions filter. see #22186, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22761 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:27:22 +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
Andrew Nacin 9d2cc09ce1 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: https://develop.svn.wordpress.org/trunk@22755 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:05:44 +00:00
bumpbot 9360fd4fa4 Compress scripts/styles: 3.5-beta3-22754.
git-svn-id: https://develop.svn.wordpress.org/trunk@22754 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 12:58:33 +00:00
Daryl Koopersmith 6ee49f047f Media: Ensure Attachments.mirror returns true. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22753 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 12:53:02 +00:00
Daryl Koopersmith aa3bfdc808 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: https://develop.svn.wordpress.org/trunk@22750 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 12:11:38 +00:00
Andrew Nacin 59be9048dd 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: https://develop.svn.wordpress.org/trunk@22747 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 11:50:30 +00:00
Daryl Koopersmith e9670df395 Media: Make mirroring a collection of attachments a special case of observing a collection of attachments. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22746 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 11:35:30 +00:00
Daryl Koopersmith 052b765819 Media: Add filters for image-only libraries. see #22514, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22745 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 11:04:23 +00:00
bumpbot bc69308164 Compress scripts/styles: 3.5-beta3-22744.
git-svn-id: https://develop.svn.wordpress.org/trunk@22744 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 10:58:28 +00:00
Daryl Koopersmith 8e6aa60fa4 Media: Dynamically generate attachment filters using get_post_mime_types().
Moves `get_post_mime_types()` from `wp-admin/includes/post.php` to `wp-includes/post.php`.

fixes #22514, see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22743 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 10:18:59 +00:00
Daryl Koopersmith 27515780f6 Media: Remove debug cruft. props ocean90. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22741 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 09:28:58 +00:00
bumpbot ba3fbd26bd Compress scripts/styles: 3.5-beta3-22740.
git-svn-id: https://develop.svn.wordpress.org/trunk@22740 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 08:58:30 +00:00
Daryl Koopersmith 04cc69db01 Media: Ensure icons stay within the bounds of their surrounding view. fixes #22522, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22739 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 08:44:22 +00:00
Daryl Koopersmith 555141ebe4 Media: Dropping images on the edit gallery view will automatically add those images to the gallery. fixes #22521, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22738 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 08:17:45 +00:00
Daryl Koopersmith 6a9778959c Media: Prevent type and search attachments filters from short circuiting.
Moves the reference to the source collection out of the props model. If it was translated over to a query (which was potentially possible) which then fired an ajax request, jQuery would attempt to serialize an object recursively, which caused an infinite loop and much sadness for my browser.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22737 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 08:09:28 +00:00
Mark Jaquith 961a962a3c Remove trailing slashes from UPLOADS before trying a str_replace() in wp_upload_dir(). props jbrinley. fixes #22469
* In 3.4.x, both $url and UPLOADS had trailing slashes
* Due to refactoring, $url is no longer expected to have a trailing slash
* Because of the mismatch, the str_replace() was not working, resulting in an incorrectly verbose upload dir URL

git-svn-id: https://develop.svn.wordpress.org/trunk@22736 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 07:08:38 +00:00
Andrew Nacin db7dc96921 Media: For pages, use 'Insert into page' rather than 'Insert into post'.
Custom post types can use the media_view_strings filter. No new post type "labels" for now.

see #22712. see #21092 (and #19696).



git-svn-id: https://develop.svn.wordpress.org/trunk@22735 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 23:22:03 +00:00
bumpbot 265d65f0fd Compress scripts/styles: 3.5-beta3-22734.
git-svn-id: https://develop.svn.wordpress.org/trunk@22734 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 22:58:28 +00:00
Daryl Koopersmith a0dca55d03 Media: Set a max width on select elements in the sidebar. fixes #22517, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22733 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 22:51:35 +00:00
Andrew Ozz b254457b19 Skip To links: visually hide by only setting top: -1000em; (this should make them work well in all screen readers), fixes #21312
git-svn-id: https://develop.svn.wordpress.org/trunk@22730 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 21:14:49 +00:00
bumpbot f633a3aeff Compress scripts/styles: 3.5-beta3-22729.
git-svn-id: https://develop.svn.wordpress.org/trunk@22729 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 20:58:28 +00:00
Andrew Ozz 68be504421 Toolbar: sync jQuery and non-jQuery JS behaviour when there's a hash in the url, props tlovett1, fixes #22520
git-svn-id: https://develop.svn.wordpress.org/trunk@22728 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 20:45:03 +00:00
Andrew Nacin 6b22cbcbc7 Use standard link colors with the skip links. see #21310.
git-svn-id: https://develop.svn.wordpress.org/trunk@22727 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 20:25:54 +00:00
Andrew Ozz a1bb1de73f Skip links: simplified look with more contrast, props sabreuse, fixes #21310
git-svn-id: https://develop.svn.wordpress.org/trunk@22726 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 19:58:47 +00:00
bumpbot 0f21638a91 Compress scripts/styles: 3.5-beta3-22724.
git-svn-id: https://develop.svn.wordpress.org/trunk@22724 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:58:31 +00:00
Ryan Boren e158d36f6e Don't bail from get_the_terms() if the post type is not registed for the taxonomy. This can break back compat when add_post_type_support( 'page', 'post-formats' ) is called but register_taxonomy_for_object_type( 'postr_-format', 'page' ) is not.
Props SergeyBiryukov
fixes #22473


git-svn-id: https://develop.svn.wordpress.org/trunk@22722 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:31:06 +00:00
Andrew Nacin 16d68f6dba RTL media-views fixes. props ocean90. fixes #22453.
git-svn-id: https://develop.svn.wordpress.org/trunk@22720 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:22:19 +00:00
Andrew Nacin a5a14e4e7e No-JS fixes.
* Hide QuickPress.
 * Hide the gap between the title and content editor.
 * Hide 'select all' checkboxes in list tables.
 * Hide a non-functioning link in the custom fields metabox.
 * Hide non-functioning buttons in the featured image box (same as in 3.4).
 * RTL and miscellany.

props TobiasBg, lessbloat, ocean90. fixes #22456.



git-svn-id: https://develop.svn.wordpress.org/trunk@22719 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:20:14 +00:00
Andrew Nacin 628778d7c1 Account for taxonomies tied to specific kinds of attachments when setting up post types for a taxonomy query.
props jondavidjohn. see #21290.



git-svn-id: https://develop.svn.wordpress.org/trunk@22718 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 17:33:21 +00:00
bumpbot 2e6be2d063 Compress scripts/styles: 3.5-beta3-22717.
git-svn-id: https://develop.svn.wordpress.org/trunk@22717 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 14:58:32 +00:00
Daryl Koopersmith 1e83e0eaae Media: Maintain event bindings in the main embed view. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22716 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 14:44:23 +00:00
Daryl Koopersmith 69f9e2a1bf Media: Allow all galleries to be sortable. fixes #22488, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22713 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 14:04:59 +00:00
Daryl Koopersmith 76c67989a7 Media: Add filters to the media library. fixes #22514, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22712 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 13:49:35 +00:00
bumpbot 995c548174 Compress scripts/styles: 3.5-beta3-22711.
git-svn-id: https://develop.svn.wordpress.org/trunk@22711 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 12:58:29 +00:00
Daryl Koopersmith 30e1926f4b Media: Refresh the attachment display settings when the active attachment finishes uploading. fixes #22452, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22710 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:57:08 +00:00
Daryl Koopersmith e707481dcf Media Uploader: Change an uploaded attachment's 'updating' key with the rest of the returned attributes to allow events bound to 'change:updating' to access the new properties. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22709 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:52:08 +00:00