Commit Graph

20957 Commits

Author SHA1 Message Date
Andrew Nacin 390e1756a1 Don't use wp_send_json_* handlers in the upload-attachment XHR handler.
The difference is the content type: application/json (which jQuery deserializes automatically for us) and the default text/html.

jQuery correctly handles application/json requests for IE, so we can continue to use the wp_send_json_* handlers elsewhere. Plupload rolls its own requests and does not handle application/json correctly. So, keep the standard text/html content type on upload-attachment.

props koopersmith.
see #22446.



git-svn-id: https://develop.svn.wordpress.org/trunk@22845 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 20:12: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
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 99097a2096 Only pass the current screen to the list table constructor when we have a screen to work with. This is not the case for admin-ajax requests. fixes #22570.
git-svn-id: https://develop.svn.wordpress.org/trunk@22838 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:39:29 +00:00
Andrew Nacin 76b8bb8450 Media: Remove vestige CSS that prevents thumbnails from always showing on media-new.php. props duck_. fixes #22547.
git-svn-id: https://develop.svn.wordpress.org/trunk@22837 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 03:37:25 +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
Andrew Nacin 1b8e6d9ac6 Use correct variable in wp_ajax_save_attachment(). see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22834 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 02:50:01 +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 8a75568cd4 Gettext markup for a welcome screen string. Props SergeyBiryukov, xibe. fixes #22546
git-svn-id: https://develop.svn.wordpress.org/trunk@22831 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-23 16:42:31 +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 4bf9e01c2b Mustn't forget to hide the legacy media uploader! see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22828 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 13:23:27 +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 5e90f834be Two initial feature pointers for WordPress 3.5: plugin favorites and the media dialog. One offered for translation. props nacin, lessbloat, DrewAPicture. see #22454.
git-svn-id: https://develop.svn.wordpress.org/trunk@22815 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:24:11 +00:00
Andrew Nacin 8865ae9b81 About page for WordPress 3.5, first pass. Not yet offered for translation. props lessbloat, johnbillion. see #22455.
git-svn-id: https://develop.svn.wordpress.org/trunk@22814 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:16:26 +00:00
Andrew Nacin be4bf5a2aa Updates to post.php help text for posts and pages, including a new section on inserting media. props DrewAPicture, Ipstenu. see #22451.
git-svn-id: https://develop.svn.wordpress.org/trunk@22813 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 09:00:39 +00:00
Andrew Nacin 40274b7956 Fix various typos and omissions across a number of help tabs. props DrewAPicture, Ipstenu. see #22451.
git-svn-id: https://develop.svn.wordpress.org/trunk@22812 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 08:45:15 +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 ba65b3ffc7 Media: Replace the thumbnail on post.php using a request variable instead of the referer. props ocean90. fixes #21391.
git-svn-id: https://develop.svn.wordpress.org/trunk@22807 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 03:43:16 +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
Dion Hulse a88a487797 Correct get_home_path() for cases where WordPress is installed in a subdirectory called /wp/, previously it would match on /wp-admin instead of /wp causing an incorrect return path. Props SergeyBiryukov. Fixes #20449
git-svn-id: https://develop.svn.wordpress.org/trunk@22800 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:39:59 +00:00
Andrew Nacin 7d73996c18 Fix action link styling in IE7 and IE8. props SergeyBiryukov. fixes #22467.
git-svn-id: https://develop.svn.wordpress.org/trunk@22799 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 22:34:08 +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 Ozz 251ab5e8b1 Fix typo in [22795]
git-svn-id: https://develop.svn.wordpress.org/trunk@22796 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 21:16:19 +00:00