Scott Taylor
1c0fa5f73a
In tb_show()
in thickbox
, when loading content into #TB_ajaxContent
, make sure a URL with no ?
doesn't break when &random=
is appended to it.
...
Thickbox hasn't been updated since 2007, just FYI.
Fixes #31726 .
Built from https://develop.svn.wordpress.org/trunk@32503
git-svn-id: http://core.svn.wordpress.org/trunk@32473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-13 21:42:24 +00:00
Scott Taylor
2f82bbb60d
In views/button/select-mode-toggle
, don't hide the spinner with JS. This oversight is a symptom of the too-aggressive outside DOM handling that is happening in this view's toggleBulkEditHandler
method.
...
Props afercia.
Fixes #32324 .
Built from https://develop.svn.wordpress.org/trunk@32502
git-svn-id: http://core.svn.wordpress.org/trunk@32472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-13 21:27:27 +00:00
Andrew Ozz
7ad60f3154
Emoji: do not try to replace emoji chars inside dynamic SVGs.
...
Fixes #32305 for trunk.
Built from https://develop.svn.wordpress.org/trunk@32478
git-svn-id: http://core.svn.wordpress.org/trunk@32448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-09 23:44:27 +00:00
Scott Taylor
4af6d6f305
Media Grid: clean up our flawed Backbone.Router
implementation so that the browser forward/back buttons work the same way as the left/right keys when the Edit Attachment frame is open.
...
Fixes #31846 .
Built from https://develop.svn.wordpress.org/trunk@32466
git-svn-id: http://core.svn.wordpress.org/trunk@32436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-09 05:42:28 +00:00
Scott Taylor
2c42a665a2
wp.media.view.Button
should create <button>
s, not <a href="#">
s.
...
Props afercia.
See #32236 .
Built from https://develop.svn.wordpress.org/trunk@32464
git-svn-id: http://core.svn.wordpress.org/trunk@32434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-08 20:39:27 +00:00
Scott Taylor
a417b2cf1a
In EmbedLink
, a URL needs to be at least 11 chars to be useful.
...
Fixes #32059 .
Built from https://develop.svn.wordpress.org/trunk@32463
git-svn-id: http://core.svn.wordpress.org/trunk@32433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-08 20:30:26 +00:00
Scott Taylor
b7d4685f3d
When creating an EmbedLink
view, don't add a spinner - it already exists in Embed
.
...
Use the value of `wp.media.controller.Embed.sensitivity` as the sensitivity value for the debounced method in `EmbedLink` to ensure that the spinner toggles don't stutter or overlap.
Fixes #32036 .
Built from https://develop.svn.wordpress.org/trunk@32462
git-svn-id: http://core.svn.wordpress.org/trunk@32432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-08 20:10:26 +00:00
Scott Taylor
af326241ff
When fetching in media/views/embed/link.js
, call abort()
on any existing XHRs.
...
Use `$.ajax` instead of `wp.ajax.send()` to allow this.
Pass `this` as `context` to the options to remove the need to bind callbacks.
Fixes #32035 .
Built from https://develop.svn.wordpress.org/trunk@32460
git-svn-id: http://core.svn.wordpress.org/trunk@32430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-08 19:16:25 +00:00
Scott Taylor
31f46f5363
In media/views/embed/link.js
, URLs should have a valid protocol before an attempt to fetch them is made.
...
Fixes #32037 .
Built from https://develop.svn.wordpress.org/trunk@32459
git-svn-id: http://core.svn.wordpress.org/trunk@32429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-08 18:34:28 +00:00
Andrew Ozz
3181cc27a9
TinyMCE: update to 4.1.10.
...
Fixes #32262 .
Built from https://develop.svn.wordpress.org/trunk@32366
git-svn-id: http://core.svn.wordpress.org/trunk@32336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-06 03:23:25 +00:00
Andrew Ozz
67f589654b
Emoji: add shorter/faster regex for testing for emoji chars in added nodes.
...
See #32125 .
Built from https://develop.svn.wordpress.org/trunk@32347
git-svn-id: http://core.svn.wordpress.org/trunk@32318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-05 01:41:27 +00:00
Andrew Ozz
a5cee54aea
Emoji: rename the exclude class to wp-exclude-emoji.
...
Props Clorith. See #32197 .
Built from https://develop.svn.wordpress.org/trunk@32337
git-svn-id: http://core.svn.wordpress.org/trunk@32308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-04 00:05:28 +00:00
Andrew Ozz
8eb93bc838
Emoji: add an exclude class to wp-emoji checked when monitoring for changes with mutationObserver. Use it for the hidden div used for resizing the Text editor.
...
See #32197 .
Built from https://develop.svn.wordpress.org/trunk@32336
git-svn-id: http://core.svn.wordpress.org/trunk@32307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-03 20:18:26 +00:00
Andrew Ozz
86674d41af
Emoji: before parsing added nodes test if the text in them contains emoji chars. That speeds up the processing quite a bit.
...
See #32125 .
Built from https://develop.svn.wordpress.org/trunk@32335
git-svn-id: http://core.svn.wordpress.org/trunk@32306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-03 19:08:24 +00:00
Andrew Ozz
4e971bea9f
Emoji:
...
- Fix loading errors in IE9 and IE10.
- Add fallbacks for the loading events.
Fixes #32109 for trunk.
Built from https://develop.svn.wordpress.org/trunk@32334
git-svn-id: http://core.svn.wordpress.org/trunk@32305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-03 18:45:29 +00:00
Scott Taylor
2807b7146f
After [32258], restore the parts of [31620] and [31626] that weren't changes to the UI, but were improvements to existing code.
...
* Use `wp.shortcode()` instead of manually constructing a shortcode in `views/embed/link`
* In `WP_Embed`, store the last URL and last set of attributes requested in class properties
* `wp_ajax_parse_embed()`, allow `[embed]`s to have attributes. Return `attr` in the response.
See #31139 .
Built from https://develop.svn.wordpress.org/trunk@32330
git-svn-id: http://core.svn.wordpress.org/trunk@32301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-30 21:40:25 +00:00
Andrew Ozz
01c26527ea
Emoji: fix loop when replacement images fail to load.
...
Props iseulde. Fixes #32128 for trunk.
Built from https://develop.svn.wordpress.org/trunk@32323
git-svn-id: http://core.svn.wordpress.org/trunk@32294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-29 03:19:26 +00:00
Andrew Nacin
b63a76fa4b
Fix keyboard shortcut for save from the visual editor.
...
props iseulde.
see #32122 , for trunk.
Built from https://develop.svn.wordpress.org/trunk@32295
git-svn-id: http://core.svn.wordpress.org/trunk@32266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-26 04:51:29 +00:00
Andrew Ozz
60706015e1
Revert editing of video embed parameters in the media modal, [31620] and [31626] for now. Plan on revisiting in 4.3.
...
Props iseulde. Fixes #31139 , fixes #32006 .
Built from https://develop.svn.wordpress.org/trunk@32258
git-svn-id: http://core.svn.wordpress.org/trunk@32229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-21 22:41:26 +00:00
Andrew Ozz
bafd7b98f6
TinyMCE wpView: properly deselect views when hiding the editor. Do not remove selected
on PreProcess.
...
Fixes #32045 .
Built from https://develop.svn.wordpress.org/trunk@32257
git-svn-id: http://core.svn.wordpress.org/trunk@32228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-21 21:32:26 +00:00
Andrew Ozz
f003efc8aa
TinyMCE wpView: ensure contentNode
is passed to all callbacks.
...
Props iseulde. Fixes #31669 .
Built from https://develop.svn.wordpress.org/trunk@32255
git-svn-id: http://core.svn.wordpress.org/trunk@32226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-21 18:36:24 +00:00
Helen Hou-Sandí
efef6f8b79
Avoid a PHP notice when adding an embed via Insert from URL.
...
props iseulde.
see #32006 , #29476 .
Built from https://develop.svn.wordpress.org/trunk@32247
git-svn-id: http://core.svn.wordpress.org/trunk@32218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-21 14:36:25 +00:00
Helen Hou-Sandí
d672824273
wpLink: Make the text editor experience the same as in the visual editor.
...
props azaozz.
fixes #31890 .
Built from https://develop.svn.wordpress.org/trunk@32242
git-svn-id: http://core.svn.wordpress.org/trunk@32213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-21 13:59:30 +00:00
Andrew Ozz
955b0bf979
TinyMCE: fix creating a preview when pasting an embeddable URL in Firefox.
...
Part prop iseulde. Fixes #31988 .
Built from https://develop.svn.wordpress.org/trunk@32229
git-svn-id: http://core.svn.wordpress.org/trunk@32203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 20:57:28 +00:00
Helen Hou-Sandí
a581c9851a
Media: Date filtering does not need to be on for all contexts.
...
Affected areas include customizer upload controls and video playlist editing.
props ocean90.
fixes #32004 .
Built from https://develop.svn.wordpress.org/trunk@32228
git-svn-id: http://core.svn.wordpress.org/trunk@32202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 19:49:24 +00:00
Gary Pendergast
dea5545032
Update the Plupload Flash file to the latest version.
...
Props azaozz.
Built from https://develop.svn.wordpress.org/trunk@32168
git-svn-id: http://core.svn.wordpress.org/trunk@32143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-20 06:13:25 +00:00
Andrew Ozz
f08c38112b
TinyMCE: use window.twemoji directly in the wpemoji
plugin. Gives a chance to the browser to lazy load twemoji.js when reloading the page.
...
Fixes #31901 .
Built from https://develop.svn.wordpress.org/trunk@32142
git-svn-id: http://core.svn.wordpress.org/trunk@32122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-18 23:29:26 +00:00
Andrew Ozz
6c5dec8886
TinyMCE: remove the empty paragraph that sometimes is left over after adding an image caption.
...
Fixes #32003 .
Built from https://develop.svn.wordpress.org/trunk@32141
git-svn-id: http://core.svn.wordpress.org/trunk@32121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-18 21:56:27 +00:00
Andrew Ozz
9891900a82
TinyMCE wpView:
...
- Remove selected views when inserting content but not when loading all content.
- Remove the ref. to the selected view node on resetting the views.
Fixes #31998 .
Built from https://develop.svn.wordpress.org/trunk@32140
git-svn-id: http://core.svn.wordpress.org/trunk@32120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-18 20:48:27 +00:00
Scott Taylor
5e4616039c
Move the built media JS files up a directory to their previous location and naming convention. This fidgets with part of [31373] and will maintain BC for those who were loading those files directly (not using the enqueue system).
...
Props iseulde, ocean90.
Fixes #31912 .
Built from https://develop.svn.wordpress.org/trunk@32125
git-svn-id: http://core.svn.wordpress.org/trunk@32104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-14 15:31:28 +00:00
Helen Hou-Sandí
d99c2b41ca
Media: Bring back spinners, now without bouncing select elements.
...
props afercia for the initial patch.
see #22839 , #30725 .
Built from https://develop.svn.wordpress.org/trunk@32101
git-svn-id: http://core.svn.wordpress.org/trunk@32080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-09 20:35:28 +00:00
Andrew Ozz
fd80c0f51f
TinyMCE: disable the wp-autoresize plugin in iOS. All iframes there are already expanded to the height of the content document.
...
Fixes #31937 .
Built from https://develop.svn.wordpress.org/trunk@32095
git-svn-id: http://core.svn.wordpress.org/trunk@32074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-09 00:11:27 +00:00
Dominik Schilling
0810c24ff0
Merge strings that describe the same command.
...
props iseulde.
fixes #31776 .
Built from https://develop.svn.wordpress.org/trunk@32078
git-svn-id: http://core.svn.wordpress.org/trunk@32057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-08 16:59:26 +00:00
Helen Hou-Sandí
2636199e54
Toolbar: Search item consistency for focus state and IE8.
...
props afercia.
fixes #31322 .
Built from https://develop.svn.wordpress.org/trunk@32074
git-svn-id: http://core.svn.wordpress.org/trunk@32053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-08 16:08:28 +00:00
Aaron Jorbin
cc7f70c15e
Don't override minified libraries included in core
...
A number of libraries that we include in core come with minified versions that we also include in core. The build process shouldn't override them.
Fixes #31477
Props ocean90, jorbin
Built from https://develop.svn.wordpress.org/trunk@32066
git-svn-id: http://core.svn.wordpress.org/trunk@32045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-07 04:38:25 +00:00
Andrew Ozz
5f5a38e032
TinyMCE: update the "Keyboard Shortcuts" modal.
...
Fixes #29558 .
Built from https://develop.svn.wordpress.org/trunk@32060
git-svn-id: http://core.svn.wordpress.org/trunk@32039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-06 23:17:28 +00:00
Andrew Ozz
5493e3249e
TinyMCE: fix our shortcuts on Mac, use Ctrl + Opt + letter.
...
Props iseulde. See #29558 .
Built from https://develop.svn.wordpress.org/trunk@32059
git-svn-id: http://core.svn.wordpress.org/trunk@32038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-06 22:51:27 +00:00
Andrew Ozz
0b80f80209
TinyMCE: update to 4.1.9+. Changes:
...
- Fixed bug where extra empty paragraphs would get deleted in WebKit/Blink due to recent Quriks fix.
- Fixed bug where the editor wouldn't work properly on IE 12 due to some required browser sniffing.
- Fixed bug where formatting shortcut keys where interfering with Mac OS X screenshot keys.
Fixes #31895 .
Built from https://develop.svn.wordpress.org/trunk@32058
git-svn-id: http://core.svn.wordpress.org/trunk@32037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-06 20:38:26 +00:00
Andrew Ozz
541573b378
TinyMCE wpView: resize sandbox iframes on load. Fixes a problem with resizing after all images are loaded.
...
Props iseulde, mattheu. Fixes #31480 .
Built from https://develop.svn.wordpress.org/trunk@32056
git-svn-id: http://core.svn.wordpress.org/trunk@32035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-06 18:55:28 +00:00
Helen Hou-Sandí
42028327a2
Insert from URL: Make sure the link text is actually used.
...
Turns out there were more pieces to renaming the field.
props iseulde.
fixes #29476 .
Built from https://develop.svn.wordpress.org/trunk@32055
git-svn-id: http://core.svn.wordpress.org/trunk@32034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-06 18:25:27 +00:00
Helen Hou-Sandí
bfda508c18
Update more instances of default admin blues and grays.
...
props hugobaeta.
fixes #31234 .
Built from https://develop.svn.wordpress.org/trunk@32051
git-svn-id: http://core.svn.wordpress.org/trunk@32030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-05 21:20:27 +00:00
Gary Pendergast
5ab25275a7
Emoji: Remove an errant /
in Twemoji URLs.
...
Props tmatsuur.
Fixes #31893 .
Built from https://develop.svn.wordpress.org/trunk@32024
git-svn-id: http://core.svn.wordpress.org/trunk@32003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-05 07:28:26 +00:00
Andrew Ozz
0186bbcb95
TinyMCE wpView:
...
- Fix editor undo levels.
- Remove views and markers in the DOM before serialization.
- Unbind views before removing them on hide.
- Empty the content in the timeout, so it doesn't render iframes twice.
Props iseulde. Fixes #31669 .
Built from https://develop.svn.wordpress.org/trunk@32022
git-svn-id: http://core.svn.wordpress.org/trunk@32001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-04 23:00:26 +00:00
Helen Hou-Sandí
3ac1a19529
Spinners: Toggle a class instead of show/hide.
...
Toggling spinners also now uses visibility instead of display, so that the space is always reserved and nothing moves around unexpectedly.
props cdog, MikeHansenMe, valendesigns.
fixes #22839 . see #31875 , #30725 .
Built from https://develop.svn.wordpress.org/trunk@31996
git-svn-id: http://core.svn.wordpress.org/trunk@31975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-03 04:52:27 +00:00
Andrew Ozz
c545c63606
TinyMCE: always focus the editor after using the floated toolbar.
...
Props iseulde. Fixes #30619 .
Built from https://develop.svn.wordpress.org/trunk@31972
git-svn-id: http://core.svn.wordpress.org/trunk@31951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-01 21:50:27 +00:00
Scott Taylor
3630732523
Remove the JS part of [31619].
...
Fixes #6820 .
Built from https://develop.svn.wordpress.org/trunk@31960
git-svn-id: http://core.svn.wordpress.org/trunk@31939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-01 16:34:27 +00:00
Scott Taylor
5855cb0e60
When editing an image from the editor, and the image has a value for alignment (but not for width
or caption
), don't bail without first checking that the alignment's value is not alignnone
. If so, add the class
to the <a>
before bailing.
...
See #21848 .
Built from https://develop.svn.wordpress.org/trunk@31958
git-svn-id: http://core.svn.wordpress.org/trunk@31937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-01 16:04:27 +00:00
Andrew Ozz
e053979219
Emoji:
...
- Enhance twemoji.js to support passing of additional attributes for the replacement images.
- Use that to add the needed attributes when replacing emoji inside the editor.
Fixes #31627 .
Built from https://develop.svn.wordpress.org/trunk@31948
git-svn-id: http://core.svn.wordpress.org/trunk@31927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-01 02:39:28 +00:00
Andrew Ozz
5fe7be9757
TinyMCE emoji: fix caret position after replacing emoji in Chrome on Windows 8.
...
See #31627 .
Built from https://develop.svn.wordpress.org/trunk@31946
git-svn-id: http://core.svn.wordpress.org/trunk@31925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-31 23:35:26 +00:00
Dominik Schilling
d775c933c7
Disable body scrolling when session expired log in modal is open.
...
Fixes also the missing close icon if screen width is less than 380px.
props adamsilverstein, ocean90.
fixes #31610 .
Built from https://develop.svn.wordpress.org/trunk@31945
git-svn-id: http://core.svn.wordpress.org/trunk@31924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-31 22:55:26 +00:00