Commit Graph

1599 Commits

Author SHA1 Message Date
Andrew Ozz 45f54b41d8 Logged out warnings: add fallback text dialog for:
- The login page has "X-Frame-Options: DENY" header.
- Cross-domain when displaying on the front-end on multisite with domain mapping.
- The site forces ssl login but not ssl admin.

Add onbeforeunload prompt to counter (frame-busting) JS redirects. Move the JS and CSS into separate files. See #23295.

git-svn-id: https://develop.svn.wordpress.org/trunk@23805 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-27 08:43:11 +00:00
bumpbot 198beee877 Compress scripts/styles: 3.6-alpha-23797.
git-svn-id: https://develop.svn.wordpress.org/trunk@23797 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-26 00:58:40 +00:00
Andrew Ozz 6d5bbd04bc Local autosave: remove the locally stored data after a post is saved. This prevents false positives when several users edit the same post multiple times. See #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23796 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-25 23:43:06 +00:00
bumpbot e3023dcdbb Compress scripts/styles: 3.6-alpha-23746. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23746 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 20:58:39 +00:00
Andrew Ozz cc7ca57f85 Editor: preserve the textarea content when saving, wpautop is not used and TinyMCE is hidden. Props WraithKenny, fixes #23743
git-svn-id: https://develop.svn.wordpress.org/trunk@23745 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 20:40:39 +00:00
bumpbot 9e7cac887b Compress scripts/styles: 3.6-alpha-23736.
git-svn-id: https://develop.svn.wordpress.org/trunk@23736 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 22:58:39 +00:00
Andrew Ozz c996f27c4d Create one autosave per user rather than a single autosave for all users. Remove unused code from autosave.js and wp_ajax_autosave(). See #23665.
git-svn-id: https://develop.svn.wordpress.org/trunk@23735 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 21:15:43 +00:00
Dion Hulse eff3a330f8 Move the Mediaelement.js include into the wp-includes/js folder, rather than wp-includes directly. Fixes the mediaplayer in browsers which don't support <audio> directly.
Props DrewAPicture See #23282.


git-svn-id: https://develop.svn.wordpress.org/trunk@23732 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 08:43:19 +00:00
bumpbot e4071c0d8b Compress scripts/styles: 3.6-alpha-23731.
git-svn-id: https://develop.svn.wordpress.org/trunk@23731 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 06:58:41 +00:00
Mark Jaquith 0132e8100c Introduce [audio] and [video] shortcodes, and use MediaElement.js to play them.
props wonderboymusic. see #23282.

git-svn-id: https://develop.svn.wordpress.org/trunk@23729 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-16 05:25:44 +00:00
bumpbot 951a73e486 Compress scripts/styles: 3.6-alpha-23706.
git-svn-id: https://develop.svn.wordpress.org/trunk@23706 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 06:58:36 +00:00
Andrew Ozz ded373a640 Local autosave: remove the temp cookie after first use. Prevents false negative if the browser crashes. Add some temp logging to aid testing. See #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23705 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 06:15:14 +00:00
bumpbot a4b13093c4 Compress scripts/styles: 3.6-alpha-23704.
git-svn-id: https://develop.svn.wordpress.org/trunk@23704 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 02:58:53 +00:00
Mark Jaquith 4163b21746 Wrap self.run in an anonymous function wrapper so self always gets the same scope.
props azaozz. fixes #23780

