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
bumpbot
5e24625852
Compress scripts/styles: 3.6-beta4-24534.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24534 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-01 16:11:01 +00:00
Andrew Ozz
1819e0f2c2
Nonce refresh:
...
- Update the heartbeat nonce when refreshing nonces on the Edit Post screen.
- After a user logs in from the auth-check dialog, speed up heatrbeat to check/refresh nonces on the Edit Post screen.
- Speeding up heartbeat: bring back the setting how long it should last (how many ticks).
- Add 'heartbeat-nonces-expired' jQuery event when nonces have expired and the user is logged in.
See #23295 , see #23216 .
git-svn-id: https://develop.svn.wordpress.org/trunk@24528 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-29 01:31:44 +00:00
bumpbot
d1d4859b11
Compress scripts/styles: 3.6-beta4-24523.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24523 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-27 18:25:01 +00:00
Andrew Nacin
a0601fabfe
Media: Render unsupported audio files as links instead of mediaelement. props kovshenin, fixes #23798 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24519 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-26 20:42:01 +00:00
Sergey Biryukov
fbc2a6ca6d
PHPDoc fixes and additions. fixes #24616 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24490 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-21 12:45:11 +00:00
Andrew Nacin
53e6fb4376
Remove redundant swfupload-all.js file.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24488 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-21 09:26:18 +00:00
bumpbot
43ef5ad911
Compress scripts/styles: 3.6-beta3-24485. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24485 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-21 07:19:07 +00:00
Andrew Nacin
7380690be8
Update TinyMCE media plugin's moxieplayer.swf to latest.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24476 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-21 05:57:22 +00:00
Andrew Nacin
f23577500c
Build the media item HTML in a clearer manner in the legacy Plupload handler JS. Also update the retired SWFUpload handler JS.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24472 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-21 03:44:48 +00:00
Andrew Nacin
3c3b517e07
Update swfupload binary.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24468 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-21 03:16:52 +00:00
bumpbot
e669246779
Compress scripts/styles: 3.6-beta3-24450.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24450 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-19 22:58:57 +00:00
Mark Jaquith
fb97e258f9
Restore code that returns the existing media object if it already exists.
...
props programmin, adamsilverstein. fixes #24062
git-svn-id: https://develop.svn.wordpress.org/trunk@24447 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-19 21:55:17 +00:00
bumpbot
6aef31fc5f
Compress scripts/styles: 3.6-beta3-24432.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24432 602fd350-edb4-49c9-b593-d223f7449a82
2013-06-09 00:58:58 +00:00