Commit Graph

11317 Commits

Author SHA1 Message Date
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