Commit Graph

1760 Commits

Author SHA1 Message Date
Andrew Nacin
3db89c648e Pass pluginPath to MediaElement.js, fixing playback when ME.js is served through load-scripts.php.
props ocean90, wonderboymusic, azaozz.
fixes #24902.



git-svn-id: https://develop.svn.wordpress.org/trunk@24940 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-01 13:15:14 +00:00
Andrew Nacin
26548bb1c5 RTL fix for MediaElement.js video controls. Also filed upstream. fixes #24897. for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@24924 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-31 17:50:37 +00:00
bumpbot
abf081b02a Compress scripts/styles: 3.7-alpha-24912.
git-svn-id: https://develop.svn.wordpress.org/trunk@24912 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-31 04:58:59 +00:00
Andrew Nacin
911b0b4fb7 New build of MediaElement.js SWF. see #24183.
git-svn-id: https://develop.svn.wordpress.org/trunk@24910 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-31 04:38:34 +00:00
Andrew Nacin
61405b9934 Heartbeat: Reduce the heartbeat from 120 sec to 100 sec when the window doesn't have the focus, to be shorter than the post lock expiration window.
props azaozz.
fixes #24894.



git-svn-id: https://develop.svn.wordpress.org/trunk@24908 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-31 03:23:22 +00:00
Andrew Nacin
d3363d11bf New build of SWFUpload that ignores URL query strings.
git-svn-id: https://develop.svn.wordpress.org/trunk@24880 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-29 19:15:00 +00:00
Andrew Nacin
241ca959be Update MediaElement.js SWF file from upstream. Fixes issues with controls. fixes #24183.
git-svn-id: https://develop.svn.wordpress.org/trunk@24861 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-29 09:16:02 +00:00
bumpbot
9aca968cab Compress scripts/styles: 3.7-alpha-24851.
git-svn-id: https://develop.svn.wordpress.org/trunk@24851 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-29 04:58:59 +00:00
Andrew Nacin
4da2cb6d51 Avoid racing TinyMCE, which avoids the creation of unnecessary autosaves. props azaozz. see #7392.
git-svn-id: https://develop.svn.wordpress.org/trunk@24849 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-29 03:37:14 +00:00
bumpbot
6bd6a8f136 Compress scripts/styles: 3.7-alpha-24847.
git-svn-id: https://develop.svn.wordpress.org/trunk@24847 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-29 02:58:58 +00:00
Helen Hou-Sandi
a7de44b373 Set the default internal search value for the link dialog to be the text that is highlighted in the editor. props greuben. fixes #16276.
git-svn-id: https://develop.svn.wordpress.org/trunk@24841 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-29 01:01:33 +00:00
Andrew Ozz
50b8437d59 Add "experimental" to heartbeat phpdoc, fixes #24855 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@24818 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-28 20:54:48 +00:00
bumpbot
6f5eeb5498 Compress scripts/styles: 3.6-RC2-24801.
git-svn-id: https://develop.svn.wordpress.org/trunk@24801 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-27 08:58:53 +00:00
Mark Jaquith
9d2e982a79 Parse attrs before comparing to attachment.attributes. Small efficiency gain.
Props garyc40. Fixes #24753.

git-svn-id: https://develop.svn.wordpress.org/trunk@24800 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-27 07:09:05 +00:00
bumpbot
48889c8a8a Compress scripts/styles: 3.6-RC1-24793.
git-svn-id: https://develop.svn.wordpress.org/trunk@24793 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-24 06:57:40 +00:00
Andrew Nacin
8a54be6786 jQuery.noConflict(). see [24781]. see #24821.
git-svn-id: https://develop.svn.wordpress.org/trunk@24791 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-24 06:33:54 +00:00
Andrew Nacin
d96ec623a0 Autosave: Don't save an autosave unnecessarily when the post editor loads and TinyMCE is the default editor.
Delete such useless autosaves when we detect them in edit-form-advanced.php.

see #7392.



git-svn-id: https://develop.svn.wordpress.org/trunk@24787 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-24 05:37:53 +00:00
Andrew Nacin
22b54914ff Update MediaElement.js to a new 2.12.1 (untagged) build. see #24183.
git-svn-id: https://develop.svn.wordpress.org/trunk@24786 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-24 05:35:17 +00:00
Andrew Nacin
610c593fda Media: Fix embedding of audio/video players when the file was just uploaded.
While uploading, we know an attachment's filename but not its mime type. Check specifically for extensions. Check for type as a convenience when it is available.

fixes #24449.



git-svn-id: https://develop.svn.wordpress.org/trunk@24784 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-23 17:29:55 +00:00
Andrew Nacin
499cfdb81d Use production version of jQuery Migrate when not SCRIPT_DEBUG, which silences issues.
Minify jQuery as well. These were both unminified for ease of debugging.