git-svn-id: https://develop.svn.wordpress.org/trunk@23703 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-15 02:32:05 +00:00
bumpbot 458058760f Compress scripts/styles: 3.6-alpha-23695.
git-svn-id: https://develop.svn.wordpress.org/trunk@23695 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-14 04:58:39 +00:00
Andrew Ozz 5e71fb3992 Local autosave: set a temp cookie on submitting the form and change it on redirecting after the post is saved/updated, then use it to determine if saving worked properly. Removes the chance for false positives after saving/updating a post. See #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23693 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-14 03:06:07 +00:00
bumpbot 4ff35bd528 Compress scripts/styles: 3.6-alpha-23684.
git-svn-id: https://develop.svn.wordpress.org/trunk@23684 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 10:58:39 +00:00
Andrew Ozz 4ad27d6d14 Autosave to the browser's sessionStorage, compare this autosave to the post content on page load and let the user restore it when the data is not the same. First run, see #23220
git-svn-id: https://develop.svn.wordpress.org/trunk@23683 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-13 10:08:16 +00:00
bumpbot 32e9ee9d42 Compress scripts/styles: 3.6-alpha-23617.
git-svn-id: https://develop.svn.wordpress.org/trunk@23617 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-05 14:49:17 +00:00
Andrew Nacin 8f97270ec5 Add heartbeat and revisions .min.js files.
git-svn-id: https://develop.svn.wordpress.org/trunk@23616 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-05 14:47:29 +00:00
Sergey Biryukov 67a775ec5b Fix typos in phpdoc. props bradparbs. fixes #23481.
git-svn-id: https://develop.svn.wordpress.org/trunk@23604 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-04 04:23:00 +00:00
bumpbot cb9f18d20f Compress scripts/styles: 3.6-alpha-23596.
git-svn-id: https://develop.svn.wordpress.org/trunk@23596 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 22:58:36 +00:00
Daryl Koopersmith cb8328d912 Media: Reset modal after gallery insertion.
Removes hardcoded (and vestigial) 'upload' states in favor of using the default modal state.
When a media toolbar action is triggered, reset the modal after switching to the new state (as opposed to beforehand).

fixes #23675.


git-svn-id: https://develop.svn.wordpress.org/trunk@23590 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 07:36:21 +00:00
Daryl Koopersmith c2e7a67fbe Update Backbone to 0.9.10. Update media to handle breaking changes.
* When overriding `Backbone.sync()`, ensure the `sync` and `error` events fire consistently.

* `Model#make()` has been removed. Use `$` instead, and be sure to grab the DOM node where necessary (using `[0]`).

* `Collection#get()` now accepts `cid`s. `Collection#getByCid()` has been removed.

* When overriding the `State` constructor, bind `change` callbacks after the default `Model` constructor is called, because the `Model` constructor no longer passes the `silent` flag when calling `set()` for the default attributes.

* In 'change' events, `options.changes` was removed. It can now be accessed through `model.changed`. Check if any attributes have changed by calling `model.hasChanged()`. Also, don't mess with `model.changed`; it persists beyond the scope of a single event.

* `options.index` is no longer be set in the `add` event callback. Use `collection.indexOf(model)` can be used to retrieve the index of a model instead.

props gcorne. fixes #23262.


git-svn-id: https://develop.svn.wordpress.org/trunk@23589 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 07:04:06 +00:00
bumpbot 60a88cf02c Compress scripts/styles: 3.6-alpha-23530.
git-svn-id: https://develop.svn.wordpress.org/trunk@23530 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 19:07:34 +00:00
Andrew Nacin 57f7ae7af4 Stop using deprecated jQuery API (.browser and .live). Do manual UA sniffing where still necessary. Improve selector performance by using delegated events. props ocean90. see #22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@23518 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:05:28 +00:00
Andrew Nacin 5a2b79d914 jQuery Migrate 1.1.1. props ocean90. see #22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@23516 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:02:26 +00:00
Andrew Nacin 23b1a46710 Fix internal linking dialog conflicts with jQuery UI 1.10.x. Syncs jQuery UI CSS styles.
Remaining issue will be fixed in 1.10.2 final.
props ocean90.
see #23370.



git-svn-id: https://develop.svn.wordpress.org/trunk@23515 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 17:54:00 +00:00
Peter Westwood 554627a0d5 Revisions: First pass an implementing a new UI/UX for reviewing the revisions of posts. See #23497 props adamsilverstein for the initial patch.
This implements a new revisions ui using Backbone and preserves all the old methods of "integration" so the change should be transparent to plugins using revisi
ons with CPTs.

This is the first pass and so there are a number of things still to be resolved, more details in the ticket. Feedback welcomed.


git-svn-id: https://develop.svn.wordpress.org/trunk@23506 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 15:14:34 +00:00
Andrew Ozz 9b691a21b0 Heartbeat API: add nopriv actions, add JS 'heartbeat-send' event, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23481 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 02:32:22 +00:00
Andrew Nacin 0c89805886 jQuery UI 1.10.1.
props ocean90. see #23370.



