Commit Graph

1791 Commits

Author SHA1 Message Date
Andrew Nacin 5ca8aa7447 Revisions changes.
* Eliminates the bloated Revisions meta box in favor of 'Revisions: #' in the publish box.
 * Adds ability to compare autosave to current post, when revisions are disabled.
 * Makes autosaves stand out visually, including "Restore This Autosave".

Also:
 * Adds missing capability check for restoring a revision.
 * When no revision matches the post's current modified time, avoid marking an autosave as 'current'.
 * Fixes wp_get_post_autosave() to return an autosave even when revisions are disabled.
 * Add 'check_enabled' arg to wp_get_post_revisions(); false avoids the wp_revisions_enabled() check.
 * Adds a responsive slider that is narrower for fewer versions. props markjaquith.

see #24804.



git-svn-id: https://develop.svn.wordpress.org/trunk@24790 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-24 06:08:14 +00:00
bumpbot 6cd90cfb14 Compress scripts/styles: 3.6-RC1-24776.
git-svn-id: https://develop.svn.wordpress.org/trunk@24776 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-23 04:58:52 +00:00
Mark Jaquith 251f729cb1 Revisions: a tiny one-pixel and z-index tweak for Firefox.
Props adamsilverstein. See #24736.

git-svn-id: https://develop.svn.wordpress.org/trunk@24775 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-23 03:41:54 +00:00
bumpbot e1ce64b505 Compress scripts/styles: 3.6-RC1-24773.
git-svn-id: https://develop.svn.wordpress.org/trunk@24773 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-22 22:58:51 +00:00
Mark Jaquith fb95ae95f0 Revisions: Don't pin controls to the top in IE 7.
Seriously IE 7 users, this is more consideration than your browser deserves. You can thank us by upgrading.

See #24736. Props adamsilverstein.

git-svn-id: https://develop.svn.wordpress.org/trunk@24772 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-22 22:37:02 +00:00
Mark Jaquith a0df1d139a Revisions: Bump the tooltips up one pixel to prevent a Firefox hover-loop bug on the upper-border of the scrubber.
See #24736.

git-svn-id: https://develop.svn.wordpress.org/trunk@24770 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-22 22:04:38 +00:00
Mark Jaquith c8480cf1ae Revisions: RTL for [24761].
Props ocean90. See #24804.

git-svn-id: https://develop.svn.wordpress.org/trunk@24769 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-22 21:09:55 +00:00
Mark Jaquith dcc7719f54 Revisions: tweak how tickmarks are rendered, to play nice with browsers who always round subpixel values down (Safari, Opera).
Also, some IE tweaks.

Fixes #24736. Props adamsilverstein, markjaquith, ocean90.

git-svn-id: https://develop.svn.wordpress.org/trunk@24768 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-22 21:09:49 +00:00
bumpbot 7164de7311 Compress scripts/styles: 3.6-RC1-24764.
git-svn-id: https://develop.svn.wordpress.org/trunk@24764 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-22 06:58:52 +00:00
Mark Jaquith 56f1a3fa32 Revisions: Pinned controls, layout tweaks, copy tweaks, misc.
* When you scroll down the diff view, the controls will pin to the top.
* The revisions meta view was cleaned up. Copy changes.
* Loading indicator in the center of the screen (so it follows as you scroll).
* Tooltips "flip" when you cross the center line, so that they don't hit the container edge and wrap for later revisions.
* The "Restore" button's inactive state is handled on render, instead of after.
* Make sure we always have a current revision, even if the timestamp doesn't work out on the most recent one.

See #24804. Props markjaquith, nacin, ocean90, aaroncampbell.

git-svn-id: https://develop.svn.wordpress.org/trunk@24761 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-22 05:05:45 +00:00
bumpbot 40153f6e16 Compress scripts/styles: 3.6-RC1-24757.
git-svn-id: https://develop.svn.wordpress.org/trunk@24757 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-20 06:58:59 +00:00
Mark Jaquith 7852bf8701 Revisions: hide tick marks and tooltips for IE 7.
Not worth the effort it would take to get them to work.

