Wordpress/wp-includes/js
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
..
crop Use ImageOptim to losslessly smush our images. About half a MB in savings! fixes #22381. props waldojaquith 2012-11-07 18:49:10 +00:00
imgareaselect Use ImageOptim to losslessly smush our images. About half a MB in savings! fixes #22381. props waldojaquith 2012-11-07 18:49:10 +00:00
jcrop Remove svn:executable property from SimplePie and jcrop files 2012-11-21 22:18:48 +00:00
jquery jQuery UI 1.9.2. props ocean90. fixes #22563. 2012-11-26 01:20:40 +00:00
plupload Compress scripts/styles: 3.5-RC3-23080. 2012-12-05 21:22:59 +00:00
swfupload Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
thickbox Introduce a new, cross-browser HiDPI CSS @media rule to be used everywhere. 2012-11-17 06:50:08 +00:00
tinymce Restore the Description field to the media UI in 3.5. 2012-12-06 00:41:06 +00:00
admin-bar.js Toolbar: sync jQuery and non-jQuery JS behaviour when there's a hash in the url, props tlovett1, fixes #22520 2012-11-20 20:45:03 +00:00
admin-bar.min.js Compress scripts/styles: 3.5-beta3-22729. 2012-11-20 20:58:28 +00:00
autosave.js 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. 2012-11-21 21:04:04 +00:00
autosave.min.js Compress scripts/styles: 3.5-beta3-22801. 2012-11-21 22:58:36 +00:00
backbone.min.js Please welcome Underscore.js and Backbone.js to core. fixes #21664. 2012-08-22 22:24:20 +00:00
colorpicker.js Pinking shears 2012-11-17 15:11:29 +00:00
colorpicker.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
comment-reply.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
comment-reply.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
customize-base.js Improve the lazy instantiation of the 'wp' JavaScript variable. props evansolomon, fixes #22113. 2012-10-06 00:43:36 +00:00
customize-base.min.js Compress scripts/styles: 3.5-beta1-22128. 2012-10-07 02:27:48 +00:00
customize-loader.js Customizer: Track the link that was used to open the customizer and restore focus on close. props lessbloat. fixes #21283. 2012-11-21 13:17:10 +00:00
customize-loader.min.js Compress scripts/styles: 3.5-beta3-22763. 2012-11-21 14:58:31 +00:00
customize-preview.js Theme Customizer: Correctly update background-attachment property in live preview 2012-10-07 14:46:39 +00:00
customize-preview.min.js Compress scripts/styles: 3.5-beta1-22133. 2012-10-07 22:58:41 +00:00
hoverIntent.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
hoverIntent.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
json2.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
json2.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
mce-view.js Media: Restore 3.4 editor behavior and remove TinyMCE views. 2012-11-14 07:17:22 +00:00
mce-view.min.js Compress scripts/styles: 3.5-beta3-22572. TinyMCE updated. 2012-11-14 15:00:31 +00:00
media-editor.js Restore the Description field to the media UI in 3.5. 2012-12-06 00:41:06 +00:00
media-editor.min.js Compress scripts/styles: 3.5-RC3-23073. 2012-12-05 10:58:32 +00:00
media-models.js Media models: Trac and ignore deleted attachments. 2012-12-05 02:31:41 +00:00
media-models.min.js Compress scripts/styles: 3.5-RC3-23059. 2012-12-05 02:58:34 +00:00
media-views.js Restore the Description field to the media UI in 3.5. 2012-12-06 00:41:06 +00:00
media-views.min.js Compress scripts/styles: 3.5-RC3-23078. 2012-12-05 19:22:54 +00:00
quicktags.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
quicktags.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
shortcode.js Media: Restore 3.4 editor behavior and remove TinyMCE views. 2012-11-14 07:17:22 +00:00
shortcode.min.js Compress scripts/styles: 3.5-beta3-22572. TinyMCE updated. 2012-11-14 15:00:31 +00:00
swfobject.js Update swfobject 2012-04-17 23:09:29 +00:00
tw-sack.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
tw-sack.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
underscore.min.js Update underscore.js to version 1.4.1. fixes #22081, see #22026. 2012-10-03 00:27:16 +00:00
utils.js Move utils.js (cookie and user setting functions) to wp-includes to enable front-end use. 2012-12-04 19:29:56 +00:00
utils.min.js Move utils.js (cookie and user setting functions) to wp-includes to enable front-end use. 2012-12-04 19:29:56 +00:00
wp-ajax-response.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-ajax-response.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-list-revisions.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-list-revisions.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-lists.js Kill use of colons in class names, props SergeyBiryukov, fixes #21152 2012-11-06 01:01:52 +00:00
wp-lists.min.js Compress scripts/styles: 3.5-beta2-22407. 2012-11-06 22:58:35 +00:00
wp-pointer.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wp-pointer.min.js Switch to .min for compressed JS and CSS files. 2012-08-23 00:04:18 +00:00
wplink.js New HiDPI spinner. Uses clean <span class="spinner"></span> markup. 2012-09-26 19:57:44 +00:00
wplink.min.js Compress scripts/styles: 3.5-alpha-22024. 2012-09-26 22:58:46 +00:00