Commit Graph

20741 Commits

Author SHA1 Message Date
Andrew Nacin fe14a22e31 Introduce a new, cross-browser HiDPI CSS @media rule to be used everywhere.
{{{
@media print,
  (-o-min-device-pixel-ratio: 5/4),
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 120dpi) {
}}}

Serve HiDPI graphics for printing, regardless of screen resolution.

Specify Opera's vendor-prefixed device pixel ratio property, for Opera desktop.

Specify a minimum Webkit device pixel ratio of 1.25 instead of 1.5, to serve
2x images to Android devices that are between 1 and 1.5x (like the Nexus 7).
Firefox and Opera will respond to 1.5x on these devices, but Chrome will not.

Specify min-resolution, which covers Firefox 19. Opera on Android also supports
min-resolution, but Opera Mini does not support dppx, so the dpi unit is used.

props iammattthomas for the exhaustive research.
props lessbloat for patching.

fixes #22238.



git-svn-id: https://develop.svn.wordpress.org/trunk@22629 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:50:08 +00:00
Andrew Nacin 2fb495eba6 Prevent notices when post_id is not passed to the old media upload forms. props ldebrouwer. fixes #22465.
git-svn-id: https://develop.svn.wordpress.org/trunk@22628 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:42:14 +00:00
Andrew Nacin 436f8a519e Fix the padding of the waiting spinner when replying to comments. props lessbloat, SergeyBiryukov. fixes #22449.
git-svn-id: https://develop.svn.wordpress.org/trunk@22627 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:39:50 +00:00
Andrew Nacin d22207c523 Update down_arrow-2x.gif to have a transparent background. props lessbloat. fixes #22481.
git-svn-id: https://develop.svn.wordpress.org/trunk@22626 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 06:38:25 +00:00
potbot ee43a7ff53 POT, generated from r22621
git-svn-id: https://develop.svn.wordpress.org/trunk@22625 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:19:00 +00:00
potbot faba7f612a POT, generated from r22621
git-svn-id: https://develop.svn.wordpress.org/trunk@22624 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:18:49 +00:00
Andrew Nacin 9ea97e9dd9 Fix minified RTL style loading via load-styles.php. props ocean90. fixes #22482.
git-svn-id: https://develop.svn.wordpress.org/trunk@22623 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:18:33 +00:00
Ryan Boren a2d75840ce Define array to avoid notice.
Props ericmann
fixes #22479


git-svn-id: https://develop.svn.wordpress.org/trunk@22622 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:14:57 +00:00
Lance Willett f675bc1e34 Twenty Ten: clean up r22617, remove extra end comment and indent code. See #20469.
git-svn-id: https://develop.svn.wordpress.org/trunk@22621 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:06:01 +00:00
Lance Willett b6736b8a6b Twenty Twelve: remove extraneous comment. See #20469.
git-svn-id: https://develop.svn.wordpress.org/trunk@22620 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:04:57 +00:00
Ryan Boren d5c96a1e8b Add abstract methods back to WP_Image_Editor and refresh phpdoc.
Props DH-Shredder, markoheijnen, kurtpayne, nacin
see #6821


git-svn-id: https://develop.svn.wordpress.org/trunk@22619 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 22:02:21 +00:00
Ryan Boren 91d80348b8 Show the update nag in the network admin.
Props Mamaduka
fixes #20959