Props adamsilverstein. Fixes #24736.

git-svn-id: https://develop.svn.wordpress.org/trunk@24756 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-20 06:15:28 +00:00
bumpbot ca1ac92ba4 Compress scripts/styles: 3.6-RC1-24754.
git-svn-id: https://develop.svn.wordpress.org/trunk@24754 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-19 16:59:02 +00:00
Mark Jaquith e43a442bad WORLD WAR Z-INDEX: Restoration of sanity to revisions/slider/menu z-index values.
The year is 2013. It is a period of DOM unrest. Sliders have hoarded
all available z-index, leading to an arms race. What started as a local
squabble soon escalated into a global conflict. The flyout menus were
the first of the collateral damage, trodden underfoot by mighty warring
enemies they couldn't effectively challenge. It was said they were
betrayed by one of their own: the z-index-power-hungry non-active
currently-hovered submenu, whose z-index-power level was over 9000!

But there is hope. A small band of heroes has emerged. Using their
powers of "what were you thinking?" and "chill, no one needs a z-index
THAT high", they have begun to restore order and harmony to the DOM.

See #24736. Props markjaquith, aaroncampbell, helen.

git-svn-id: https://develop.svn.wordpress.org/trunk@24753 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-19 15:47:04 +00:00
bumpbot cfbcacfb5f Compress scripts/styles: 3.6-RC1-24752.
git-svn-id: https://develop.svn.wordpress.org/trunk@24752 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-19 14:58:50 +00:00
Mark Jaquith a8611d2a13 Revisions: Re-work how tick marks and tooltips are aligned. IE fixes.
* Pixel-based alignment of tooltips.
* Bottom-based alignment, so arrow lines up using CSS only.
* Better RTL styles (mostly mirror-imaged).
* Better RTL calculations in `revisions.js` (less logic).
* Better IE support.

See #24736. Props markjaquith, adamsilverstein, ocean90.

git-svn-id: https://develop.svn.wordpress.org/trunk@24751 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-19 13:49:15 +00:00
bumpbot 76dae29fc7 Compress scripts/styles: 3.6-RC1-24746.
git-svn-id: https://develop.svn.wordpress.org/trunk@24746 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-18 22:58:50 +00:00
Andrew Nacin 3176613bc0 Better 'Connection lost' notice that includes an indication of activity. fixes #24695.
git-svn-id: https://develop.svn.wordpress.org/trunk@24743 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-18 21:33:59 +00:00
bumpbot 8d6bc51ede Compress scripts/styles: 3.6-RC1-24737.
git-svn-id: https://develop.svn.wordpress.org/trunk@24737 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-18 18:58:49 +00:00
Mark Jaquith 8415e7f1fe Fixes and tweaks for the metabox accordion.
* Fixed hover issues in Customizer.
* Toned down the default active/hover style (as it is normally not the top level menu, and should not be so prominent).
* Allow the active section to be closed.
* Other misc fixes.

Props ocean90, helen. Fixes #23449.

git-svn-id: https://develop.svn.wordpress.org/trunk@24734 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-18 17:42:53 +00:00
bumpbot fb6badbc6f Compress scripts/styles: 3.6-RC1-24733.
git-svn-id: https://develop.svn.wordpress.org/trunk@24733 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-18 16:58:54 +00:00
Mark Jaquith 3dd36021d8 Revisions: Better error handling.
* Shows an error message if the current diff can't be loaded.
* For bulk pre-loading, catches errors, and cuts subsequent requests in half, until eventually giving up.
* Some CSS fixes related to this, and the loading spinner.
* `wp.revisions.loadAll()` now returns a promise representing whether or not all revisions could be loaded.

Fixes #24758.

