youknowriad
6137ee183b
Block Editor: Upgrade @wordpress packages to the latest version (4.7).
...
Updated packages:
- @wordpress/annotations@1.0.4
- @wordpress/api-fetch@2.2.6
- @wordpress/block-library@2.2.10
- @wordpress/block-serialization-default-parser@2.0.2
- @wordpress/block-serialization-spec-parser@2.0.2
- @wordpress/blocks@6.0.4
- @wordpress/components@7.0.4
- @wordpress/core-data@2.0.15
- @wordpress/data@4.1.0
- @wordpress/date@3.0.1
- @wordpress/edit-post@3.1.5
- @wordpress/editor@9.0.5
- @wordpress/eslint-plugin@1.0.0
- @wordpress/format-library@1.2.8
- @wordpress/html-entities@2.0.4
- @wordpress/list-reusable-blocks@1.1.17
- @wordpress/notices@1.1.1
- @wordpress/nux@3.0.5
- @wordpress/rich-text@3.0.3
- @wordpress/url@2.3.2
- @wordpress/viewport@2.0.13
This also includes the updates the Core blocks.
The script loader is updated to match the Gutenberg repository too.
Props atimmer, gziolo, joen.
Fixes #45442 , #45637 .
Built from https://develop.svn.wordpress.org/branches/5.0@44183
git-svn-id: http://core.svn.wordpress.org/branches/5.0@44013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-15 10:59:46 +00:00
youknowriad
1bc8389763
Block Editor: Update @wordpress package dependencies.
...
Updated packages
- @wordpress/block-library@2.2.9
- @wordpress/block-serialization-default-parser@2.0.1
- @wordpress/block-serialization-spec-parser@2.0.1
- @wordpress/blocks@6.0.3
- @wordpress/edit-post@3.1.4
- @wordpress/editor@9.0.4
- @wordpress/format-library@1.2.7
Other changes:
- Backport the parser changes.
Fixes #45145 .
Built from https://develop.svn.wordpress.org/branches/5.0@43955
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-30 20:58:46 +00:00
youknowriad
3dd6578998
Block Editor: Update @wordpress package dependencies.
...
Update packages:
- @wordpress/block-library@2.2.8
- @wordpress/components@7.0.3
- @wordpress/edit-post@3.1.3
- @wordpress/editor@9.0.3
- @wordpress/format-library@1.2.6
- @wordpress/list-reusable-blocks@1.1.16
- @wordpress/nux@3.0.4
Other changes:
Fix a translator comment in edit-form-blocks.php.
Rename the gutenberg_ functions in blocks/latest-comments.php.
Props pento.
Fixes #45145 .
Built from https://develop.svn.wordpress.org/branches/5.0@43949
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-30 09:59:52 +00:00
youknowriad
97e84f8a03
Block Editor: Refresh nonces used by wp.apiFetch.
...
Adds heartbeat nonces refreshing support to wp.apiFetch requests.
Props pento, adamsilverstein, dd32, desrosj.
Fixes #45113 .
Built from https://develop.svn.wordpress.org/branches/5.0@43939
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-22 19:40:46 +00:00
noisysocks
7ade352f0f
Block Editor: Update @wordpress package dependencies
...
Updates packages:
- block-library
- components
- edit-post
- editor
- format-library
- list-reusable-blocks
- nux
See #45145
Built from https://develop.svn.wordpress.org/branches/5.0@43935
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-22 06:05:51 +00:00
Gary Pendergast
7d19c028be
Build Tools: Tweak the webpack config for unminified files.
...
[43931] unintentionally caused the unminified files to wrap the code in an `eval()` call.
See #45201 .
Built from https://develop.svn.wordpress.org/branches/5.0@43932
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-22 03:12:49 +00:00
Gary Pendergast
b93a84709d
Build Tools: Don't include .map
files in the build.
...
These files are fairly large, and while they're useful in development, they're not needed in the final build.
Props pento, mcsf.
See #45201 .
Built from https://develop.svn.wordpress.org/branches/5.0@43931
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-22 02:05:47 +00:00
danielbachhuber
0fb5da94e6
Block Editor: Update @WordPress dependencies to match Gutenberg 4.5.1.
...
Updates packages: annotations,
api-fetch,
block-library,
blocks,
components,
core-data,
data,
dom, edit-post,
editor,
format-library,
jest-console,
jest-preset-default,
keycodes,
html-entities,
list-reusable-blocks,
notices,
nux,
rich-text,
scripts,
token-list, url,
viewport
Fixes undefined notices in some blocks. Removes incorrect `'gutenberg'` textdomain too.
See #45145
Built from https://develop.svn.wordpress.org/branches/5.0@43919
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-21 15:09:57 +00:00
Andrew Ozz
f979e79d54
TinyMCE: Fix the keyboard shortcut (Alt+Shift+H) to not open the default Block Editor help modal and change the title of the help modal to "Classic Block Keyboard Shortcuts" in the Classic BLock. Also remove Alt+Shift+Z in the Classic Block as it conflicts with the Block Editor.
...
Fixes #45365 .
Built from https://develop.svn.wordpress.org/branches/5.0@43915
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-21 12:28:48 +00:00
aduth
2ae0f9e6b4
Block Editor: Update @wordpress dependencies to match Gutenberg 4.4.0
...
Updates packages: annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, edit-post, editor, element, format-library, i18n, list-reusable-blocks, notices, nux, plugins, rich-text, viewport
Updates changed dependencies in script-loader.php
Upgrades React from 16.5.2 to 16.6.3
See #45145
Built from https://develop.svn.wordpress.org/branches/5.0@43903
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-16 00:10:55 +00:00
youknowriad
67bd8ce94c
Block Editor: Update @wordpress dependencies to the latest version matching Gutenberg 4.3.0
...
- Update the editor,edit-post,components,block-library,nux and list-reusable blocks packages
- Also add a missing wp-date dependency to the editor script
Props atimmer
See #45145 .
Built from https://develop.svn.wordpress.org/branches/5.0@43891
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-12 17:02:54 +00:00
Andrew Ozz
059f413ade
Fix linting after [43889].
...
See #45264 .
Built from https://develop.svn.wordpress.org/branches/5.0@43890
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-12 13:57:48 +00:00
Andrew Ozz
48f893b42f
Block Editor: Fix the TinyMCE wordpress
plugin to handle hiding/showing of toolbars in the classic block. Change the classic block toolbar to use the (now fixed) wp_adv
button.
...
Fixes #45264 .
Built from https://develop.svn.wordpress.org/branches/5.0@43889
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-12 10:35:49 +00:00
Gary Pendergast
8f8f3bb91d
Block Editor: Hide the Custom Fields meta box option if that meta box has been removed.
...
Some plugins remove the Custom Fields meta box, particularly when they provide functionality that replaces it. The block editor would correctly not display this meta box in these circumstances, but it still showed the option to display or hide it.
Props pento, noisysocks.
See #45282 .
Built from https://develop.svn.wordpress.org/branches/5.0@43885
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-12 03:38:50 +00:00
Gary Pendergast
54368e50b6
Block Editor: Update @wordpress
dependencies to the latest version.
...
Changes of note:
- Includes the new Annotations API package.
- `wp-polyfill-ecmascript.js` is renamed to `wp-polyfill.js`.
- `strip_dynamic_blocks()` has been removed in favour of `excerpt_remove_blocks()`.
- The PHP block parser is now syncing from the `block-serialization-default-parser` package.
- `do_blocks()` uses the new parser.
- The `do_block` filter has been removed from `do_blocks()`, in favour of a `render_block` filter in `render_block()`.
See #45145 , #45190 , #45264 , #45282 .
Built from https://develop.svn.wordpress.org/branches/5.0@43884
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-12 02:27:57 +00:00
danielbachhuber
56842f36aa
REST API: Prevent duplicate firing of rest(_after)?_insert_attachment
actions.
...
Props danielbachhuber, peterwilsoncc.
Fixes #45269 .
See #42864 .
Built from https://develop.svn.wordpress.org/branches/5.0@43862
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-03 14:14:49 +00:00
Gary Pendergast
325cb107d1
Build Tools: Update the @wordpress
packages.
...
This brings support for the custom fields meta box to the block editor.
The `webpack` and `copy-webpack-plugin` packages have also been updated.
See #45145 .
Fixes #45257 .
Built from https://develop.svn.wordpress.org/branches/5.0@43861
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-03 07:57:54 +00:00
Gary Pendergast
eb4031a209
Blocks: Add "Export as JSON" action to the wp_block
post list screen.
...
Remove the "Quick Edit" for `wp_block`s, too, as they don't need any of that functionality.
Props noisysocks.
Fixes #45247 .
Built from https://develop.svn.wordpress.org/branches/5.0@43854
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-11-01 02:25:47 +00:00
Gary Pendergast
1fb36474cb
FTP/PemFTP Library: Fix some PHP notices.
...
- `ftp_base::glob()` used `each()`, which is deprecated as of PHP 7.2.
- `ftp_base::fget()` was missing the decleration of its third parameter, `$rest`.
Props itowhid06.
See #44489 .
Built from https://develop.svn.wordpress.org/branches/5.0@43848
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-31 18:15:54 +00:00
Gary Pendergast
59c4bcebcc
Build Tools: Update the @wordpress
packages.
...
Trunk now matches Gutenberg 4.2 RC1.
See #45145 .
Built from https://develop.svn.wordpress.org/branches/5.0@43847
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-31 18:15:02 +00:00
Gary Pendergast
37177611f3
WordPress 5.0 Beta 2.
...
Built from https://develop.svn.wordpress.org/branches/5.0@43844
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-30 04:47:50 +00:00
Gary Pendergast
0014a77fa3
Build Tools: Update @wordpress
packages.
...
See #45145 .
Built from https://develop.svn.wordpress.org/branches/5.0@43843
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-30 03:09:58 +00:00
allancole
b8cb0e7058
Importing Twenty Nineteen, our new default theme for 2019, set for 5.0.
...
Let Gutenberg shine with this simple, fast, and powerful theme. Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, netweb, b-07, khleomix, blowery, dereksmart, jasmussen, audrasjb, nielslange, mmaumio, dimadin, joyously, anevins12, peterwilsoncc, dannycooper, icaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, icaleb, grapplerulrich, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart.
Built from https://develop.svn.wordpress.org/branches/5.0@43842
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-30 02:15:04 +00:00
Gary Pendergast
9b3cee6428
Tests: Fix failing unit tests caused by [43840].
...
See #45145 .
Built from https://develop.svn.wordpress.org/branches/5.0@43841
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-29 08:37:29 +00:00
Gary Pendergast
ebb5e6dd0d
Build Tools: Upgrade @wordpress
packages to the latest version.
...
This also includes the new `@wordpress/format-library` and `@wordpress/notices` packages.
`package-lock.json` has been completely regenerated in this commit.
See #45145 .
Built from https://develop.svn.wordpress.org/branches/5.0@43840
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-29 08:36:36 +00:00
Gary Pendergast
d13ae6300c
Build Tools: Add an npm script shortcut to run grunt.
...
Rather than needing to install grunt globally, this allows running grunt from `node_modules`, instead.
`npm run grunt ...` is effectively the equivalent of running `grunt ...`.
Props andrew.taylor.
See #45214 .
Built from https://develop.svn.wordpress.org/branches/5.0@43836
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-29 08:28:32 +00:00
Gary Pendergast
91ce38b3d5
Build Tools: Revert [43826] and [43824].
...
Grabbing the packages directly from the Gutenberg repo was an interesting experiment, but it causes significant workflow issues, particular for folks using Windows.
See #45145 .
Built from https://develop.svn.wordpress.org/branches/5.0@43835
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-29 08:27:39 +00:00
herregroen
6ff1386460
I18N: Add JavaScript translation support.
...
Adds the `wp_set_script_translations` function which registers translations for a JavaScript file. This function takes a handle, domain and optionally a path and ensures JavaScript translation files are loaded if they exist.
Props atimmer, omarreiss, nerrad, swissspidy, ocean90.
Fixes #45103 .
Built from https://develop.svn.wordpress.org/branches/5.0@43825
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-26 07:35:06 +00:00
atimmer
efb928cd0b
Build tools: Clone and build from packages repo.
...
Instead of requiring the packages individually this commit changes it so the packages are used from the packages repository (gutenberg). This is a solution that makes updating the packages easier, as long as we don't have a monorepo to manage both WordPress & the JavaScript packages together.
Props youknowriad, gziolo, omarreiss, herregroen.
See #45145 .
Built from https://develop.svn.wordpress.org/branches/5.0@43824
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-26 07:33:26 +00:00
Gary Pendergast
50ef6331e7
Scripts: Add a missing date format to the wp-date
config.
...
`wp-date` recently added the `datetimeAbbreviated` format, but the config wasn't sending it on page load.
Fixes #45158 .
Built from https://develop.svn.wordpress.org/branches/5.0@43818
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-24 11:48:53 +00:00
atimmer
8efbcce93b
Build tools: Upgrade @wordpress packages.
...
Generated using `npm update @wordpress/api-fetch @wordpress/blob @wordpress/block-library @wordpress/blocks @wordpress/components @wordpress/compose @wordpress/core-data @wordpress/data @wordpress/date @wordpress/dom @wordpress/edit-post @wordpress/editor @wordpress/element @wordpress/escape-html @wordpress/list-reusable-blocks @wordpress/nux @wordpress/plugins @wordpress/redux-routine @wordpress/rich-text @wordpress/url @wordpress/viewport`.
See #45145 .
Built from https://develop.svn.wordpress.org/branches/5.0@43789
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-23 06:06:59 +00:00
Gary Pendergast
49702cca54
TinyMCE: remove stray CSS map reference from skin.min.css
.
...
Merges [43581] to the 5.0 branch.
Props pross.
Fixes #44785 .
Built from https://develop.svn.wordpress.org/branches/5.0@43787
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-22 06:05:39 +00:00
danielbachhuber
6c9675bf37
REST API: Handle api-request query parameters with plain permalinks.
...
When constructing the request URL, ensure that `?` is replaced with `&` when the API root already contains a `?`. Fixes an issue where requests were broken when sites had permalinks set to plain.
Props aduth.
Merges [42965] to the 5.0 branch.
Fixes #42382 .
Built from https://develop.svn.wordpress.org/branches/5.0@43771
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-19 18:33:39 +00:00
Gary Pendergast
158cbdbf03
Build Tools: Copy package JavaScript and CSS into wp-includes
.
...
- `grunt webpack:dev` now copies packages JS into `/src/wp-includes/js/dist`, and CSS into `/src/wp-includes/css/dist`.
- `grunt webpack:prod` does the same, but into `/build` instead of `/src`.
- `grunt build` now runs the `webpack:prod` task.
Props atimmer, pento.
Fixes #45119 .
Built from https://develop.svn.wordpress.org/branches/5.0@43760
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-19 06:06:46 +00:00
danielbachhuber
a5bd8cb64c
REST API: generate a valid fallback URI in wp.api.utils.getRootURL.
...
When window.location.origin isn't set, correctly insert two slashes between the protocol and host when constructing the fallback URL.
Props abdullahramzan.
Merges [43566] into the 5.0 branch.
Fixes #44764 .
Built from https://develop.svn.wordpress.org/branches/5.0@43757
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-18 20:49:25 +00:00
Sergey Biryukov
4af0279f2a
Embeds: Avoid a JS error in wp.receiveEmbedMessage
if data
parameter is not set.
...
Props dsifford, kadamwhite.
Merges [43593] and [43597] to the 5.0 branch.
Fixes #44832 .
Built from https://develop.svn.wordpress.org/branches/5.0@43704
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-11 04:00:23 +00:00
atimmer
3810f7a3ef
Build tools: Upgrade webpack to version 4.
...
* Minification is done by uglify, so disable that in the media build.
* The webpack boilerplate has changed, which explains the changes in the build files.
* `ModuleConcatenationPlugin` is enable by default for production builds so we don't have to specify that ourselves.
See #45065 .
Built from https://develop.svn.wordpress.org/branches/5.0@43688
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-10 04:16:23 +00:00
Aaron Jorbin
dda1111bdf
Build/Test Tools: Revert grunt-contrib-uglify update
...
Follow up to [43684].
See #45064 .
Built from https://develop.svn.wordpress.org/branches/5.0@43686
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-10 04:11:25 +00:00
Aaron Jorbin
a870c7e8f3
Build/Test: Update dependencies for 5.0
...
Updates package dependencies to more modern versions, also adds .nvmrc and package-lock.json as followups to [43683] and [43571].
See #44600 .
Fixes #45064 .
Built from https://develop.svn.wordpress.org/branches/5.0@43684
git-svn-id: http://core.svn.wordpress.org/branches/5.0@43513 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-10-09 02:52:45 +00:00
Andrew Ozz
6547731cfe
TinyMCE: update to 4.8.0, changelog: https://www.tiny.cloud/docs/changelog/#version480july112018
...
Merges [43447] to the 4.9 branch.
Fixes #44134 .
Built from https://develop.svn.wordpress.org/branches/4.9@43472
git-svn-id: http://core.svn.wordpress.org/branches/4.9@43299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-07-17 10:04:26 +00:00
Gary Pendergast
cb0ea9d291
Emoji: Update Twemoji to version 11.0.
...
🦹
Backport of [43377] to the 4.9 branch.
Props kraftbj,
Fixes #44339 .
Built from https://develop.svn.wordpress.org/branches/4.9@43444
git-svn-id: http://core.svn.wordpress.org/branches/4.9@43271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-07-13 06:37:26 +00:00
Andrew Ozz
b78d21d9f0
Privacy: add default text for a privacy policy including a tutorial on now to create one.
...
Insert both the text and tutorial in new policy pages and highlight is brightly in the editor.
Show only the suggested text in the policy postbox.
Props melchoyce, idea15, allendav, xkon, macbookandrew, azaozz.
Merges [43044], [43048], [43052], [43126], [43146], and [43148] to the 4.9 branch.
Fixes #43473 .
Built from https://develop.svn.wordpress.org/branches/4.9@43149
git-svn-id: http://core.svn.wordpress.org/branches/4.9@42978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-03 17:59:30 +00:00
Sergey Biryukov
85d1ba9726
TinyMCE: Update to 4.7.11.
...
Props iseulde.
Merges [43004] to the 4.9 branch.
Fixes #43862 .
Built from https://develop.svn.wordpress.org/branches/4.9@43068
git-svn-id: http://core.svn.wordpress.org/branches/4.9@42897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 22:31:24 +00:00
Sergey Biryukov
ee43146223
Privacy: add "Mine" filter for media similarly to posts and comments.
...
Props audrasjb.
Merged [43056], [43062], [43063] to the 4.9 branch.
Fixes #43820 .
Built from https://develop.svn.wordpress.org/branches/4.9@43064
git-svn-id: http://core.svn.wordpress.org/branches/4.9@42893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-05-01 22:04:28 +00:00
Dominik Schilling
760aa16ab8
Media: Update minified version of imgAreaSelect after [42874].
...
Adds imgAreaSelect to the uglify grunt process.
Merge of [42930] to the 4.9 branch.
Props adamsilverstein.
See #41242 .
Built from https://develop.svn.wordpress.org/branches/4.9@42932
git-svn-id: http://core.svn.wordpress.org/branches/4.9@42762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-04-03 19:51:37 +00:00
Adam Silverstein
4650753c6b
Media: Fix image cropping on touch screen devices.
...
* In initCrop, handle touch events in addition to mouse events.
* In imageSelect jQuery plugin, accept event.which of 0 as provided by touch events.
Props yahil, alexgso, joemcgill.
Merges [42818] to the 4.9 branch.
Fixes #41242 .
Built from https://develop.svn.wordpress.org/branches/4.9@42874
git-svn-id: http://core.svn.wordpress.org/branches/4.9@42704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-24 20:26:42 +00:00
Dominik Schilling
04d41666dc
REST API JavaScript Client: Support an empty string for nonce
to disable sending the X-WP-Nonce header.
...
Passing a `nonce` argument with an empty string to `wp.api.init()` now does no longer fall back to `wpApiSettings.nonce`. This makes it possible to stop sending nonce headers, for example to a read-only endpoint on another site in a multisite install.
Merge of [42852] to the 4.9 branch.
Props adamsilverstein, FPCSJames, ocean90, swissspidy.
See #42948 , #43266 .
Built from https://develop.svn.wordpress.org/branches/4.9@42854
git-svn-id: http://core.svn.wordpress.org/branches/4.9@42684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-18 20:04:42 +00:00
Dominik Schilling
7faddf9e50
REST API JS Client: Extend custom nonce functionality to collections.
...
This brings the improved nonce handling from [41553] to collections to remove the direct `wpApiSettings.nonce` dependency.
Merge of [42851] to the 4.9 branch.
Props adamsilverstein, ocean90, swissspidy.
See #43265 .
Built from https://develop.svn.wordpress.org/branches/4.9@42853
git-svn-id: http://core.svn.wordpress.org/branches/4.9@42683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-18 20:00:40 +00:00
Dominik Schilling
276dbdc296
Media: Grid view - correct placeholder positioning during uploads.
...
Preventing contextually created attachments from being added to the grid collection in Attachments.validator. Remove the previous filtering introduced in [41937] which caused the placement issue.
Merge of [42739-42740] to the 4.9 branch.
Props lancewillett, Junaidkbr, designsimply, joemcgill.
Fixes #42968 .
Built from https://develop.svn.wordpress.org/branches/4.9@42848
git-svn-id: http://core.svn.wordpress.org/branches/4.9@42678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-18 16:20:37 +00:00
Sergey Biryukov
a91c3fbdc0
General: Replace Cheatin’ uh?
with friendlier error messages.
...
While intended as a playful error message, `Cheatin’ uh?` can be interpreted as insulting or accusatory in an already stressful situation. This replaces Cheatin’ with more meaningful error messages, depending on the error that occurs.
Props ElectricFeet, EricMeyer, karmatosed, dd32, BandonRandon, melchoyce, kristastevens for language; dmsnell for original patch; peterwilsoncc.
Merged [42648] and [42719] to the 4.9 branch.
Fixes #38332 .
Built from https://develop.svn.wordpress.org/branches/4.9@42811
git-svn-id: http://core.svn.wordpress.org/branches/4.9@42641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-03-09 00:15:42 +00:00