git-svn-id: https://develop.svn.wordpress.org/trunk@22618 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 21:52:48 +00:00
Lance Willett ca58fbc22d Twenty Ten: move the "Comments closed" text outside the `have_comments()` conditional, props kovshenin. Closes #20469.
git-svn-id: https://develop.svn.wordpress.org/trunk@22617 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 21:35:42 +00:00
Lance Willett 2ad1038e99 Twenty Eleven: in comments template check `get_comments_number()` instead of using `$comments_by_type` for showing a comments closed message. Props kovshenin, see #20469.
git-svn-id: https://develop.svn.wordpress.org/trunk@22616 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 21:31:02 +00:00
Lance Willett 13cb0aa9a3 Twenty Twelve: better fix for #20469 and comments closed messages, also load the comments template in single.php template regardless of whether comments are open or closed (consistent with page.php). Both props kovshenin.
git-svn-id: https://develop.svn.wordpress.org/trunk@22615 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 21:28:47 +00:00
Lance Willett d0dea25296 Twenty Twelve: improve arrow display in comment reply text, props miqrogroove. Also consistent styles for edit link to match reply link in color and size. Closes #22468.
git-svn-id: https://develop.svn.wordpress.org/trunk@22614 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 21:22:17 +00:00
bumpbot 861df27c7d Compress scripts/styles: 3.5-beta3-22613.
git-svn-id: https://develop.svn.wordpress.org/trunk@22613 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:58:32 +00:00
Daryl Koopersmith e36ce9af8e Media: zIndex peace was only temporary.
Revert [22611] in favor of using plupload's `container` setting. Turns out, plupload's flash shim is forced to the exact same index as the admin bar, so balancing the two is better solved by nesting the shim.

see #22441, #22446, #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22612 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:30:36 +00:00
Daryl Koopersmith 17ae09a2d4 Media: The zIndex arms race.
Adjusts zIndexes to be not-as-absurd as before, in the process moving the modal below the plupload flash shims (which do not have customizable zIndexes or classes, sadly).