git-svn-id: https://develop.svn.wordpress.org/trunk@23442 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 17:40:37 +00:00
Mark Jaquith ead92fb39d "LGPL License" is redundant.
props wonderboymusic, jakub.tyrcha. fixes #15585

git-svn-id: https://develop.svn.wordpress.org/trunk@23425 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:26:46 +00:00
Andrew Nacin d9e2f14dca jQuery UI 1.10.0.
Some lingering issues with the edit/insert link dialog.

props ocean90.
see #23370.



git-svn-id: https://develop.svn.wordpress.org/trunk@23423 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:13:26 +00:00
Andrew Nacin 88b8e29f0d jQuery 1.9.1 and jQuery Migrate 1.1.0.
Remains uncompressed for now, until we work out all 1.9.x issues.
Fixes custom fields.

props ocean90, wonderboymusic. see #22975.



git-svn-id: https://develop.svn.wordpress.org/trunk@23421 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:09:04 +00:00
bumpbot 42926ca699 Compress scripts/styles: 3.6-alpha-23403. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23403 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-12 22:58:43 +00:00
Andrew Ozz 6d0ee4dc7d TinyMCE: include cd84a63d4a to fix backspace and line breaks issues in WebKit, see #23337
git-svn-id: https://develop.svn.wordpress.org/trunk@23402 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-12 02:04:09 +00:00
Mark Jaquith e3a1266c0c Revert [23375] until we can get Media fixed to work with newer versions of Backbone. see #23262
git-svn-id: https://develop.svn.wordpress.org/trunk@23390 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 03:15:22 +00:00
Andrew Ozz b38675a65a Heartbeat API: fix error in IE < 9, props SergeyBiryukov, don't attempt to bind events to cross-domain iframes, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23389 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-06 07:10:04 +00:00
bumpbot 68360b40ab Compress scripts/styles: 3.6-alpha-23386.
git-svn-id: https://develop.svn.wordpress.org/trunk@23386 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 14:38:03 +00:00
Mark Jaquith bd80d92a89 Update Underscore to version 1.4.4. see #23262
git-svn-id: https://develop.svn.wordpress.org/trunk@23383 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 06:40:21 +00:00
Andrew Ozz 682b66b560 Heartbeat API: throttle down when the window looses focus or when the user is inactive, always send 'screen_id', change the interval settings to 'fast' (5sec), 'standard' (15sec) and 'slow' (60sec), the interval can be changed from PHP, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23382 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-03 07:03:27 +00:00
Andrew Nacin faa884032e Update Backbone.js to 0.9.10. props aaronholbrook, fixes #23262.
git-svn-id: https://develop.svn.wordpress.org/trunk@23375 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 02:02:53 +00:00
Andrew Ozz 23ef0e4e0b Remove BOM from jquery.query.js, fixes #23315
git-svn-id: https://develop.svn.wordpress.org/trunk@23356 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-29 20:52:32 +00:00
Andrew Ozz 5edc6b2711 Heartbeat API: first run, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23355 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-29 06:15:25 +00:00
Andrew Ozz 995de61c9d Update Plupload to 1.5.5, fixes #23277 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23339 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-23 20:54:42 +00:00
bumpbot 5d2f7a3a4d Compress scripts/styles: 3.6-alpha-23334. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23334 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 22:57:24 +00:00
Andrew Ozz f8a254ec56 Autop: <samp> is not a block tag, props toscho, fixes #18807
git-svn-id: https://develop.svn.wordpress.org/trunk@23327 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 19:05:21 +00:00
Andrew Nacin 77cdc0ce65 jQuery 1.9 final. jQuery Migrate 1.0. Uncompressed for now, while we iron out kinks.
props jorbin. see #22975.



git-svn-id: https://develop.svn.wordpress.org/trunk@23301 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-15 17:52:42 +00:00
Andrew Ozz 84827c87dc Media: when copying from "caption" (textarea) to "alt" (text input) also remove line breaks, props kovshenin, fixes #23176 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23298 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-14 17:34:45 +00:00
bumpbot ae63b07abd Compress scripts/styles: 3.6-alpha-23288.
git-svn-id: https://develop.svn.wordpress.org/trunk@23288 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-05 02:33:20 +00:00