fixes #24821.



git-svn-id: https://develop.svn.wordpress.org/trunk@24781 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-23 15:28:25 +00:00
bumpbot
3bf080b2ee Compress scripts/styles: 3.6-RC1-24778.
git-svn-id: https://develop.svn.wordpress.org/trunk@24778 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-23 06:25:03 +00:00
Andrew Nacin
65cc9c5d2a Media: Add awareness to Attachment Display Settings that audio and video can be embedded.
Also:
 * Add file length metadata to Attachment Details.
 * Round the kb/s bitrate on post.php.

fixes #24449.



git-svn-id: https://develop.svn.wordpress.org/trunk@24777 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-23 05:39:08 +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
Andrew Nacin
3664274461 Autosave:
* Remove editor.js as a dependency for autosave.js, as it was in 3.5.
 * Remove heartbeat.js as an implicit dependency.
 * Abstract out the serialization of title/content/excerpt for comparisons.

props azaozz.
fixes #24756.



git-svn-id: https://develop.svn.wordpress.org/trunk@24774 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-23 03:05:21 +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
43902fb740 Fix a media regression in [24110] that could cause duplicate models.
Props garyc40. Fixes #24753. See #24094, #23830.

git-svn-id: https://develop.svn.wordpress.org/trunk@24771 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-22 22:24:33 +00:00
Andrew Nacin
9b72b3f3c2 Update MediaElement.js to include i18n fixes that were accepted upstream. Add strings to script-loader.
props SergeyBiryukov.
see #24183.



git-svn-id: https://develop.svn.wordpress.org/trunk@24755 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-19 19:21:08 +00:00
bumpbot
e216254c06 Compress scripts/styles: 3.6-RC1-24750.
git-svn-id: https://develop.svn.wordpress.org/trunk@24750 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-19 02:58:49 +00:00
Andrew Nacin
4d7ef46b70 Simplify heartbeat API.
* Move to a method to check connection errors, a better framework for future changes.
 * Remove start(), stop(), autostart.

props carldanley.
fixes #23216.



git-svn-id: https://develop.svn.wordpress.org/trunk@24749 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-19 01:39:48 +00:00
bumpbot
fd4edd145f Compress scripts/styles: 3.6-RC1-24748.
git-svn-id: https://develop.svn.wordpress.org/trunk@24748 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-19 00:58:51 +00:00
Andrew Nacin
d1a1f8daa1 Post type support for local autosaves. props azaozz. see #24756.
git-svn-id: https://develop.svn.wordpress.org/trunk@24747 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-19 00:22:22 +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
23c24db59c Compress scripts/styles: 3.6-RC1-24742.
git-svn-id: https://develop.svn.wordpress.org/trunk@24742 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-18 20:58:53 +00:00
Ryan Boren
f32bc0c541 Fire wp_auth_check_load() from admin_enqueue_scripts instead of admin_init so that it can access the current screen object.
Black list the update and upgrade screens.

Allow plugins to white/black list screens via the wp_auth_check_load filter.

Props nacin

see #23295


git-svn-id: https://develop.svn.wordpress.org/trunk@24738 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-18 19:06:35 +00:00
bumpbot
3d367636c9 Compress scripts/styles: 3.6-RC1-24717.
git-svn-id: https://develop.svn.wordpress.org/trunk@24717 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-16 14:58:52 +00:00
Mark Jaquith
4f2dc7f00f Only add the autosave notice to the first <h2> on the page.
Props azaozz. See #24755.

git-svn-id: https://develop.svn.wordpress.org/trunk@24710 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-16 13:03:22 +00:00
Andrew Ozz
dcaa4eb4ed Fix a comment typo in heartbeat.js, props mordauk, fixes #24745.
git-svn-id: https://develop.svn.wordpress.org/trunk@24705 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-13 18:16:57 +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
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
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
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
bumpbot
e16dca6fc9 Compress scripts/styles: 3.6-beta4-24592.
git-svn-id: https://develop.svn.wordpress.org/trunk@24592 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-08 18:58:16 +00:00
Andrew Ozz
0d71651c9f Heartbeat:
- Pass the actual error to the jQuery event 'heartbeat-connection-lost'.
- When in error state, keep trying to connect even when no response is expected until the error is cleared.
See #23216.

git-svn-id: https://develop.svn.wordpress.org/trunk@24577 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-05 23:33:47 +00:00
Andrew Nacin
8ceb51f88e jQuery 1.10.2. props ocean90. fixes #24426.
git-svn-id: https://develop.svn.wordpress.org/trunk@24546 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-03 20:11:44 +00:00