fixes #22441, see #22446, #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22611 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 10:20:11 +00:00
Daryl Koopersmith b520130998 Media: Add an explicit border to menus to show a divider in older browsers. see #22446, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22610 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 09:47:00 +00:00
Daryl Koopersmith 8438636322 Media: Only display "Drop files" text when the browser supports drag and drop. see #22446, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22609 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 09:39:58 +00:00
Daryl Koopersmith 7ce0c04466 Media: Wrap the embed screen's alignment setting in a div instead of a label to avoid default browser selection behavior. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22608 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 01:49:11 +00:00
bumpbot 4bb9a6150c Compress scripts/styles: 3.5-beta3-22607. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22607 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 00:58:33 +00:00
Andrew Ozz c4622fdbf7 Editor: disable the textarea resizing handle on touch devices (cannot be used there), don't save TinyMCE's height in iOS as the user cannot set/change it there (it expands the iframe to full height), see #21718
git-svn-id: https://develop.svn.wordpress.org/trunk@22606 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 00:34:07 +00:00
Daryl Koopersmith b13b36db98 Media: Remove dead CSS. props ocean90, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22605 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 00:04:37 +00:00
Daryl Koopersmith 0583ab09f3 Media: RTL styles for the media modal. props ocean90. see #22453, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22604 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 23:58:33 +00:00
Daryl Koopersmith ee694739ec Media: Update in-grid captions.
* Use input fields instead of textboxes (which provide better handling for smaller attachments).
* Provide `data-setting` properties to properly sync the changes.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22603 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 23:53:06 +00:00
Andrew Ozz c20cd04a7b TinyMCE: fix and improve the popup buttons for editing images and galleries show/hide for touch devices, fix inconsistency in iOS when "touching" an image inside a link, see #21390
git-svn-id: https://develop.svn.wordpress.org/trunk@22602 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 23:49:19 +00:00
bumpbot 16efc358df Compress scripts/styles: 3.5-beta3-22601. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22601 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 22:58:31 +00:00
Andrew Ozz 3fb4a69c08 TinyMCE: extend the allowed obsolete attributes to include tr, th and td (thead, tfoot and tbody weren't around in HTML 3.2), see #22175
git-svn-id: https://develop.svn.wordpress.org/trunk@22600 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 22:56:44 +00:00
Andrew Nacin 709b1f25d0 Remove SimplePie 1.2/1.3 compatibility code no longer needed with 1.3.1. see #22321. see #21183.
git-svn-id: https://develop.svn.wordpress.org/trunk@22599 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 09:51:02 +00:00
bumpbot 6b7e6f9271 Compress scripts/styles: 3.5-beta3-22598.
git-svn-id: https://develop.svn.wordpress.org/trunk@22598 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 04:58:34 +00:00
Daryl Koopersmith 4a96fa19a4 Media: Only show the edit selection link for the media library. Make the upload attachments list sortable. Only retain the `silent` option when running `Attachments.validate()`. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22597 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 03:09:35 +00:00
bumpbot 3db488d2e3 Compress scripts/styles: 3.5-beta3-22596.
git-svn-id: https://develop.svn.wordpress.org/trunk@22596 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 02:58:37 +00:00
Daryl Koopersmith a3c53653ba Media: Prevent text from being selected in the menu. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22595 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 02:51:31 +00:00
Daryl Koopersmith bf105feb4e Media: Enter batch insert workflow by editing the selection instead of having an explicit button. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22594 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 02:36:06 +00:00
Andrew Nacin 858f0343d3 jQuery 1.8.3. fixes #22432.
git-svn-id: https://develop.svn.wordpress.org/trunk@22593 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 02:26:22 +00:00
Andrew Nacin 2dac32634e Round rather than floor values in image editing JS to avoid decrementing values on each run. props SergeyBiryukov. fixes #22011.
git-svn-id: https://develop.svn.wordpress.org/trunk@22592 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 02:20:29 +00:00
potbot 45bcf643e8 POT, generated from r22589
git-svn-id: https://develop.svn.wordpress.org/trunk@22591 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 01:19:13 +00:00
potbot a5baedb09f POT, generated from r22589
git-svn-id: https://develop.svn.wordpress.org/trunk@22590 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 01:19:08 +00:00
bumpbot 33cbea6805 Compress scripts/styles: 3.5-beta3-22589. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22589 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 00:58:36 +00:00
Lance Willett 43107f767c Twenty Eleven: better closed comments notes. Check only for "comment" type comments when deciding whether to show the message. Props iandstewart and obenland, closes #20469.
git-svn-id: https://develop.svn.wordpress.org/trunk@22588 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 00:48:03 +00:00
Lance Willett 05d7baa79a Twenty Twelve: better closed comments notes. Check only for "comment" type comments when deciding whether to show the message.
git-svn-id: https://develop.svn.wordpress.org/trunk@22587 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 00:43:43 +00:00
Andrew Ozz 434af4ce3e TinyMCE: fix styles, add 2x background icons and load buttons.css in the Edit Image modal, remove wp-view styles from content.css, add 2x icons for the popup buttons (for editing image and gallery), fixes #22447, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@22586 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 23:21:59 +00:00
bumpbot 5c08470293 Compress scripts/styles: 3.5-beta3-22584.
git-svn-id: https://develop.svn.wordpress.org/trunk@22585 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 22:58:34 +00:00
Peter Westwood 5013098029 XMLRPC: When Editing an existing post make sure to use wp_update_post instead of wp_insert_post so as to not perform destructive actions on the content.
The wp.EditPost() API will accept very limited data to only edit specific attributes of a post, if you didn't supply a category change then we would previously
overwrite the original categories with the default cat.

Fixes #22220 props nacin.


git-svn-id: https://develop.svn.wordpress.org/trunk@22584 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 22:58:24 +00:00
Daryl Koopersmith 38a2ba2c5b Media: Unify the "Insert" and "Insert.Post" toolbars. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22583 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 22:40:34 +00:00
Andrew Nacin 3d75ef25d8 For postboxes, only show arrows/handles on hover when JS is enabled (for HiDPI). props TobiasBg. fixes #21611.
git-svn-id: https://develop.svn.wordpress.org/trunk@22582 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 22:22:55 +00:00
Andrew Nacin d1e099ce09 Require Imagick 2.1.1 or greater, based on whether the queryFormats() method can be called statically.
props markoheijnen, DH-Shredder. fixes #22308.



git-svn-id: https://develop.svn.wordpress.org/trunk@22581 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 22:19:32 +00:00
Daryl Koopersmith 55a3f09ec4 Media: Improve image size-related UI and code.
* Add dimensions to the "sizes" dropdown.
* Ensure a `full` size is generated in `wp_prepare_attachment_for_js()`.
* Print the dimensions for the full size in the attachment summary (instead of those for the current size).
* When generating the attachment view's template, map `imageSize()` to the `size` property instead of overriding the default data.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22580 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 22:08:02 +00:00