git-svn-id: https://develop.svn.wordpress.org/trunk@24732 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-18 16:35:19 +00:00
bumpbot 04053d5dcb Compress scripts/styles: 3.6-RC1-24704.
git-svn-id: https://develop.svn.wordpress.org/trunk@24704 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-13 16:58:47 +00:00
Dominik Schilling (ocean90) 7fc84c3d6d Missing RTL for [24566]. see #24546.
git-svn-id: https://develop.svn.wordpress.org/trunk@24703 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-13 16:54:45 +00:00
bumpbot 61eaa1d080 Compress scripts/styles: 3.6-beta4-24700.
git-svn-id: https://develop.svn.wordpress.org/trunk@24700 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-13 02:58:56 +00:00
Mark Jaquith fb9fbad8cd Revisions: RTL tooltip fixes. Plus a fix for switching to compare-two mode while looking at the first revision.
Also, a meta box avatar RTL alignment fix. props DrewAPicture.

Fixes #24739.

git-svn-id: https://develop.svn.wordpress.org/trunk@24698 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-13 02:49:53 +00:00
bumpbot 9647c32185 Compress scripts/styles: 3.6-beta4-24697.
git-svn-id: https://develop.svn.wordpress.org/trunk@24697 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-13 00:58:52 +00:00
Andrew Ozz 1989f70fd1 Logged out warnings:
- Replace the Close button with an always visible "X" icon in the top/right corner.
- Check if the user is still logged in every 3 min. by default.
- Add 'wp_auth_check_interval' filter so the interval can be set from PHP.
See #23295.

git-svn-id: https://develop.svn.wordpress.org/trunk@24695 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 23:32:32 +00:00
bumpbot 3275463453 Compress scripts/styles: 3.6-beta4-24690.
git-svn-id: https://develop.svn.wordpress.org/trunk@24690 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 20:58:53 +00:00
Mark Jaquith 3e1cafce65 Revisions: force a scroll bar so that everything doesn't jerk around as you scrub due to the scroll bar popping in and out.
See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24688 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 20:44:37 +00:00
Mark Jaquith b10a51b03e Revisions: more graceful tooltips
* Use hoverIntent to prevent inadvertent display and provide more forgiving exploration.
* Nice interruptable fading animation.
* Subtle CSS transition when moving the tooltip side-to-side.

Fixes #24734. See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24686 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 20:34:14 +00:00
bumpbot 91636339bc Compress scripts/styles: 3.6-beta4-24681.
git-svn-id: https://develop.svn.wordpress.org/trunk@24681 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 18:58:55 +00:00
Helen Hou-Sandi f04053fdd8 Tweaks to the accordion:
* Enqueues JS in `do_accordion_sections()`.
* Top and bottom rounded corners for the nav menu accordion.
* Better RTL and no-JS.

props lessbloat, DrewAPicture, aaroncampbell, helen. fixes #23449.


git-svn-id: https://develop.svn.wordpress.org/trunk@24680 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 18:16:29 +00:00
Mark Jaquith c6c1301cf0 Revisions: pixel perfect tooltips (as far as I can tell), and better checkbox alignment in Firefox.
See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24677 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 17:06:01 +00:00
bumpbot 8142fe4a77 Compress scripts/styles: 3.6-beta4-24676.
git-svn-id: https://develop.svn.wordpress.org/trunk@24676 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 16:58:53 +00:00
Mark Jaquith b71197e282 Revisions: Tweak the slider image and alignment.
See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24675 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 16:49:14 +00:00
Mark Jaquith 059c800243 Revisions: Use all the vendor prefixes for box-sizing.
See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24673 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 15:10:57 +00:00
bumpbot 60e8683a41 Compress scripts/styles: 3.6-beta4-24672.
git-svn-id: https://develop.svn.wordpress.org/trunk@24672 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 14:58:49 +00:00
Mark Jaquith 3584dd58a9 Revisions: Cleanup, bug fixes, refactoring, polish.
* Hide the tooltip initially.
* Fix a bug with routing.
* Further separate the Slider model and view, refactoring its code.
* More reliance on events than direct calls between areas.
* Smarter background diff loading (single mode). Loads the diffs closest to your position first.
* Removed a bunch of manual templating and `render()` methods. Now relies more on the WP Backbone Views functionality.
* include the requested `id` in `ensure:load`.
* new trigger: `ensure`, for `ensure()` attempts, regardless of whether they are already loaded.
* pass along a promise in both `ensure` and `ensure:load`.
* in `ensure`, remove requests for diffs we aready have

