Commit Graph

22872 Commits

Author SHA1 Message Date
Mark Jaquith 77813f267e Turn off debug mode in revisions.
See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24699 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-13 02:53:59 +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 Nacin 4f458cb0d8 ID3 1.9.7.
props wonderboymusic.
fixes #24737.



git-svn-id: https://develop.svn.wordpress.org/trunk@24696 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-13 00:37:36 +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 343d1f2333 Compress scripts/styles: 3.6-beta4-24694.
git-svn-id: https://develop.svn.wordpress.org/trunk@24694 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 22:58:49 +00:00
Andrew Nacin a8fb7603c6 Revert title auto-generation for asides and statuses.
Reverts [24043] and related.

fixes #24011.



git-svn-id: https://develop.svn.wordpress.org/trunk@24693 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 22:35:38 +00:00
Andrew Nacin e1edb8a3c8 Revert ?format= on post.php. see #24116.
git-svn-id: https://develop.svn.wordpress.org/trunk@24692 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 22:11:42 +00:00
Andrew Nacin cbc7814345 For an intermittent connection, only disable save and publish buttons when the request times out. An error still means a we have a connection.
props azaozz.
see #24695.



git-svn-id: https://develop.svn.wordpress.org/trunk@24691 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 21:07:44 +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
Dominik Schilling (ocean90) 8336111b52 Revisions: Disable URL updating if a browser doesn't support the History API. Like IE < 10.
props markjaquith. see #24736.

git-svn-id: https://develop.svn.wordpress.org/trunk@24689 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 20:51:10 +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
Andrew Nacin ce57a4b115 Avoid empty header color after enabling header text via Customizer. props obenland, fixes #23761.
git-svn-id: https://develop.svn.wordpress.org/trunk@24687 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 20:41:46 +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
Andrew Nacin 694a03be6a Drop get_images_in_content() and get_image_in_content(), until recently get_content_image(s)(). fixes #24202.
git-svn-id: https://develop.svn.wordpress.org/trunk@24685 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 20:34:07 +00:00
Andrew Nacin 09658b5a03 Add types parameter to get_media_embedded_in_content(). props aaroncampbell. see #24202.
git-svn-id: https://develop.svn.wordpress.org/trunk@24684 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 19:51:59 +00:00
Andrew Nacin 3a408ff249 Move get_url_in_content() out of post-formats.php. see #24202.
git-svn-id: https://develop.svn.wordpress.org/trunk@24683 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 19:38:37 +00:00
Andrew Nacin a187c535ca Simplify and reduce the new media/content extraction functions.
The URL extraction function is now get_url_in_content(). For more, see #24202.

Also adds filters to get_post_galleries() and get_post_gallery(). fixes #24309.



git-svn-id: https://develop.svn.wordpress.org/trunk@24682 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 19:34:59 +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 f215ae599a Revisions: Code and whitespace cleanup.
See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24679 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 18:14:23 +00:00
Mark Jaquith db9e747264 Revisions: Have the tooltip follow the "from" scrubber handle when that is the one being moved, in compare-two mode.
See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24678 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 17:25:27 +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
Andrew Nacin 48b64ab3e2 Remove 'sorted' from do_accordion_sections(). fixes #23450.
git-svn-id: https://develop.svn.wordpress.org/trunk@24674 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 15:43:00 +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
Mark Jaquith b7e1e25e36 Fix a PHP 5.4-ism that slipped in.
git-svn-id: https://develop.svn.wordpress.org/trunk@24670 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 07:26:11 +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 2e2ed518e9 Revisions: sort by date, not modified, to match revisions meta box.
See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24668 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 05:41:39 +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
Mark Jaquith 539440d159 Revisions: use `reject()`, not `fail()`, when rejecting a deferred.
See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24666 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-12 05:11:50 +00:00
bumpbot a73c2969dd Compress scripts/styles: 3.6-beta4-24665.
git-svn-id: https://develop.svn.wordpress.org/trunk@24665 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 22:58:49 +00:00
Mark Jaquith 1fb9b2cfa1 Revisions: real URLs and preloading of the requested diff.
* Real URLs are being used now, using pushState. `?revision={id}` or `?from={from}&to={to}`.
* Drop the redundant `action=edit` from the URLs (this is the default).
* The initial comparison is preloaded, whether a single revision or a compare-two situation.

See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24664 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 22:56:48 +00:00
Andrew Nacin 05006a0da4 Compare GMT to GMT. see #24425.
git-svn-id: https://develop.svn.wordpress.org/trunk@24663 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 20:57:47 +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 f22e1a65d2 Revisions: Immediately do a disabled button check on `ready()`.
Solves the issue of Prev/Next buttons not being disabled on initial load, when routing to an extremity.

See #24425.

git-svn-id: https://develop.svn.wordpress.org/trunk@24661 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 18:43:18 +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
Andrew Nacin b018ab15f1 Twenty Thirteen: Use the child selector when styling paragraphs in a status post. props celloexpressions, fixes #24676.
git-svn-id: https://develop.svn.wordpress.org/trunk@24657 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 01:01:38 +00:00
bumpbot 8f7c8150d1 Compress scripts/styles: 3.6-beta4-24656.
git-svn-id: https://develop.svn.wordpress.org/trunk@24656 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 00:58:52 +00:00
Andrew Ozz 12c0ce7913 Logged out warnings:
- Close the iframe immediately on successful login.
- Catch iframe origin exceptions in WebKit when there is a server error or another page is loaded in the iframe.
See #23295.

git-svn-id: https://develop.svn.wordpress.org/trunk@24655 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 00:44:37 +00:00
Andrew Ozz 73697f9577 Add file header to heartbeat.js, props DrewAPicture, fixes #24723
git-svn-id: https://develop.svn.wordpress.org/trunk@24654 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 00:35:52 +00:00
bumpbot d653baf6da Compress scripts/styles: 3.6-beta4-24653.
git-svn-id: https://develop.svn.wordpress.org/trunk@24653 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 00:22:41 +00:00
Andrew Nacin 31322f220a Rename wp.xhr to wp.ajax to match admin-ajax.php (which it uses), jQuery.ajax (which it wraps), etc. see #24424.
git-svn-id: https://develop.svn.wordpress.org/trunk@24652 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 00:20:36 +00:00
Andrew Nacin b970bdd914 Modify todo in wp_ajax_autosave(). fixes #23665.
git-svn-id: https://develop.svn.wordpress.org/trunk@24651 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-11 00:06:52 +00:00
Andrew Nacin 52897ae4b9 Don't store a revision for the initial call to wp_insert_post(), only on saves.
In core UI (and XML-RPC), we first create an auto-draft via get_default_post_to_edit(), which means the first "save" is in practice the first revision.

This reverts [23842].

fixes #24708.



git-svn-id: https://develop.svn.wordpress.org/trunk@24650 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-10 22:40:42 +00:00