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
Daryl Koopersmith
3f362417c7
Media: Remove dead dropdown code from button view. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22708 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:29:00 +00:00
Daryl Koopersmith
10d46dd112
Buttons: Remove unused button arrows and dropdowns. see #21598 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22707 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:26:26 +00:00
Daryl Koopersmith
ce06a037dd
Media: Attachment checkboxes now function as such. fixes #22462 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22706 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 11:10:04 +00:00
bumpbot
21598abfd3
Compress scripts/styles: 3.5-beta3-22705.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22705 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 04:58:34 +00:00
Daryl Koopersmith
aae8a0bdd1
Buttons: Ensure correct disabled submit button state in iOS. props johnbillion, fixes #22490 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22704 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 03:20:17 +00:00
Daryl Koopersmith
4a696709f8
Media: Allow textareas to be vertically resized. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22703 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:59:31 +00:00
Andrew Nacin
1f5e71fd3a
Add media_view_settings and media_view_strings hooks. fixes #21092 for 3.5. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22702 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:58:33 +00:00
bumpbot
5881079072
Compress scripts/styles: 3.5-beta3-22701.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22701 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:58:28 +00:00
Andrew Nacin
c753f3bd74
Fix HiDPI pointer arrows used in the feature pointers. props lessbloat. fixes #22510 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22698 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:09:37 +00:00
Daryl Koopersmith
86b1e35bcf
Media: Prevent undefined errors when media scripts are enqueued outside of wp_enqueue_media(). fixes #22495 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22694 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 01:48:37 +00:00
bumpbot
8ff00bcf38
Compress scripts/styles: 3.5-beta3-22693.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22693 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 00:58:32 +00:00
Daryl Koopersmith
49ac6ba800
Media: Detect when views are added to the DOM and fire a ready event. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22692 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 00:53:02 +00:00
bumpbot
aa2109949a
Compress scripts/styles: 3.5-beta3-22691.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22691 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 22:58:31 +00:00
Daryl Koopersmith
c14200e07b
Media: Add render tracking to views. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22690 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 22:48:11 +00:00
bumpbot
9d6e6d3e3f
Compress scripts/styles: 3.5-beta3-22685.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22685 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 12:58:31 +00:00
Daryl Koopersmith
15b3c31767
Media: Add silent options to the views; improve documentation. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22684 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 12:11:16 +00:00
bumpbot
b311202274
Compress scripts/styles: 3.5-beta3-22683.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22683 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 10:58:31 +00:00
Daryl Koopersmith
aa6b7069e6
Media: Add a method to fetch the first subview. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22682 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 10:41:24 +00:00
Daryl Koopersmith
17af1e2366
Media: Add documentation to media.Views. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22681 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 10:40:49 +00:00
bumpbot
bf46cc71b5
Compress scripts/styles: 3.5-beta3-22678.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22678 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:58:31 +00:00
Andrew Nacin
870d1d05db
Revert [22675]. wp_mime_type_icon() is more accurate when given a post ID, rather than a mime type. The "speed" mostly comes down to the ordering of cache hits, rather than any performance issues like #22503 . see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22677 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:44:37 +00:00
Andrew Nacin
52cc02a9be
This should be a cache add, not a cache set. see #22503 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22676 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:39:52 +00:00
Andrew Nacin
68a3e80d4d
wp_mime_type_icon() is faster when given a mime type, rather than a post ID. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22675 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:39:14 +00:00
Andrew Nacin
4cba7e30e0
Call wp_cache_set() with a group and then an expiration in wp_mime_type_icon(). fixes #22503 . see #22186 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22674 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:31:43 +00:00
Daryl Koopersmith
893c538066
Media: Only show the alignment setting when viewing an image. fixes #21836 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22671 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 07:24:47 +00:00
Andrew Nacin
a3023b8483
In get_custom_header(), support a default header that is registered using default-image but not register_default_headers(). fixes #22221 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22669 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:59:25 +00:00
bumpbot
94b4a602af
Compress scripts/styles: 3.5-beta3-22668.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22668 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:58:29 +00:00
Daryl Koopersmith
1b42cd449c
Media: Use correct variable name. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22666 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:43:01 +00:00
Daryl Koopersmith
16ef935110
Media: Add default render method to views.
...
* Use default `render` method in the `Frame` view.
* Rename `Views.attach` to `Views.insert`.
* Add `Views.all` to retrieve all subviews.
* Add `Views.detach` to detach all subviews.
* Detect whether views are going to be reused in `View.set` and `detach` them instead of calling `dispose`.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22662 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:02:00 +00:00
bumpbot
7de47b2867
Compress scripts/styles: 3.5-beta3-22661.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22661 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 04:58:32 +00:00
Daryl Koopersmith
54f70dec05
Media: Allow subviews to be inserted at a specific index. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22660 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 04:41:57 +00:00
Daryl Koopersmith
46da78b32e
Media: Convert the attachments browser view's destroy method to the newer dispose method. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22659 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 03:33:29 +00:00
Daryl Koopersmith
2411401f1b
Media: Remove unused batch edit states and strings. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22658 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 03:11:48 +00:00
bumpbot
eda9828244
Compress scripts/styles: 3.5-beta3-22657. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22657 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 02:58:28 +00:00
Daryl Koopersmith
47b883764e
Media: Remove debug cruft from [22655]. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22656 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 02:44:34 +00:00
Daryl Koopersmith
5b426eac50
Media: Optimize media models.
...
* Merge `Composite` model with general `Attachments` model, as `Attachments.validate` and `Composite.evaluate` were functionally equivalent.
* Queries should only watch `wp.Uploader.queue`, as watching `Attachments.all` results in queries attempting to add attachments before their properties are set (which then results a few too many irrelevant adds/removes). `Attachments.all` should potentially be removed or rethought.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22655 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 02:43:10 +00:00
Daryl Koopersmith
5c2e5e3231
Media: Remove redundant sorting logic from composite models. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22654 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 02:00:01 +00:00
Andrew Nacin
34985fbc7a
Revert page on front changes. Reverts [22127] [22129] [22135] [22136]. see #16379 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22653 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 01:28:32 +00:00
Daryl Koopersmith
f2d2f6bb45
Media: Make TinyMCE attachment and gallery controls always show when the corresponding view is selected. props SergeyBiryukov. fixes #22463 , see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22652 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 01:23:45 +00:00
Daryl Koopersmith
646c90861f
Media: Move Attachments view preventDefault handler to the events object. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22651 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 01:17:30 +00:00
bumpbot
930790f78c
Compress scripts/styles: 3.5-beta3-22650.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22650 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 00:58:49 +00:00
Daryl Koopersmith
c5ee034c29
Media: Allow for the views manager to be extended. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22649 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 00:54:18 +00:00
Daryl Koopersmith
101c5a5371
Media: Add a base view class.
...
* Centralizes view and subview management, unifying several disjointed constructs.
* Utilizes the `dispose` functionality found in Backbone master, providing a standard method for memory management.
see #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22648 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 00:36:47 +00:00
bumpbot
8edc223912
Compress scripts/styles: 3.5-beta3-22645. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22645 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 18:58:32 +00:00
Andrew Ozz
37a39cbefa
TinyMCE: place the caret after/under images with captions when inserting content, fixes #19389
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22644 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 18:04:20 +00:00
Andrew Ozz
b706fe2780
RTL: remove unneeded toolbar border-right, props ocean90, see #22453
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22643 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 17:59:27 +00:00
bumpbot
70f7d88916
Compress scripts/styles: 3.5-beta3-22642.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22642 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 16:58:30 +00:00
Andrew Ozz
ae6db5cab0
RTL: fix styling of Skip To links, see #22453
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22641 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 16:49:17 +00:00
Andrew Ozz
805c464c27
RTL fixes and improvements: add-media, image-editor, the spinners, the featured image button, some css cleanup, props ocean90, maor, SergeyBiryukov, ramiy, see #22453
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22640 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-18 16:19:37 +00:00
bumpbot
176f7c4483
Compress scripts/styles: 3.5-beta3-22639.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22639 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 22:58:30 +00:00
bumpbot
20b307248e
Compress scripts/styles: 3.5-beta3-22637.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22637 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 20:58:31 +00:00
Andrew Ozz
2ae738083a
Make the admin menu and toolbar work well on mobile devices (take 2), props georgestephanis, fixes #20614 , fixes #22382
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22636 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 20:14:17 +00:00
Ryan Boren
35576683fe
Always return a raw filtered post object from WP_Post::get_instance().
...
Props kovshenin, scribu, ntm
fixes #22448
git-svn-id: https://develop.svn.wordpress.org/trunk@22635 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 15:14:48 +00:00
Ryan Boren
6d8bce688f
Pinking shears
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22634 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 15:11:29 +00:00
Andrew Nacin
2f1e3701ed
Trim the option name in get_option() before calling the pre_option_$option filter, not after. props evansolomon. fixes #22358 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22633 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 13:20:57 +00:00
bumpbot
817d87fe1c
Compress scripts/styles: 3.5-beta3-22631.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22631 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:58:29 +00:00
Andrew Nacin
fe14a22e31
Introduce a new, cross-browser HiDPI CSS @media rule to be used everywhere.
...
{{{
@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
}}}
Serve HiDPI graphics for printing, regardless of screen resolution.
Specify Opera's vendor-prefixed device pixel ratio property, for Opera desktop.
Specify a minimum Webkit device pixel ratio of 1.25 instead of 1.5, to serve
2x images to Android devices that are between 1 and 1.5x (like the Nexus 7).
Firefox and Opera will respond to 1.5x on these devices, but Chrome will not.
Specify min-resolution, which covers Firefox 19. Opera on Android also supports
min-resolution, but Opera Mini does not support dppx, so the dpi unit is used.
props iammattthomas for the exhaustive research.
props lessbloat for patching.
fixes #22238 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22629 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:50:08 +00:00
Andrew Nacin
d22207c523
Update down_arrow-2x.gif to have a transparent background. props lessbloat. fixes #22481 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22626 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:38:25 +00:00
Ryan Boren
a2d75840ce
Define array to avoid notice.
...
Props ericmann
fixes #22479
git-svn-id: https://develop.svn.wordpress.org/trunk@22622 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:14:57 +00:00
Ryan Boren
d5c96a1e8b
Add abstract methods back to WP_Image_Editor and refresh phpdoc.
...
Props DH-Shredder, markoheijnen, kurtpayne, nacin
see #6821
git-svn-id: https://develop.svn.wordpress.org/trunk@22619 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:02:21 +00:00
bumpbot
861df27c7d
Compress scripts/styles: 3.5-beta3-22613.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22613 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:58:32 +00:00
Daryl Koopersmith
e36ce9af8e
Media: zIndex peace was only temporary.
...
Revert [22611] in favor of using plupload's `container` setting. Turns out, plupload's flash shim is forced to the exact same index as the admin bar, so balancing the two is better solved by nesting the shim.
see #22441 , #22446 , #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22612 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:30:36 +00:00
Daryl Koopersmith
17ae09a2d4
Media: The zIndex arms race.
...
Adjusts zIndexes to be not-as-absurd as before, in the process moving the modal below the plupload flash shims (which do not have customizable zIndexes or classes, sadly).
fixes #22441 , see #22446 , #21390 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22611 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:20:11 +00:00
Daryl Koopersmith
b520130998
Media: Add an explicit border to menus to show a divider in older browsers. see #22446 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22610 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 09:47:00 +00:00
Daryl Koopersmith
8438636322
Media: Only display "Drop files" text when the browser supports drag and drop. see #22446 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22609 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 09:39:58 +00:00
Daryl Koopersmith
7ce0c04466
Media: Wrap the embed screen's alignment setting in a div instead of a label to avoid default browser selection behavior. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22608 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 01:49:11 +00:00
bumpbot
4bb9a6150c
Compress scripts/styles: 3.5-beta3-22607. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22607 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 00:58:33 +00:00
Daryl Koopersmith
b13b36db98
Media: Remove dead CSS. props ocean90, see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22605 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 00:04:37 +00:00