Andrew Nacin
66f1a19089
Add a sane, inclusive HTML element/attribute schema to TinyMCE.
...
TinyMCE 3.4.x (shipped with WordPress 3.4.x) had an HTML4-based schema definition, with HTML5 elements added to it. TinyMCE 3.5.x (shipping, again coincidentally, with WordPress 3.5) allows for HTML5 schema support, which also provides for full HTML5 attribute support. The problem is its HTML5 schema excludes all HTML4 elements and attributes that were dropped in the HTML5 spec, which is unacceptable behavior.
This "duck punch" of TinyMCE's Schema.js file creates a new, sane schema. It is TinyMCE's HTML4 and HTML5 schema definitions recursively merged.
Objects are not whitelisted in either schema to allow for embed elements as child nodes, so object, param, and embed remain separately whitelisted in the WordPress TinyMCE plugin. Our attempts to add other attributes in said plugin is now superceded.
props koopersmith, azaozz.
fixes #22790 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23120 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 11:26:25 +00:00
Andrew Nacin
35edf3665d
Add TinyMCE 3.5.8's Schema.js file in preparation for monkey patching it. see #22790 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23119 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 11:12:51 +00:00
Daryl Koopersmith
c2ad016631
Ensure iframes in the media modal on the frontend have no borders. props nacin. fixes #22804 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23118 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 10:27:07 +00:00
Ryan Boren
9575d68a6a
Make current_user_can_for_blog() safe to run single site.
...
Props nacin, MarkJaquith
fixes #22803
git-svn-id: https://develop.svn.wordpress.org/trunk@23117 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 09:53:27 +00:00
bumpbot
77d453ddea
Compress scripts/styles: 3.5-RC4-23115.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23115 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 01:15:44 +00:00
Andrew Nacin
844c3f322d
Remove trailing comma from JS. props koopersmith, fixes #22800 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23114 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 01:13:04 +00:00
bumpbot
412a605ecf
Compress scripts/styles: 3.5-RC4-23113. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23113 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 00:07:33 +00:00
Ryan Boren
ce2720984b
Extend allowed elements for object and embed.
...
Props azaozz
fixes #22790
git-svn-id: https://develop.svn.wordpress.org/trunk@23112 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 00:05:54 +00:00
bumpbot
01259734c2
Compress scripts/styles: 3.5-RC4-23111.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23111 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 23:17:49 +00:00
Ryan Boren
a0a13a3fc4
When inserting from URL in the media modal, retain query params and properly insert the caption code.
...
Props koopersmith
fixes #22796
git-svn-id: https://develop.svn.wordpress.org/trunk@23110 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 23:12:59 +00:00
Andrew Nacin
a3222c1926
3.5-RC4.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23108 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 09:45:32 +00:00
Andrew Nacin
2583123273
Use $current_site->path instead of $base in wpmu_validate_blog_signup(), as $base is now dead. props MarkJaquith. fixes #22787 . see #19796 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23107 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 09:43:52 +00:00
Andrew Nacin
24027fdcd7
A neditor is a curious multi-celled organism found deep in the Content Management System "WordPress". It generally subsides on good content. It has an obsession with retina-quality graphical elements, and also has a strong affinity for puns. Occasionally, ACCIDENTAL CAPS LOCK occurs. Some organisms carry British accents; these are prone to changing state but then reverting to their previous state soon after. One has shown superior sleuthing abilities, despite having hardly left its Uni laboratory. Organisms from Australia are usually found deeper in the Content Management System, most of its energy spent on locomotion.
...
The attitude of a neditor is best described as cranky optimism. Younger organisms are more eager, but quickly tire after working on little sleep. They eventually evolve into the cranky optimism stage in a process that generally takes three to five months.
git-svn-id: https://develop.svn.wordpress.org/trunk@23105 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 09:01:11 +00:00
bumpbot
789be95446
Compress scripts/styles: 3.5-RC3-23104.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23104 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 08:13:44 +00:00
Andrew Nacin
2413f5f58e
Image editors: After cropping, request new sizes from the image. If we rely on the values passed in, they may be floats. We must see what the image results in.
...
Cast in update_size() for sanity.
props DH-Shredder.
fixes #22779 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23103 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 07:56:04 +00:00
Andrew Nacin
b540525589
Break wp_print_media_templates() into wp-includes/media-template.php and lazy-load that file through wp_enqueue_media(). fixes #22778 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23101 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 07:10:20 +00:00
Andrew Nacin
3403c1d157
Properly apply CSS and an ID attribute to the select files container. props koopersmith. fixes #22780 . see #22762 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23100 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 07:00:41 +00:00
bumpbot
66f7523e43
Compress scripts/styles: 3.5-RC3-23099.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23099 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 06:58:33 +00:00
Andrew Nacin
b186d63721
Media: When the attachment details view changes to another view or attachment, save compat fields on destroy. (We already do this for non-compat fields.) props koopersmith. fixes #22776 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23098 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 06:56:06 +00:00
Mark Jaquith
affd3a9a98
Remove the "Describe this ___" string on captions in the attachment details view. WP <3 patches with net red. props helenyhou. fixes #22777
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23097 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 06:35:13 +00:00
Mark Jaquith
6247c1289c
Present the correct downsized image dimensions in the Media modal when inserting. Introduces a context parameter for image_constrain_size_for_editor() instead of relying on is_admin(). props jond3r, nacin. fixes #22738
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23096 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 06:25:39 +00:00
Mark Jaquith
e0f5f47c57
Add the ability to click "Edit" and kick out to the advanced image editor from within the Media modal. New window, with "Refresh" offered on your return. fixes #22743 . props koopersmith, nacin, helenyhou.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23095 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:52:19 +00:00
bumpbot
40dad409f4
Compress scripts/styles: 3.5-RC3-23093.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23093 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:26:39 +00:00
Daryl Koopersmith
a4f2112fd3
Add a canonical location for media frames, an alias to fetch attachments, and frame caching to custom header. fixes #22775 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23092 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:06:49 +00:00
bumpbot
21f933625f
Compress scripts/styles: 3.5-RC3-23091. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23091 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 04:58:34 +00:00
Andrew Ozz
b0cd25962e
Upgrade to TinyMCE 3.5.8, fixes #22755
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23090 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 04:50:31 +00:00
Mark Jaquith
d801545ff6
New method of managing media selections. There is now a "master" selection in the background. props koopersmith. fixes #22725
...
* This especially helps when you switch between insert/gallery and have non-images selected (as galleries don't support non-images).
* The views now act as filters on the "master" selection, instead of having their own selections that get passed around.
git-svn-id: https://develop.svn.wordpress.org/trunk@23089 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 03:55:37 +00:00
Andrew Nacin
dc3a34b19b
Restore captions for non-image attachments. see #22759 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23087 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 03:36:17 +00:00
Daryl Koopersmith
977deb7d63
Do not alter the body's overflow attribute when the media modal is opened. Fix image insertion in the visual editor in Firefox. props azaozz. fixes #22765 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23085 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 03:15:39 +00:00
bumpbot
2255750962
Compress scripts/styles: 3.5-RC3-23084.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23084 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 00:42:44 +00:00
Andrew Nacin
1cc12103f5
Restore the Description field to the media UI in 3.5.
...
We tried in vain -- a noble but ultimately failed effort -- to reduce the number of fields for attachments from four (title, caption, alt, description) to one (caption for images, title otherwise). Alternative text needed to stay for accessibility reasons, of course.
Eventually title returned due to heavy plugin reliance. Description is too used by too many plugins (often times incorrectly -- the caption is more likely the proper field), hence its less-than-triumphant return today.
Version 3.5 has tried to streamline media in a number of ways. Removing fields may have been too much at once, as it forced not only a user interface change, but a paradigm change as well.
Finally, on upload we populate the description field with IPTC/EXIF captions, rather than the caption field. See #22768 , this should be fixed. For now, Description stays.
This commit also restores 'Title' attribute editing to the main tab of the Edit Image dialog. The "Title" field no longer populates title attributes for <img> tags by design (for accessibility and other purposes, see #18984 ). So, here is a more obvious 'workaround' for the tooltip community.
Finally, this:
* Cleans up the post.php attachment editor, including by showing a prettier form of the mime type.
* Enables plugins to specifically hide attachment_fields_to_edit from either post.php (where you can create meta boxes) or the modal (which you may not want to clutter), for compatibility reasons.
* Hides the 'Describe this file...' placeholder when a field is read-only in the modal.
props nacin, helenyhou.
fixes #22759 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23083 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 00:41:06 +00:00
bumpbot
bee0035c66
Compress scripts/styles: 3.5-RC3-23080.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23080 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 21:22:59 +00:00
Ryan Boren
f549a8baa6
Fix uploads in IE9
...
Props koopersmith
fixes #22762
git-svn-id: https://develop.svn.wordpress.org/trunk@23079 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 21:21:17 +00:00
bumpbot
c936792bbb
Compress scripts/styles: 3.5-RC3-23078.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23078 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 19:22:54 +00:00
Andrew Nacin
167db2d9da
Media: Account for the most obvious and common style conflicts that may occur when the media modal is loaded on the frontend. Tested primarily with P2. props lessbloat, helenyhou. fixes #22752 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23077 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 19:15:40 +00:00
Andrew Nacin
0d7c64c9fd
Media: Final names for the actions in the dialog sidebar: "Insert from URL" and "Set Featured Image" to go with "Insert Media" and "Create Gallery".
...
Longer strings (such as a translation) looks excellent when it wraps to another line.
props markjaquith, fixes #22753 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23076 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 19:07:48 +00:00
Andrew Nacin
bdba526d83
Media: Use '%d selected' for the selection string, and offer a comment to translators to help them find a workable solution with this would-be plural string. fixes #22749 . see #22229 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23075 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 19:03:38 +00:00
Andrew Nacin
b2bafcca6a
Script loader: Chunk the script names as passed to load-scripts.php into 128-character pieces. Avoids hitting a limit for the length of a single variable, such as suhosin.get.max_value_length which defaults to 512. fixes #22757 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23074 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 18:57:56 +00:00
bumpbot
c3b88709fd
Compress scripts/styles: 3.5-RC3-23073.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23073 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 10:58:32 +00:00
Mark Jaquith
92793b6ec2
Intelligently make media fields readonly when the user cannot update or do anything with them. props koopersmith, helenyhou, nacin. fixes #22613
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23072 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 10:29:24 +00:00
Mark Jaquith
c2f15bc83b
Better responsive breakpoints for the Gallery editing screen. props koopersmith. fixes #22741
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23071 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 10:15:42 +00:00
Mark Jaquith
d767e74ae9
Implement tabbing between fields in the media modal. props lessbloat, koopersmith. fixes #22659
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23070 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 09:57:58 +00:00
Mark Jaquith
81bdf1b5d1
When setting the featured image from the dedicated meta box, only show the featured image section in the media chooser. props koopersmith. fixes #22731
...
* Less distracting
* Some of these sections won't apply for CPTs without an editor
git-svn-id: https://develop.svn.wordpress.org/trunk@23069 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 09:43:10 +00:00
Mark Jaquith
189d4da5de
Fix the "Uploaded to this post" filter in the "Add to gallery" state. fixes #22723
...
Also, use "images" wording instead of generic "media items" when in a gallery (images-only) context. fixes #22722
Both are props koopersmith
git-svn-id: https://develop.svn.wordpress.org/trunk@23068 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 09:25:17 +00:00
Mark Jaquith
aabaa0fb8e
Use data on the ui.item to transport the original Sortable index for the update() function. This way extensions can set/access this info in their own custom Sortable functions. see #22696
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23067 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 09:04:19 +00:00
bumpbot
fc3c9a8004
Compress scripts/styles: 3.5-RC3-23066.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23066 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 04:58:33 +00:00
Ryan Boren
86203fa6bf
Clear the From URL view in the media modal after inserting an image. Improve button enable checks.
...
Props koopersmith
fixes #22740
git-svn-id: https://develop.svn.wordpress.org/trunk@23065 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 04:43:51 +00:00
Mark Jaquith
4413c9514b
Allow a sortable options hash to be passed in, so you can override the defaults. props koopersmith. see #22696
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23064 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 04:11:49 +00:00
Andrew Nacin
548e695750
Media: Sidebar labels should be display block. Prevents wonkiness like inputs disappearing because Chrome no like you. props helenyhou. fixes #22721 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23063 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 04:06:45 +00:00
bumpbot
f0a90a66cb
Compress scripts/styles: 3.5-RC3-23062.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23062 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 03:30:48 +00:00
Andrew Nacin
f79847866e
Media IE7 fixes. props azaozz, lessbloat. fixes #22732 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23061 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 03:15:53 +00:00
bumpbot
6b81fd778d
Compress scripts/styles: 3.5-RC3-23059.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23059 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 02:58:34 +00:00
Andrew Nacin
bc8f994e7b
Media models: Trac and ignore deleted attachments.
...
Treat an admin-ajax response of 1 as successful for backwards compatibility with existing handlers.
props koopersmith. fixes #22750 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23057 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 02:31:41 +00:00
Andrew Nacin
01e7e10bf7
Media: Don't try to resize the bottom selection UI. props koopersmith. fixes #22748 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23056 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 01:38:44 +00:00
Andrew Nacin
426eb50936
Fix inserting of multiple attachments with captions when the first attachment does not have a caption. props azaozz. fixes #22720 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23055 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:59:25 +00:00
bumpbot
25337c050c
Compress scripts/styles: 3.5-RC3-23054.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23054 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:58:31 +00:00
Daryl Koopersmith
eae68af55c
Toggle display of plupload overlays when the select files button is hidden. see #22732 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23053 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:45:21 +00:00
Andrew Nacin
f824b1a921
Minimum heights for the media modal to prevent it from scrunching up on tiny devices. (Panning is better.) props helenyhou. fixes #22747 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23052 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:40:13 +00:00
Andrew Nacin
3fd91ed4cf
Media: Return to the library when the editing a selection and all items get de-selected. props koopersmith. fixes #22715 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23051 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:22:11 +00:00
Andrew Nacin
d2ed0a5401
Media views: Better checkbox positioning. props helenyhou. fixes #22724 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23049 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 23:56:37 +00:00
Ryan Boren
e13e333569
When inserting an image From URL, show the fields only if it looks like we have a valid image.
...
Props koopersmith
fixes #22740
git-svn-id: https://develop.svn.wordpress.org/trunk@23048 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 23:07:41 +00:00
bumpbot
2e35cea2fa
Compress scripts/styles: 3.5-RC3-23047. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23047 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 22:44:27 +00:00
Ryan Boren
52b234de11
When deleting an image in the editor with the delete or backspace keys, hide the edit and delete popup buttons.
...
Props azaozz, lessbloat
fixes #22717
git-svn-id: https://develop.svn.wordpress.org/trunk@23046 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 22:42:26 +00:00
Ryan Boren
b5fdf3753f
In the media modal, clear attachment details when clearing the selection.
...
Props koopersmith
fixes #22718
git-svn-id: https://develop.svn.wordpress.org/trunk@23045 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 22:19:08 +00:00
bumpbot
db2e7dc099
Compress scripts/styles: 3.5-RC3-23043.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23043 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 20:58:33 +00:00
Andrew Nacin
d1c428faed
Media: When doing a multiple-insert into the editor, separate each inserted item with two line breaks. props tar.gz. see #22720 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23042 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 20:52:58 +00:00
Andrew Nacin
6d580e34db
When adding images to a gallery, use "Images" as the filter name, rather than "All media items". props koopersmith. fixes #22722 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23041 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 20:51:37 +00:00
bumpbot
60b3adaa09
Compress scripts/styles: 3.5-RC3-23040.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23040 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:56:16 +00:00
Andrew Ozz
4f4e7e5cec
RTL: properly align the demo image in the Edit Image popup, props nacin, fixes #22733
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23039 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:51:35 +00:00
Andrew Nacin
a033ad1ab2
Image editor doc fixes. props DH-Shredder. see #6821 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23038 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:42:28 +00:00
Andrew Nacin
0fa07588c5
Media: Properly select the select element's option in the attachment display settings. props koopersmith. fixes #22693 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23037 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:38:16 +00:00
Andrew Nacin
39049254ae
Move utils.js (cookie and user setting functions) to wp-includes to enable front-end use.
...
Make it a dependency of media-views (and therefore media-editor). Move its userSettings JS object from admin-header to being paired with the script in script loader.
see #22730 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23036 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:29:56 +00:00
bumpbot
fde1031744
Compress scripts/styles: 3.5-RC3-23035.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23035 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:58:30 +00:00
Andrew Nacin
34291d7f6c
Media: Fix vertical and horizontal alignment of the gallery "Random" checkbox, and checkbox settings in general. Includes RTL. props koopersmith. fixes #22724 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23034 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:51:27 +00:00
Ryan Boren
7e2df6dc07
Better dropdown select handling.
...
Props cdog, koopersmith
fixes #22693
git-svn-id: https://develop.svn.wordpress.org/trunk@23033 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:50:49 +00:00
Ryan Boren
fa4b718809
Only show Delete in media modal if the user can delete.
...
Props nacin, koopersmith
fixes #22711
git-svn-id: https://develop.svn.wordpress.org/trunk@23032 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:33:51 +00:00
Ryan Boren
eb3dc78a61
Media: Hide "Edit" link in the selection view when it doesn't make sense
...
Props koopersmith, ocean90, nacin
fixes #22713
git-svn-id: https://develop.svn.wordpress.org/trunk@23031 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:23:47 +00:00
bumpbot
d2c09370e1
Compress scripts/styles: 3.5-RC3-23030.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23030 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 18:13:59 +00:00
Mark Jaquith
0f3c162db6
Fix a Firefox "scroll to bottom" bug when launching the media modal.
...
* Records main document scroll position when launching media modal.
* Restores position when media modal is closed.
* Also locks background document scrolling while media modal is open, preventing inadvertent scrolling there.
props koopersmith. fixes #22716
git-svn-id: https://develop.svn.wordpress.org/trunk@23029 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 17:58:24 +00:00
Mark Jaquith
4241d42dbe
Update toolbars for Embed screen. Fixes JS error. props koopersmith. fixes #22714
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23028 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 17:45:24 +00:00
bumpbot
b33c7c4ea1
Compress scripts/styles: 3.5-RC3-23027.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23027 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:58:32 +00:00
Andrew Nacin
a79e3a9ef4
Move HiDPI block to the bottom of media-views. @media does not provide additional specificity, so the non-retina stuff overrides if the retina rules come first. props lessbloat, fixes #22728 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23026 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:32:06 +00:00
bumpbot
344ddade55
Compress scripts/styles: 3.5-RC3-23025.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23025 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:25:14 +00:00
Andrew Nacin
e961de8af5
Media: Disable 'Insert gallery' and 'Set featured image' if nothing is queued. Converts selection toolbars to use the newer view manager. props koopersmith, fixes #22714 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23024 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:21:57 +00:00
Andrew Nacin
d943307e5d
Copy wpspin_light to wp-includes as wpspin.gif. Use it in media views. see #22728 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23023 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:18:53 +00:00
Andrew Nacin
dffb1b36d5
Add context to the 'Random' string. It is now used in two places: gallery order and the links widget. props pavelevap, fixes #22724 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23021 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 14:49:44 +00:00
Andrew Nacin
0c0cc5be09
3.5-RC3
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23020 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 08:31:53 +00:00
bumpbot
e171e1c977
Compress scripts/styles: 3.5-RC2-23018.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23018 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:58:31 +00:00
Andrew Ozz
37d1401f33
5000, not 3000, see #22708
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23017 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:05:08 +00:00
Andrew Ozz
7bc623ca09
Editor: add sanity limit for editor height of 5000px, save only when resizing the Visual or the Text editor, fixes #22708
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23016 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:01:47 +00:00
Mark Jaquith
3c992973bb
Fix a typo in media-views.js that referenced frame.router.get() instead of frame.router. Fixes #22710
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23015 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 05:18:21 +00:00
bumpbot
fbb3a42707
Compress scripts/styles: 3.5-RC2-23013.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23013 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:58:31 +00:00
Ryan Boren
b5ae45fae3
Fix race condition in media insertion where the inserted html is invalid due to output being interleaved.
...
Props koopermsith
fixes #22696
git-svn-id: https://develop.svn.wordpress.org/trunk@23012 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:38:42 +00:00
Andrew Nacin
3864c9848c
Media: Remove four unused strings. props dimadin. fixes #22688 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23011 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:16:56 +00:00
Andrew Nacin
63aa98ed0c
Media: When an image does not have all image sizes available, make sure we insert the requested size into the editor. props koopersmith. fixes #22693 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23008 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:04:45 +00:00
bumpbot
4073eb5ec2
Compress scripts/styles: 3.5-RC2-23007. props koopersmith. :-)
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23007 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 01:29:58 +00:00
Ryan Boren
00e20a52dc
Final round of media UX improvements.
...
Props koopersmith
fixes #21390 #22502
git-svn-id: https://develop.svn.wordpress.org/trunk@23006 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 01:26:03 +00:00
Andrew Nacin
b925385ca1
Multisite in a subdirectory: For subdomain installs, use a root admin cookie path, not a wp-admin specific one.
...
This is necessary because, like subdirectory installs, we will have wp-admin accessed at different levels.
fixes #22705 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23005 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 00:51:02 +00:00
bumpbot
8560f370fa
Compress scripts/styles: 3.5-RC2-23003.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23003 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 22:29:01 +00:00
Ryan Boren
608e95019d
Properly set the base URL for the main site when ms-files rewriting is enabled for MU-era installs.
...
Props nacin
fixes #22702
git-svn-id: https://develop.svn.wordpress.org/trunk@23002 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 22:24:06 +00:00
Ryan Boren
5af1f254e4
No wrap for the attachment Delete Permanently link in the media modal.
...
Props SergeyBiryukov
fixes #22667
git-svn-id: https://develop.svn.wordpress.org/trunk@22998 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 19:49:45 +00:00
Ryan Boren
ecb18ffc05
Increase the PHP memory_limit to WP_MAX_MEMORY_LIMIT in WP_Image_Editor_Imagick.
...
Props DH-Shredder
fixes #22699
git-svn-id: https://develop.svn.wordpress.org/trunk@22997 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 19:44:58 +00:00
Andrew Nacin
4acd3d7db8
Alternative Text, not Alternate Text. props SergeyBiryukov. fixes #21176 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22996 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 19:21:34 +00:00
bumpbot
0a8240a9c4
Compress scripts/styles: 3.5-RC2-22995.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22995 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 08:09:10 +00:00
Ryan Boren
71d333f660
In the QuickPress media modal, use the new post id when a post is published.
...
Props nacin, koopersmith
fixes #22673
git-svn-id: https://develop.svn.wordpress.org/trunk@22994 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 07:17:10 +00:00
Ryan Boren
594bbe90df
When settting a featured image, move the currently selected image to the beginning of the library if it doesn't exist within the attachments loaded so far.
...
Props koopersmith
fixes #22494
git-svn-id: https://develop.svn.wordpress.org/trunk@22993 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 07:04:34 +00:00
bumpbot
077dea75f7
Compress scripts/styles: 3.5-RC2-22992.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22992 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 06:53:58 +00:00
Ryan Boren
7ad3d2410c
Show a spinner when attachment details are saved.
...
Props koopersmith
see #22613
git-svn-id: https://develop.svn.wordpress.org/trunk@22991 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 06:37:49 +00:00
Ryan Boren
c21e4809c3
Show Select Files button the first time the media modal is opened.
...
Props koopermsith
fixes #22691
git-svn-id: https://develop.svn.wordpress.org/trunk@22990 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 06:32:25 +00:00
Andrew Nacin
8adec7a437
Do not save an initial revision for a post created through the auto-draft mechanism. Prevents a bogus revision, often with the title 'Auto Draft'. Restores pre-auto-draft behavior made obvious by XML-RPC's implementation of both auto-drafts and the subsequent wp.getRevisions method. fixes #22687 . see #22686 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22989 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 06:28:28 +00:00
bumpbot
c164b8e2c4
Compress scripts/styles: 3.5-RC2-22988.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22988 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:42:30 +00:00
Ryan Boren
9cdc4de444
Add random and reverse sorting options to gallery settings.
...
Props koopersmith
fixes #22637
git-svn-id: https://develop.svn.wordpress.org/trunk@22987 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:32:25 +00:00
Andrew Nacin
a347195dca
In Firefox, style placeholder text a dark gray since the browser doesn't do it for us. props helenyhou, fixes #22689 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22986 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:17:23 +00:00
Andrew Nacin
6b0e365fc0
Media: Don't add menu_order to newly uploaded attachments, to match 3.4 behavior. Reverts a bit of [22967]. props koopersmith. fixes #22607 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22985 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 04:54:03 +00:00
Ryan Boren
558d134c6b
Update gallery editing to work with the modal changes. Add nice handling for default states.
...
Props koopersmith
see #21776
git-svn-id: https://develop.svn.wordpress.org/trunk@22984 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 04:38:10 +00:00
Andrew Nacin
86a0b9ad45
Media: Prevent the compat view from wrapping around the attachment details. Allow the filename to break-word. props koopersmith, SergeyBiryukov. fixes #22667 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22983 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 04:15:32 +00:00
Andrew Nacin
f88b538001
Bring Featured Images back into the main media dialog.
...
Most users don't realize that the Featured Image meta box exists; if they do, few use it.
Restores the old meta box UI, including the admin_post_thumbnail_html filter. If a plugin is using _wp_post_thumbnail_html() in conjunction with Thickbox elsewhere, it will also magically still work.
Specific underlying changes:
* Converts the modal view to use the view manager, which means that a call to open() will automatically call render and attach if necessary.
* Doesn't automatically set a state in wp.media, to allow code to customize the states to be added before activation.
props koopersmith.
fixes #21776 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22979 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 02:38:10 +00:00
Daryl Koopersmith
8a6d1c5b89
Prevent small thumbnails from being upscaled. props helenyhou. fixes #22681 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22978 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 00:42:26 +00:00
Andrew Nacin
8cd2af059b
Media templates: Make sure we have a width and height before printing dimensions. We don't calculate dimensions for icons. fixes #22680 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22976 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 21:53:45 +00:00
bumpbot
30066d6553
Compress scripts/styles: 3.5-RC2-22975.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22975 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 19:49:31 +00:00
Andrew Nacin
a83710408f
wp.media
instead of just media
. props alexkingorg, see #22676 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22974 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 19:24:22 +00:00
bumpbot
23f78b14df
Compress scripts/styles: 3.5-RC2-22973.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22973 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:57:38 +00:00
Andrew Nacin
5c611cde9d
Use wp.media, not media, in media-editor.js. see #22676 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22972 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:55:58 +00:00
bumpbot
dff51dff56
Compress scripts/styles: 3.5-RC2-22971.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22971 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:50:10 +00:00
Andrew Nacin
f2b9e1a090
SimplePie: Return nothing and throw an error in SimplePie_Sanitize when DOMDocument is disabled.
...
Note that when SimplePie is used through the WordPress fetch_feed() function, we use kses rather than SimplePie_Sanitize, which removes the dependency on DOMDocument. This change is only for plugins using SimplePie directly.
props rmccue. fixes #21990 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22970 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:43:12 +00:00
Andrew Nacin
1839a359b9
Add wp_enqueue_media action to the function of the same name. props koopersmith, fixes #22678 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22969 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:33:20 +00:00
Andrew Nacin
7d0efc4012
Avoid leaking the 'media' var into the global JS namespace. props koopersmith, fixes #22676 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22968 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:32:47 +00:00
Andrew Nacin
d8e714d6e3
Allow the 'Uploaded to this post' view to be sorted, saving the resulting order as menu_order.
...
This functionality is designed to be backwards compatible with manual querying for attachments by menu_order.
props koopersmith.
see #22607 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22967 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 16:06:31 +00:00
bumpbot
976342549d
Compress scripts/styles: 3.5-RC2-22966.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22966 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 04:35:23 +00:00
Ryan Boren
14bd848ee5
In the media modal, show the Link To: url.
...
Props nacin
fixes #22662
git-svn-id: https://develop.svn.wordpress.org/trunk@22965 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-02 00:43:08 +00:00
bumpbot
5a1ca22cca
Compress scripts/styles: 3.5-RC2-22961.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22961 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 02:56:11 +00:00
Ryan Boren
f9b0b72ffc
Responsive and RTL css improvements or the media modal.
...
Props ocean90, koopersmith
see #22615
git-svn-id: https://develop.svn.wordpress.org/trunk@22960 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 02:53:53 +00:00
Andrew Nacin
229c5c9be3
Media: Add -webkit-overflow-scrolling for a smoother mobile/iOS experience.
...
props koopersmith.
fixes #22657 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22959 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-01 01:44:15 +00:00
bumpbot
ce238d39ef
Compress scripts/styles: 3.5-RC2-22958.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22958 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 17:41:19 +00:00
Ryan Boren
0996e3d153
Resolve race conditions in Attachments.more().
...
Props koopersmith
fixes #22656
git-svn-id: https://develop.svn.wordpress.org/trunk@22957 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 16:45:43 +00:00
Ryan Boren
303f2bd2ff
Resolve race conditions in Attachments.more(). Provides for smoother refreshes when searching and properly cleans out content components.
...
Props koopersmith
fixes #22656
git-svn-id: https://develop.svn.wordpress.org/trunk@22956 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 16:41:38 +00:00
bumpbot
b80e435481
Compress scripts/styles: 3.5-RC2-22955.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22955 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:54:16 +00:00
Ryan Boren
780c0ec85b
Properly pass WordPress uploading errors to wp.Uploader.
...
Props koopersmith
fixes #22655
git-svn-id: https://develop.svn.wordpress.org/trunk@22954 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:40:09 +00:00
bumpbot
98d7fb5e28
Compress scripts/styles: 3.5-RC2-22953. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22953 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:20:51 +00:00
Ryan Boren
06b9663f58
Refine media state machine methods.
...
* state( id ) becomes setState( id )
* get( id ) becomes state( id )
* state() stays the same
* previous() becomes lastState()
Props koopersmith
fixes #22652
git-svn-id: https://develop.svn.wordpress.org/trunk@22952 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:19:11 +00:00
Ryan Boren
d7ec10376b
Update the "Uploaded to this post" filter view when uploading new files.
...
* Add an Attachments collection filter for uploadedTo (post_parent).
* Correct an erroneous map from the non-existent parent prop to post_parent.
* Define default menuOrder and uploadedTo props for uploading attachments.
* Unify filterable props into a single method (improving validation performance for calls to set with multiple properties).
Props koopersmith
fixes #22654
git-svn-id: https://develop.svn.wordpress.org/trunk@22951 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:11:44 +00:00
bumpbot
74f9eabbd0
Compress scripts/styles: 3.5-RC2-22949.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22949 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:52:16 +00:00
Ryan Boren
c53137f535
Scope button classes so they can be used on the frontend without interfering with theme styles.
...
Props helenyhou, koopersmith
fixes #22644
git-svn-id: https://develop.svn.wordpress.org/trunk@22948 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:40:59 +00:00
Ryan Boren
5178ac86cb
RTL fixes for media and color picker.
...
Props ocean90
see #22453
git-svn-id: https://develop.svn.wordpress.org/trunk@22947 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 13:34:16 +00:00
Andrew Nacin
be096cf4a5
Pressing escape now closes the media modal. props koopersmith, see #22502 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22946 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 08:37:17 +00:00
Ryan Boren
17622c2daa
Improve switching between browser and upload state.
...
Props koopersmith
fixes #22628
git-svn-id: https://develop.svn.wordpress.org/trunk@22945 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 06:01:47 +00:00
bumpbot
020dfbc71a
Compress scripts/styles: 3.5-RC2-22944.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22944 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 05:39:13 +00:00
Ryan Boren
870250e617
Correctly insert images at caret position in IE8/7.
...
Props lessbloat
fixes #22638
git-svn-id: https://develop.svn.wordpress.org/trunk@22943 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 04:54:09 +00:00
Ryan Boren
e746a5dbb5
In the edit image modal, move Title to the advanced section and move Caption above Alt.
...
Props nacin
fixes #22646
git-svn-id: https://develop.svn.wordpress.org/trunk@22942 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 04:09:17 +00:00
Ryan Boren
d34177f831
Remove focus outline from admin bar elements.
...
Props azaozz, lessbloat, dllh
fixes #22643
git-svn-id: https://develop.svn.wordpress.org/trunk@22941 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 02:29:36 +00:00
Ryan Boren
405868616c
ImageOptim for uplaoder icons. see #22610
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22940 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 02:18:07 +00:00
Ryan Boren
b44ab8213f
Fix image alignment of the remove (X) icons in the media modal.
...
Props JerrySarcastic
fixes #22610
git-svn-id: https://develop.svn.wordpress.org/trunk@22939 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 02:17:14 +00:00
Ryan Boren
6b972a4c53
In the media modal, ensure modal events are always fired on its frame. This ensures restoreThickbox() and thus tbRemove() are called properly when clicking the close button of the modal.
...
Props koopersmith
fixes #22632
git-svn-id: https://develop.svn.wordpress.org/trunk@22938 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 01:55:37 +00:00
Ryan Boren
3c145e0d49
In the add media modal, fallback back to caption if alt is not set. Falback to title if neither caption nor alt are set.
...
Props koopersmith
see #18984
git-svn-id: https://develop.svn.wordpress.org/trunk@22937 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 01:38:41 +00:00
Ryan Boren
cdce6a366e
Introduce API to add back the description field in the new media popup.
...
Props nacin
fixes #22642
git-svn-id: https://develop.svn.wordpress.org/trunk@22929 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 23:52:30 +00:00
bumpbot
a792f59b19
Compress scripts/styles: 3.5-RC2-22928.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22928 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 22:09:26 +00:00
Andrew Nacin
5c0e068d3f
Send the alt attribute when sending attachments to the editor. fixes #22640 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22927 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 21:23:55 +00:00
Andrew Nacin
4a91b43ab2
3.5-RC2.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22926 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 19:31:56 +00:00
bumpbot
990f02a136
Compress scripts/styles: 3.5-RC1-22924.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22924 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 17:00:38 +00:00
Ryan Boren
6fbf7fcfbf
Revert accidental bits from r22919. see #22628
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22923 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:58:08 +00:00
bumpbot
972a3b7e43
Compress scripts/styles: 3.5-RC1-22922.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22922 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:17:06 +00:00
Ryan Boren
a26c25a8bc
Map the create_posts post type cap to upload_files for attachments.
...
Props nacin
fixes #16714
git-svn-id: https://develop.svn.wordpress.org/trunk@22921 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:14:07 +00:00
Ryan Boren
49b230b82a
Icons for select, deselect, and window close in the media modal.
...
Props JerrySarcastic, helenyhou, ocean90, lessbloat
fixes #22610
git-svn-id: https://develop.svn.wordpress.org/trunk@22920 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 14:36:12 +00:00
Ryan Boren
3ad110f078
Icons for select, deselect, and window close in the media modal.
...
Props JerrySarcastic, helenyhou, ocean90, lessbloat
fixes #22610
git-svn-id: https://develop.svn.wordpress.org/trunk@22919 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 13:33:57 +00:00
Andrew Nacin
3861f2bd9e
Update TinyMCE Spellchecker plugin to 2.0.6.1.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22917 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 02:45:16 +00:00
Andrew Nacin
caa083d2b4
Remove XML-RPC's blogger::getTemplate and setTemplate. They are not supported and do nothing.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22914 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 02:35:39 +00:00
bumpbot
de104a1ea6
Compress scripts/styles: 3.5-RC1-22913.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22913 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 01:37:15 +00:00
Ryan Boren
5c04a9daef
In the gallery editor, don't stomp on custom shortcode attributes.
...
Props koopersmith
fixes #22627
git-svn-id: https://develop.svn.wordpress.org/trunk@22912 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 01:06:21 +00:00
Ryan Boren
c8abb2071b
In wp_list_bookmarks(), don't stomp the categorize argument. Fixes categorized display in the links widget.
...
fixes #22216
git-svn-id: https://develop.svn.wordpress.org/trunk@22910 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 23:19:03 +00:00
bumpbot
0e62b927c3
Compress scripts/styles: 3.5-RC1-22909.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22909 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:58:34 +00:00
Andrew Nacin
5aac5cb3de
Use the create_posts post type cap in more places. Remove the janky create_posts meta cap. see #16714 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22908 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:28:20 +00:00
Ryan Boren
4e51b43ad3
Media modal: Don't fire two AJAX calls on settings update.
...
Props koopersmith
fixes #22611
git-svn-id: https://develop.svn.wordpress.org/trunk@22907 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 22:27:13 +00:00
Andrew Ozz
f2c4ad72d6
Media in Internet Explorer: ensure we save the caret bookmark for IE in TinyMCE for the right instance, fixes #22446
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22905 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 21:45:10 +00:00
Andrew Nacin
c121dfb0fc
Explicitly check for version 2.2.0 or higher of the Imagick PHP module, to ensure we can call queryFormats() statically. props DH-Shredder, fixes #22308 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22904 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 21:41:44 +00:00
Ryan Boren
bb1760e226
Route uploads through async-upload.php instead of admin-ajax.php.
...
Props nacin, koopersmith
fixes #22622
git-svn-id: https://develop.svn.wordpress.org/trunk@22902 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 20:17:57 +00:00
bumpbot
8925a2cf34
Compress scripts/styles: 3.5-RC1-22901.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22901 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 18:58:34 +00:00
Andrew Nacin
b60b857268
Use create_posts whenever linking to post-new.php. props johnbillion. fixes #16714 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22900 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 18:24:11 +00:00
Andrew Nacin
2520705252
Media: Rename the dialog to 'Add Media' from 'Insert Media' to match the button. see #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22895 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 17:18:50 +00:00
Andrew Nacin
d6f636d353
Some IE7 CSS hacks for media to fix the gallery view. props lessbloat. fixes #22609 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22894 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 17:17:43 +00:00
bumpbot
e1b8f42f4d
Compress scripts/styles: 3.5-RC1-22893.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22893 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 04:58:34 +00:00
Andrew Nacin
af63ca6803
Check if the object is empty, as objects are always truthy. props koopersmith. see #22593 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22892 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 04:41:24 +00:00
Andrew Nacin
82622db77e
In the gallery shortcode, handle mapping of "ids" to include and orderby before the post_gallery filter. see #21816 . fixes #22617 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22891 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 03:51:27 +00:00
bumpbot
19e522e83b
Compress scripts/styles: 3.5-RC1-22890.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22890 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 02:33:43 +00:00
Andrew Nacin
0cebbfe3e6
Media: Remove the link to the browser uploader. The only need for it is large files (> 100MB) in certain browsers (IE, Opera), so we will show the link then only. fixes #22604 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22889 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 02:28:10 +00:00
Andrew Nacin
99845d0384
Ensure attachment modal details are saved before the attachment details view is destroyed. props koopersmith. fixes #22593 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22888 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 02:03:31 +00:00
Daryl Koopersmith
2422ab4b83
Responsive CSS for the media modal. props azaozz. see #22615 , #21390 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22887 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 01:51:15 +00:00
Ryan Boren
c5c74b7a39
Scope media views CSS fallbacks.
...
Props koopersmith
fixes #22616
git-svn-id: https://develop.svn.wordpress.org/trunk@22886 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 01:45:06 +00:00
bumpbot
a5d63fdb91
Compress scripts/styles: 3.5-RC1-22885. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22885 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 00:58:44 +00:00
Andrew Nacin
6b911fa633
wp_print_media_templates() does not take an argument.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22884 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:50:26 +00:00
Andrew Nacin
92e85f9957
Editor: When hiding gallery/image editing buttons, use Sizzle rather than TinyMCE's internal DOM object. Avoids errors in case the elements do not exist, such as in Press This. props azaozz. fixes #22463 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22883 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:36:07 +00:00
Andrew Nacin
da9ff4451d
When editing a plain, legacy [gallery] shortcode, ensure we are sorting its contents using menu_order.
...
When attachments are sorted, we convert the shortcode to [gallery ids=""], as before.
props koopersmith.
fixes #22608 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22882 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:20:12 +00:00
Andrew Nacin
7ecac8a876
Media: Ensure the edit image and gallery buttons appear above DFW. They only must appear below the media modal. fixes #22541 . props koopersmith.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22881 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:07:41 +00:00
bumpbot
8d72af5bfc
Compress scripts/styles: 3.5-RC1-22879. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22879 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 20:58:37 +00:00
Ryan Boren
bf812ac283
Clear the object term relationships cache in wp_set_object_terms() rather than wp_set_post_terms(). This should be done lower in the stack than wp_set_post_terms().
...
Props batmoo
fixes #22560
git-svn-id: https://develop.svn.wordpress.org/trunk@22878 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:42:38 +00:00
Andrew Nacin
bccdaa137d
Media in Internet Explorer: Properly insert attachments into the editor at the location of the cursor. props azaozz. fixes #22446 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22877 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:24:56 +00:00
Andrew Nacin
3b941ca1b8
Media: IE fixes for attachment selections. props lessbloat. see #22446 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22876 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:14:36 +00:00
Andrew Nacin
7f34c3e8ec
Media: Introduce wp.media.editor.open(editor_id) and leverage it in distraction-free writing (fullscreen). props azaozz, koopersmith. fixes #22541 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22875 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:09:00 +00:00
bumpbot
fad058bf84
Compress scripts/styles: 3.5-RC1-22873.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22873 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 16:58:37 +00:00
Ryan Boren
d2d01ad797
Always send nocache_headers() for admin-ajax.php. This prevents iOS from caching ajax calls. http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results
...
Turn off multi selection uploads for mobile devices. Currently Plupload cannot upload multiple files in iOS Safari. Only the first file makes it to the queue.
Empty wp on unload to work around caching in iOS Safari.
Props azaozz, miqrogroove, nacin
fixes #22552
git-svn-id: https://develop.svn.wordpress.org/trunk@22872 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 16:17:53 +00:00
Ryan Boren
e0a32fe27b
Fix overflow of long filenames in the media modal.
...
Props koopersmith, GregLone
fixes #22554
git-svn-id: https://develop.svn.wordpress.org/trunk@22870 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:58:47 +00:00
Ryan Boren
6a9c14ed5f
Add a delete link to the media modal.
...
Props merty, nacin, koopersmith
fixes #22524
git-svn-id: https://develop.svn.wordpress.org/trunk@22869 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:50:59 +00:00
Ryan Boren
1f4eed3141
Don't use "embed" when referring to inserting from URL.
...
Props nacin
fixes #22603
git-svn-id: https://develop.svn.wordpress.org/trunk@22868 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:35:36 +00:00
Ryan Boren
b750487b07
Fix dragging in IE10 on touch devices.
...
Props georgestephanis, koopersmith
fixes #22583
git-svn-id: https://develop.svn.wordpress.org/trunk@22866 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 15:00:00 +00:00
Ryan Boren
b1f07f0ae1
Back compat $_REQUEST['post_id'] for media XHR requests.
...
Props koopersmith, nacin.
fixes #22588
git-svn-id: https://develop.svn.wordpress.org/trunk@22865 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 14:58:08 +00:00
Ryan Boren
31c86e27c2
Clean up WP_Image_Editor_Imagick::test(). Props DH-Shredder. see #22543
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22864 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 14:52:24 +00:00
Ryan Boren
8b1ebd858a
In wp_image_editor(), use wp_image_editor_supports() to check for rotation capabilities rather than directly checking the existence of the imagerotate function.
...
In WP_Image_Editor_GD::test(), check for existence of imagerotate if the rotate capability is required.
Props DH-Shredder
fixes #22597
git-svn-id: https://develop.svn.wordpress.org/trunk@22863 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 14:36:55 +00:00
Andrew Nacin
f7b3d1a854
Make the return of is_upload_space_available() more obvious. props georgestephanis. see #22585 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22861 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 03:42:02 +00:00
bumpbot
91f6658471
Compress scripts/styles: 3.5-RC1-22860. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22860 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 02:58:50 +00:00
Andrew Nacin
929d79714b
Remove wp_image_editor_class filter. wp_image_editors is sufficient. props scribu. fixes #22538 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22859 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 02:27:11 +00:00
Andrew Ozz
afb0b8627b
TinyMCE: improve hiding of the image/gallery popup buttons, fix selecting a gallery in IE, don't leave empty paragraph after deleting an image with the popup button, fixes #22463 , see #21390
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22857 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 01:31:51 +00:00
bumpbot
f54c353123
Compress scripts/styles: 3.5-RC1-22852.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22852 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:58:43 +00:00
Ryan Boren
9e26663d18
Rename 'id' to 'state' in menu item view.
...
Props koopersmith
fixes #22594
git-svn-id: https://develop.svn.wordpress.org/trunk@22851 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:49:45 +00:00
Ryan Boren
283e33bd58
Make wp_prepare_attachment_for_js() compatible with plugins that disable all intermediate image sizes (so no images are created on upload), and then create them on the fly using the image_downsize filter (say, with a URL that can dynamically create images on the fly).
...
Props nacin
fixes #22598
git-svn-id: https://develop.svn.wordpress.org/trunk@22850 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:46:56 +00:00
Ryan Boren
40f11fff98
More feature detection in WP_Image_Editor_Imagick::test().
...
Check existence of setIteratorIndex().
Props DH-Shredder, markoheijnen
see #22543
git-svn-id: https://develop.svn.wordpress.org/trunk@22849 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:40:34 +00:00
Ryan Boren
e12621eccb
In wp.media.editor:send, revert back to the old field names used by media_upload_form_handler() for easier back compat.
...
Fix notices in wp_ajax_send_attachment_to_editor().
Props nacin, azaozz, miqrogroove
fixes #22553
git-svn-id: https://develop.svn.wordpress.org/trunk@22847 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-26 22:08:50 +00:00
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