See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24671 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 14:01:39 +00:00
bumpbot 88b8cd8f2f Compress scripts/styles: 3.6-beta4-24669.
git-svn-id: https://develop.svn.wordpress.org/trunk@24669 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 06:19:07 +00:00
Mark Jaquith d88021e236 Revisions: Loading indicator, cleanup, bug fixes.
* Loading indicator when the user is waiting for a trip to the server.
* Bug fixes for diff priming.
* Fix the date display.
* Forget about local comparator, instead order by `modified` on the server.
* Initialize the frame model before the view (this was the source of a LOT of heartache).

git-svn-id: https://develop.svn.wordpress.org/trunk@24667 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 05:11:56 +00:00
bumpbot 9fe8848e7b Compress scripts/styles: 3.6-beta4-24662.
git-svn-id: https://develop.svn.wordpress.org/trunk@24662 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 18:58:51 +00:00
Mark Jaquith 9c1bac9eba Revisions: Use jQuery animation.
The CSS3 animations caused issues because the element was still there, and there is no standard way to know when a CSS3 animation is done.

See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24660 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 18:43:12 +00:00
bumpbot 7edc21a054 Compress scripts/styles: 3.6-beta4-24659.
git-svn-id: https://develop.svn.wordpress.org/trunk@24659 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 10:58:54 +00:00
Mark Jaquith c5d53046a9 Revisions: Bunch of refactoring and code cleanup
* Extracted a lot of model-y stuff from the view code.
* Slider now has a proper model, with communication with other models.
* Use of `get( foo )` instead of `findWhere({ id: foo })`.
* Properly set the `from` diff when routing single mode.
* Bind `prev()` and `next()` to their model.
* Tick marks are now percentage based, which means the slider resizes with the browser, without JS resize events.
* When scrubbing, the position of the scrubber is considered a hover, so you can fall off the timeline while still scrubbing and the tooltips will persist.
* Tooltips fade in and out.
* Tooltips hang around for a grace period instead of immediately going away. More forgiving.
* Unused code paths removed.
* Got rid of a bunch of view-to-view communication.
* Use `_.times()` instead of a `for` loop.
* Removed premature `Math.floor()` and `Math.ceil()` calls that were making things not add up to 100%.

See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24658 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 09:14:14 +00:00
bumpbot 792fd2aab9 Compress scripts/styles: 3.6-beta4-24645.
git-svn-id: https://develop.svn.wordpress.org/trunk@24645 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-10 16:58:55 +00:00
Helen Hou-Sandi 974508b221 Add sliding animations to the accordion. props kovshenin, DrewAPicture, helen. fixes #23890.
git-svn-id: https://develop.svn.wordpress.org/trunk@24644 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-10 16:32:09 +00:00
bumpbot 707fe97ed8 Compress scripts/styles: 3.6-beta4-24640.
git-svn-id: https://develop.svn.wordpress.org/trunk@24640 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-10 06:58:52 +00:00
Andrew Nacin 323b54bd13 Some RTL changes for the plugin information box.
props JDTrower, SergeyBiryukov, ocean90, ramiy.
fixes #22897.



git-svn-id: https://develop.svn.wordpress.org/trunk@24633 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-10 05:01:33 +00:00
bumpbot d42e1e99ed Compress scripts/styles: 3.6-beta4-24632.
git-svn-id: https://develop.svn.wordpress.org/trunk@24632 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-10 04:58:53 +00:00