Dominik Schilling
d36ffeb160
Passwords: Trigger a `wp-check-valid-field` event when the password field is filled with a password by `generatePassword()`.
...
Updates event handler in `wpAjax.invalidateForm()` to support `wp-check-valid-field`.
See #33406 .
Built from https://develop.svn.wordpress.org/trunk@34114
git-svn-id: http://core.svn.wordpress.org/trunk@34082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-14 10:39:27 +00:00
Andrew Ozz
a69e71fafe
Settings, password field: fix placement of the error icon and removal of the error class.
...
Props liljimmi, adamsilverstein.
Fixes #33406 for trunk.
Built from https://develop.svn.wordpress.org/trunk@34068
git-svn-id: http://core.svn.wordpress.org/trunk@34036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-12 00:10:25 +00:00
Scott Taylor
fa7bc4fda0
Upgrade MediaElement to 2.18.1 - monkey-patches to allow H264 in Chromium.
...
Changelog: https://github.com/johndyer/mediaelement/compare/2.17.0...2.18.1
See #33798 .
Built from https://develop.svn.wordpress.org/trunk@34050
git-svn-id: http://core.svn.wordpress.org/trunk@34018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-11 18:35:26 +00:00
Scott Taylor
8ec224c2f9
Revert [34009], broke uploads.
...
See #24934 .
Built from https://develop.svn.wordpress.org/trunk@34047
git-svn-id: http://core.svn.wordpress.org/trunk@34015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-11 18:04:26 +00:00
John Blackbourn
9bf86a74d0
Set the `secure` flag on the `wp-saving-post` cookie when using HTTPS.
...
This cookie doesn't contain any sensitive information, but this change brings its behaviour in line with all other core cookies.
Fixes #31056
Built from https://develop.svn.wordpress.org/trunk@34027
git-svn-id: http://core.svn.wordpress.org/trunk@33996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-10 22:42:23 +00:00
Scott Taylor
d22fbc7545
Grunt RTL CSS: `swap-dashicons-left-right-arrows` in `rtlcss:properties` expects double-quoted `content` strings in CSS. It doesn't swap single-quoted values.
...
Props Ankit K Gupta, yoavf, netweb.
Fixes #33786 .
Built from https://develop.svn.wordpress.org/trunk@34011
git-svn-id: http://core.svn.wordpress.org/trunk@33980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-10 20:22:25 +00:00
Scott Taylor
da6101d311
WP Plupload: on `FileUploaded`, allow `success` and `error` callbacks to receive server responses after a successful upload.
...
Props ippetkov.
Fixes #24934 .
Built from https://develop.svn.wordpress.org/trunk@34009
git-svn-id: http://core.svn.wordpress.org/trunk@33978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-10 18:19:24 +00:00
Andrew Ozz
0f3f7160e4
TinyMCE: update to 4.2.5, changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=index&pr_id=1 .
...
Fixes #33782 for trunk.
Built from https://develop.svn.wordpress.org/trunk@33981
git-svn-id: http://core.svn.wordpress.org/trunk@33950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-09 19:45:26 +00:00
Scott Taylor
1cd398db0e
After [33840], JS regex needs the `g` modifier.
...
Add another unit test case.
Props kitchin.
Fixes #22781 .
Built from https://develop.svn.wordpress.org/trunk@33947
git-svn-id: http://core.svn.wordpress.org/trunk@33916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-08 16:44:26 +00:00
Scott Taylor
f5c754bfed
Dashicons CSS: one-word font families don't need quotes. Font families with a space in the name should use double-quotes (doesn't apply here).
...
Props afercia.
Fixes #32866 .
Built from https://develop.svn.wordpress.org/trunk@33912
git-svn-id: http://core.svn.wordpress.org/trunk@33881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-05 19:57:25 +00:00
Scott Taylor
44dace3487
Add Customizer docs.
...
Props ericlewis.
See #33503 .
Built from https://develop.svn.wordpress.org/trunk@33911
git-svn-id: http://core.svn.wordpress.org/trunk@33880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-05 19:53:24 +00:00
Sergey Biryukov
bffe6a63ba
Make curly quotes in playlist item title translatable.
...
fixes #33391 .
Built from https://develop.svn.wordpress.org/trunk@33844
git-svn-id: http://core.svn.wordpress.org/trunk@33812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-01 13:50:21 +00:00
Scott Taylor
ecf0b82afb
Add some JS docs to `customize-base.js`
...
Props ericlewis.
Fixes #33639 .
Built from https://develop.svn.wordpress.org/trunk@33841
git-svn-id: http://core.svn.wordpress.org/trunk@33809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-01 04:15:22 +00:00
Scott Taylor
a829ee32ce
User Settings: allow dashes in `get|set_user_setting()` in PHP and `get|setUserSetting()` in JS.
...
Add unit tests - there were none. Mock `set_user_setting()` since it won't run due to `headers_sent()` being `true`.
Fixes #22781 .
Built from https://develop.svn.wordpress.org/trunk@33840
git-svn-id: http://core.svn.wordpress.org/trunk@33808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-09-01 03:57:21 +00:00
Andrew Ozz
a231303341
TinyMCE: fix replacing the image caption HTML with the shortcode when saving the content.
...
Fixes #33477 .
Built from https://develop.svn.wordpress.org/trunk@33834
git-svn-id: http://core.svn.wordpress.org/trunk@33802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-31 22:07:21 +00:00
Scott Taylor
767dd35a47
Media:
...
When inserting an image into a post, the values in `wp.media.controller.Library` should not default to linking the image when no user settings are present.
The default display setting value for `link` is now `none`. User settings persist and will override or confirm this value based on user actions.
Props liljimmi, janhenckens, eherman24, wonderboymusic.
Fixes #31467 .
Built from https://develop.svn.wordpress.org/trunk@33729
git-svn-id: http://core.svn.wordpress.org/trunk@33697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-25 12:13:23 +00:00
Andrew Ozz
25b0eedf2b
TinyMCE: ensure the `wordpress` plugin is loaded before calling `_createToolbar()`.
...
Props hauvong, azaozz. Fixes #33393 .
Built from https://develop.svn.wordpress.org/trunk@33728
git-svn-id: http://core.svn.wordpress.org/trunk@33696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-25 04:38:20 +00:00
Scott Taylor
20cc53b929
Add some JS Docs for Customizer.
...
Props ericlewis.
See #33503 .
Built from https://develop.svn.wordpress.org/trunk@33709
git-svn-id: http://core.svn.wordpress.org/trunk@33676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-22 17:24:25 +00:00
Scott Taylor
b19bb99853
Playlists, for `.wp-playlist-item-title` elements: move the curly quotes to CSS pseudo-element `content`, making them easier to override or remove.
...
Fixes #33391 .
Built from https://develop.svn.wordpress.org/trunk@33643
git-svn-id: http://core.svn.wordpress.org/trunk@33610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-19 05:51:25 +00:00
Konstantin Obenland
dfcf1d0035
Editor: Exclude `shift` from modifier keys when handling spacebar shortcuts.
...
Patterns that activate on enter are still canceled with any modifier active.
Props azaozz.
Fixes #33382 .
Built from https://develop.svn.wordpress.org/trunk@33622
git-svn-id: http://core.svn.wordpress.org/trunk@33589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-17 14:51:24 +00:00
Ella Iseulde Van Dorpe
718271dd53
TinyMCE: fix inline toolbar repositioning for inline editors
...
Fixes #33286 .
Built from https://develop.svn.wordpress.org/trunk@33592
git-svn-id: http://core.svn.wordpress.org/trunk@33559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-06 21:35:25 +00:00
Mark Jaquith
d60e2eea84
Only use a bare URL when the link text field is used.
...
Fixes bug that would remove images on edit, in some circumstances.
fixes #33293
props azaozz
Built from https://develop.svn.wordpress.org/trunk@33591
git-svn-id: http://core.svn.wordpress.org/trunk@33558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-06 20:58:25 +00:00
Sergey Biryukov
1b282962a4
wpLink: Make sure the link wrapper is the last element in the body, otherwise the inline editor toolbar may show up above the backdrop.
...
props azaozz.
fixes #33268 .
Built from https://develop.svn.wordpress.org/trunk@33588
git-svn-id: http://core.svn.wordpress.org/trunk@33555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-06 02:17:25 +00:00
Ella Iseulde Van Dorpe
34d50e6165
TinyMCE: wplink: fix WPLinkPreview for multiple editors
...
Fixes #33264 .
Built from https://develop.svn.wordpress.org/trunk@33584
git-svn-id: http://core.svn.wordpress.org/trunk@33551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 21:42:26 +00:00
Ella Iseulde Van Dorpe
55a4ce4db2
TinyMCE: wptextpattern: trim whitespace
...
Props iseulde and azaozz.
Fixes #33246 .
Built from https://develop.svn.wordpress.org/trunk@33563
git-svn-id: http://core.svn.wordpress.org/trunk@33530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-04 05:01:11 +00:00
Andrew Ozz
63d1389143
TinyMCE: fix initializing the editor on switching Text => Visual when the Text editor is loaded first.
...
Props stuartshields, peterwilsoncc, netweb, azaozz. Fixes #33192 .
Built from https://develop.svn.wordpress.org/trunk@33527
git-svn-id: http://core.svn.wordpress.org/trunk@33494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-08-02 20:01:26 +00:00
Andrew Ozz
684d54e7a5
TinyMCE: update to 4.2.3, changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt .
...
Fixes #33203 .
Built from https://develop.svn.wordpress.org/trunk@33516
git-svn-id: http://core.svn.wordpress.org/trunk@33483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-30 17:07:26 +00:00
Ella Iseulde Van Dorpe
9a1d80e858
TinyMCE: wptextpattern: stop propagation on undo
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33512
git-svn-id: http://core.svn.wordpress.org/trunk@33479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 23:45:25 +00:00
Ella Iseulde Van Dorpe
9069d6679b
TinyMCE: wptextpattern: undo on esc after enter
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33508
git-svn-id: http://core.svn.wordpress.org/trunk@33475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 23:12:25 +00:00
Ella Iseulde Van Dorpe
e384cdab45
TinyMCE: wptextpattern: reorder undo
...
After formatting on enter, undo should undo the formatting first, then undo the new line.
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33507
git-svn-id: http://core.svn.wordpress.org/trunk@33474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 22:49:25 +00:00
Andrew Ozz
c96977e083
TinyMCE: fix (again) the text in the keyboard shortcuts modal for the changed patterns.
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33504
git-svn-id: http://core.svn.wordpress.org/trunk@33471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 21:54:24 +00:00
Andrew Ozz
c9871174d1
TinyMCE: fix the text in the keyboard shortcuts modal for the changed patterns.
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33501
git-svn-id: http://core.svn.wordpress.org/trunk@33468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 21:07:23 +00:00
Weston Ruter
49b3ad2251
Twenty Fifteen: Only re-initialize the main navigation in the Customizer when it is specifically updated.
...
* Fix a bug where updating the social menu links would cause the main navigation to get its toggle-expanded buttons duplicated.
* Persist any existing submenu expanded states on the updated menu.
* Improve naming of `customize-preview-menu-refreshed` event param from `wpNavArgs` to `wpNavMenuArgs` (old name is retained and marked as deprecated).
Fixes #33177 .
Built from https://develop.svn.wordpress.org/trunk@33491
git-svn-id: http://core.svn.wordpress.org/trunk@33458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 18:13:24 +00:00
Ella Iseulde Van Dorpe
926006ea56
TinyMCE: views: correct cursor position after paste
...
Fixes #33174 .
Built from https://develop.svn.wordpress.org/trunk@33484
git-svn-id: http://core.svn.wordpress.org/trunk@33451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-29 13:49:24 +00:00
Andrew Ozz
fa25fe82ef
Fix updating of nonces on the Edit Post screen after the log in expires and the user logs in again.
...
Props iseulde, azaozz. Fixes #33098 .
Built from https://develop.svn.wordpress.org/trunk@33468
git-svn-id: http://core.svn.wordpress.org/trunk@33435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-28 22:07:25 +00:00
Ella Iseulde Van Dorpe
a4e751abc7
TinyMCE: iOS: wrap long strings
...
Fixes #33157 .
Built from https://develop.svn.wordpress.org/trunk@33464
git-svn-id: http://core.svn.wordpress.org/trunk@33431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-28 20:32:25 +00:00
Mark Jaquith
0e28880a17
Fill empty TinyMCE paragraphs with a dummy `<br />` on all browsers.
...
fixes #33151
props iseulde
Built from https://develop.svn.wordpress.org/trunk@33461
git-svn-id: http://core.svn.wordpress.org/trunk@33428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-28 14:12:25 +00:00
Ella Iseulde Van Dorpe
974c1533ea
TinyMCE: wptextpattern: fix typo and make it faster
...
See #31441 .
Built from https://develop.svn.wordpress.org/trunk@33458
git-svn-id: http://core.svn.wordpress.org/trunk@33425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-28 11:41:25 +00:00
Ella Iseulde Van Dorpe
f78068c152
TinyMCE: wptextpattern: headings on enter
...
Fixes #31441 .
Built from https://develop.svn.wordpress.org/trunk@33452
git-svn-id: http://core.svn.wordpress.org/trunk@33419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-27 23:16:25 +00:00
Andrew Ozz
a92b1d02ae
TinyMCE: remove role=tab from the keyboard shortcuts help dialog.
...
See #33031 .
Built from https://develop.svn.wordpress.org/trunk@33430
git-svn-id: http://core.svn.wordpress.org/trunk@33397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-26 21:37:24 +00:00
Andrew Ozz
170eef2e93
TinyMCE: fix accessibility for the keyboard shortcuts help dialog.
...
Props afercia, azaozz. Fixes #33031 .
Built from https://develop.svn.wordpress.org/trunk@33429
git-svn-id: http://core.svn.wordpress.org/trunk@33396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-26 19:14:26 +00:00
Ella Iseulde Van Dorpe
63dc60ee7b
JSHint for [33426]
...
Oops. :|
See #33096 .
Built from https://develop.svn.wordpress.org/trunk@33428
git-svn-id: http://core.svn.wordpress.org/trunk@33395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-26 18:18:24 +00:00
Ella Iseulde Van Dorpe
d44c684599
TinyMCE: views: use media setting to get post ID
...
Also fix dependency declarations and confusing variable names.
Props rhurling.
Fixes #33096 .
Built from https://develop.svn.wordpress.org/trunk@33426
git-svn-id: http://core.svn.wordpress.org/trunk@33393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-26 10:11:24 +00:00
Ella Iseulde Van Dorpe
19dc4bb13a
Revert [31849] and [33351]
...
Also set the max-width of images in themes to 100%, not in pixels.
See #33022 and #31250 .
Built from https://develop.svn.wordpress.org/trunk@33418
git-svn-id: http://core.svn.wordpress.org/trunk@33386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-25 23:00:24 +00:00
Ella Iseulde Van Dorpe
8830708379
Editor: fit images
...
Fixes #31253 .
Built from https://develop.svn.wordpress.org/trunk@33417
git-svn-id: http://core.svn.wordpress.org/trunk@33385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-25 22:44:24 +00:00
Ella Iseulde Van Dorpe
0433e258b9
Editor: add space around aligned images
...
Also increase the font size of captions.
Part props jmichaelward.
Fixes #32176 .
Built from https://develop.svn.wordpress.org/trunk@33415
git-svn-id: http://core.svn.wordpress.org/trunk@33383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-25 13:12:25 +00:00
Andrew Ozz
87aaf3bcfe
TinyMCE: restore support for `<script>` tags.
...
See #33083 .
Built from https://develop.svn.wordpress.org/trunk@33414
git-svn-id: http://core.svn.wordpress.org/trunk@33382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-24 22:04:25 +00:00
Andrew Ozz
92395fdd8d
TinyMCE: update to 4.2.2. Changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt .
...
Fixes #33033 , #33042 . See #33083 .
Built from https://develop.svn.wordpress.org/trunk@33369
git-svn-id: http://core.svn.wordpress.org/trunk@33341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-22 21:12:24 +00:00
Andrew Ozz
d8980f96da
TinyMCE: add min-width to the placeholder images for the more and nextpage tags to fix them in themes that force width = auto.
...
Fixes #33022 .
Built from https://develop.svn.wordpress.org/trunk@33351
git-svn-id: http://core.svn.wordpress.org/trunk@33323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-21 22:36:24 +00:00
Scott Taylor
23712a822f
Customizer: Nav Menus JS cleanup, second round
...
* Follow the same pattern of namespace instantiation that `WidgetCustomizerPreview` uses
* Remove use of `self` for global delegation
* Use `api` for `wp.customize` and import only top-level globals
* Bind `this` where appropriate and disambiguate scope
See #32911 .
Built from https://develop.svn.wordpress.org/trunk@33347
git-svn-id: http://core.svn.wordpress.org/trunk@33319 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-07-21 17:40:25 +00:00