38339 Commits

Author SHA1 Message Date
Gary Pendergast
b5f10f4d78 Build Tools: Don't minimise CSS in the unminimised files.
See #45201.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43933 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-22 03:20:30 +00:00
Gary Pendergast
edbb865da0 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.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43932 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-22 03:11:22 +00:00
Gary Pendergast
2a0319b577 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.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43931 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-22 02:04:51 +00:00
Peter Wilson
e55da18ea2 Formatting: Revert pre-save filter adding rel="noopener".
Removes filters adding `rel="noopener"` to links targeting `_blank`.

Previous implementation could introduce blank `rel` attributes and could corrupt JSON data when saving via the customizer.

See #43187.
Reverts [43732] and [43733] from the 5.0 branch.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43930 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-22 00:24:01 +00:00
allancole
be920c82f5 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This update changes the following: 

- Add dynamic theme version to stylesheet enqueue.

Props grapplerulrich, kjellr.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43929 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 22:42:16 +00:00
allancole
691a74fe55 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This update changes the following: 

- Fixes link colors within solid-color pullquote blocks.

Props kjellr, xkon.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43928 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 22:29:55 +00:00
allancole
1cf66057f6 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This update changes the following: 

- Fix social-menu and site-logo alignment.

Props kjellr, xkon.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43927 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 20:13:16 +00:00
allancole
ec99e72451 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This update changes the following: 

- Add PHPCS code quality fixes for functions.php
- Update stylesheets with a fresh Sass re-compile

Props xkon, kjellr



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43926 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 19:56:23 +00:00
Riad Benguella
9e8f5dde86 Core Editor: Specify script versions for the WordPress packages and their vendor dependencies.
Using the package.json versions of the npm dependencies as versions when registering 
the WordPress scripts.

Props dimadin, dd32.
Fixes #45187.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43925 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 19:45:36 +00:00
Riad Benguella
8b3134f288 Block Editor: Clarify PHP Docs of the block_version function.
Clarify the return value.

Props desrosj, mukesh27.
Fixes #45342.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43924 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 19:38:51 +00:00
Riad Benguella
47c42639aa Block Editor: Fix PHP warning showing up when loading editor styles while in RTL.
In RTL languages, WordPress adds style-editor-rtl.css editor styles to the global $editor_styles
This patch ignores handling these styles if the file is not preset.

Props desrosj, mostafa.s1990.
Fixes #45288.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43923 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 19:29:11 +00:00
Mel Choyce
4a58b3de2e About Page: Update images and de-italicize a11y note.
Props @matveb, @kjellr, @Alexis Lloyd, @courtney0burton, @melchoyce.
See #45178.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43922 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 16:59:11 +00:00
Miguel Fonseca
904cb8b220 Warn users of Gutenberg plugin of its deactivation upon 5.0 upgrade.
Fixes #45073.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43921 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 16:34:28 +00:00
Miguel Fonseca
154e0bd880 Block Editor: Show privacy help notice on Privacy Policy page.
When editing a page set to be the Privacy Policy page, display a help notice
containing a link to the Privacy Policy guide.

This changeset ports this functionality to the new Block Editor.

Props desrosj.
Fixes #45057.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43920 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 16:17:17 +00:00
Daniel Bachhuber
60ec049c98 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


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43919 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 15:08:01 +00:00
Daniel Bachhuber
9ee7a34c9f REST API: Preserve unknown, respect null in server-side block rendering.
* Skips validation where there is no attribute definition, but keeps the attribute value. Previously, the attribute would be omitted from the attributes passed to `render_callback`. Notably, this resolves an issue where `render_callback` cannot receive a block's `align` and `customClassName` attribute values, since these are defined as a client-side filter.
* Validates `null` as a proper value in its own right. Previously, a client implementation of a block could track `{"attribute":null}` as an explicitly empty value, and the server would wrongly initiate defaulting behavior. The new behavior will now only populate a default value if the attribute is not defined at all, including when unset in its being invalid per the attribute schema.

Props aduth, noisysocks, youknowriad.
See #45145 for the patch, #45098 for the original ticket.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43918 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 14:43:33 +00:00
Daniel Bachhuber
8ef1b05bfe REST API: Always include title.raw/content.raw for Blocks in context=view.
Demarcations for reusable blocks are always expected to be accessible by clients.

Props noisysocks, youknowriad.
See #45145 for the patch, #45098 for the original ticket.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43917 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 14:34:09 +00:00
Daniel Bachhuber
8e8dca6069 Block Editor: Expose value of user_can_richedit().
In order for the Block Editor to know whether to allow visual editing, it needs to know the value of `user_can_richedit()`.

Props youknowriad.
Fixes #45375.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43916 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 14:10:18 +00:00
Andrew Ozz
f02568afb4 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.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43915 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 12:27:12 +00:00
Andrew Ozz
b9ac168134 TinyMCE: Run the "wp_editor_settings" and "disable_captions" filters for the Classic block. Fixes possible regressions in plugins that use these filters, also plugins that use them to add filters for the buttons, external plugins, etc.
Fixes #45348.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43914 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 12:17:02 +00:00
Mel Choyce
b436ee19f3 About Page: Initial About Page design and strings for 5.0.
Props @pixelverbieger, @ocean90, @karmatosed, @pento, @boemedia, @lonelyvegan, @sami.keijonen, @TimothyBlynJacobs, @xkon, @afercia, @laurelfulford, @joostdevalk, @ipstenu, @matveb, @joen, @tinkerbelly, @chanthaboune, @kjellr, @alexislloyd, @melchoyce.
See #45178.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43913 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 02:38:17 +00:00
Gary Pendergast
3d2ce47072 Upgrade/Install: Split Sample Page, Hello World, and Privacy Policy content.
[43820] converted the content to blocks, but included block markers in the translateable strings, which made translations difficult to do accurately.

Props desrosj, dd32, ocean90.
See #45151.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43912 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 01:47:49 +00:00
laurelfulford
1bf081f614 Twenty Sixteen: Update theme’s wide image styles to include Image Blocks
Twenty Sixteen includes functionality and styles that make full-size images extend wider than the content when they are added to posts, and appear below the post meta. This update adds the same behavior to image blocks and their captions.

Fixes: #45380.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43911 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 01:04:56 +00:00
Gary Pendergast
0693a11592 i18n: Remove the wp_get_jed_locale_data() function.
This function was used as a translation workaround in the Gutenberg plugin, it has been replaced in core with the `wp_set_script_translations()` functionality, instead.

See #45111.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43910 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-21 01:02:46 +00:00
allancole
12546370e7 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This update changes the following: 

- Fix JS errors in customizer caused by menu scripts
- Fix footer menu spacing
- Fix pullquote block borders to follow Gutenberg’s described style
- Fix editor-only styles so they don't appear on the frontend when not needed
- Fix search field widget width on mobile
- Fix :visited .button link colors
- Fix Block toolbar position in the editor
- Fix off-canvas mobile menu to prevent text from overflowing
- Improve column block formatting for the editor and frontend
- Improve CSS optimization for selectors that add `dashes` to multi-level lists
- Improve editor font sizes to use pixels over ems
- Improve styles for galleries in the Classic Editor block
- Improve priority+ more-menu threshold to allow more space for menu-items
- Improve logo size on mobile devices
- Improve customizer color options to present a single, unified color option
- Improve print stylesheet for better spacing and colors
- Add more color options to Gutenberg editor 

Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43909 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-19 21:26:02 +00:00
Daniel Bachhuber
9ea3656e1e REST API: Include fields with null schema in get_fields_for_response().
In [43736], we prevented rendering fields when not present in `?_fields=`. However, because `get_fields_for_response()` is dependent on `get_item_schema()`, any custom fields registered with a null schema would be incorrectly excluded from the response. Because the REST API permits a null schema for `register_rest_field()`, those fields should be included in the available fields for a response.

Fixes #45220.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43908 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-19 14:09:07 +00:00
Gary Pendergast
76584c08d7 Post WordPress 5.0 Beta 5 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43907 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-16 01:06:55 +00:00
Gary Pendergast
88b523d130 WordPress 5.0 Beta 5.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43906 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-16 00:57:19 +00:00
Gary Pendergast
d2ca4ad836 Build Tools: Minify the package CSS when building.
CSS coming from the `@wordpress` packages wasn't being minified in the build. This had the noteable side effect of causing RTL CSS to not be loaded when `SCRIPT_DEBUG` was set to `false`.

Props websupporter.
See #45330.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43905 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-16 00:22:27 +00:00
allancole
ea48d8514b Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This update changes the following: 

- Improve menu UI to support keyboard navigation in both directions
- Improve more-menu-link visibility when no menu items are hidden
- Improve text-selection custom colors for better contrast and legibility
- Improve support for sticky toolbars in the editor
- Improve table element fonts
- Add .button class support 
- Remove translation escaping
- Fix menu JS to prevent unused touched event listeners
- Fix duplicate more-menu-link issue on selective refresh in the customizer
- Fix editor font-weights for headings
- Fix search form input style
- Fix nested blockquote styles
- Fix download block button style when download text stretches more than one line
- Fix audio block centering issue
- Fix align-full blocks in the editor so they don’t create horizontal scrollbars
- Fix editor to prevent Gutenberg's meta boxes area from overlapping the content

Initial development occurred on GitHub. See: https://github.com/WordPress/twentynineteen

Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, aaronjorbin, ntwb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins12, peterwilsoncc, DannyCooper, WPprodigy, siriokun, briannaorg, 00travelgirl00, shahjehanali1, ianbelanger79, nadim1992, Ismail-elkorchi, nativeinside, iamchetanp, grappler, ocean90, joshfeck, frankew, abdulwahab610, mendezcode, eliorivero, melchoyce, jasmussen, laurelfulford, mdawaffe, kraftbj, dereksmart, naokomc, mayukojpn, enodekciw, chetansatasiya, ketuchetan, atanas-angelov-dev, carolinan, sharazghouri, artisan-asad, mukeshpanchal27, mukesh27, burhandodhy, @crunnells, aryaprakasa, tlxo, themeroots, whizbangik, yingles, tlxo, youthkee, brentswisher, smy315, ahmadawais, desi-developer, 2ndkauboy, mor10.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43904 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-16 00:13:32 +00:00
Andrew Duthie
f29f39b78c 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


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43903 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-16 00:09:08 +00:00
Gary Pendergast
3d4b1f1229 Tests: Update a test that relied on the Hello Dolly plugin version.
[43900] changed the plugin version, causing a unit test failure.

See #45345.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43902 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-16 00:01:47 +00:00
Gary Pendergast
0fc49bfb89 Block Editor: Load TinyMCE inline scripts later.
Previously, the TinyMCE inline scripts were added on the `init` action in the block editor. In the classic editor, however, these scripts are loaded when the TinyMCE window is printed, and some plugins rely on them being loaded later, so they can attach to the appropriate filters.

See #45338.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43901 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-15 23:52:47 +00:00
Gary Pendergast
5ca028cdbe Hello Dolly: Hide the lyrics in the block editor.
I'm sorry, Hello Dolly. You're my favourite plugin, but the way you output your lyrics doesn't play nicely with the block editor, particuarly on mobile devices.

This isn't Farewell Dolly, you're still on every other admin page, and I know you'll come back better and stronger.

Props joen.
See #45345.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43900 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-15 23:37:31 +00:00
Gary Pendergast
61ee6d9fa7 Nav Menus: Fix a PHP 7.3 error when switching themes.
When switching themes, `wp_map_nav_menu_locations()` is used to ensure nav menus are placed in the relevant menu location. Occasionally, menus are registered to locations with numeric slugs, rather than strings. `wp_map_nav_menu_locations()` assumed it would be the latter, and ran `stripos()` on those numeric slugs. This behaviour is deprecated in PHP 7.3.

As this is the last known PHP 7.3 incompatibility, this commit also removes PHP 7.3 from Travis' `allowed_failures` list.

Props desrosj, jorbin.
See #45018.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43899 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-15 23:19:40 +00:00
herregroen
07736dc37c I18N: Fix warnings in JavaScript translations.
Fixes an undefined index PHP warning in the load_script_textdomain function and a non-interrupting JS error when registering a domain which has no translations.

Props omarreiss, ocean90, georgestephanis.
Fixes #45256.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43898 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-15 14:36:39 +00:00
Daniel Bachhuber
4b791ecf5f REST API: Avoid using 'parent' as path argument name for autosaves.
When 'parent' is set as the path argument name, it gets passed down through to the `create_item()` method and can erroneously reset the 'parent' value on the post itself. Instead, we rename the argument to 'id' and replicate the revision controller's `get_items_permissions_check()` to instead reference 'id'.

Also ensures revision query params (of which there are many) aren't exposed as the query params for autosaves (of which there are two).

Props TimothyBlynJacobs.
See #43316.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43897 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-15 12:56:54 +00:00
Gary Pendergast
e964c993be Post WordPress 5.0 Beta 4 version bump.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43896 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-13 01:14:27 +00:00
Gary Pendergast
ecceac076e WordPress 5.0 Beta 4.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43895 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-13 01:01:02 +00:00
Gary Pendergast
ff57e40a76 Script Loader: Fix an error introduced in [43893].
`wp_common_block_scripts_and_styles()` should only exit early if we're in the admin and the current screen isn't the block editor.

See #45302.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43894 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-13 00:24:07 +00:00
Gary Pendergast
9d9854594b Scripts: Fix a PHP error in admin-ajax calls.
When making an ajax request, `wp_enqueue_registered_block_scripts_and_styles()` checked if `is_admin()` was true before accessing `$current_screen`, rather than checking if `$current_screen` was defined. This is usually fine, execept for in ajax requests.

Props ocean90, foreverpinetree, pento.
See #45203.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43893 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 23:37:31 +00:00
allancole
f2517bad92 Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.
This update applies the following changes:

- Improve menu UI to support keyboard, click and touch interactions
- Improve variable scoping and js performance in menu interaction javascript
- Improve custom-colors for selected text, buttons and menu hover styles
- Improve margins structure for more consistency between editor and frontend
- Improve discussion avatars for simpler wording and better performance
- Improve fonts in list widgets and list blocks 
- Improve comment responsive spacing and avatar display
- Improve various block styles to make them consistent between the editor and frontend
- Add tabbed browsing support for ie11
- Add backwards compatibility support for older versions of WordPress
- Add fallback styles for older versions of WP where Gutenberg is activated and then deactivated (backwards compatibility)
- Add `sizes` attribute for featured images to improve responsive performance
- Add focus-within polyfill
- Add a footer menu for secondary page links
- Fix editor styles to prevent conflicts with plugins that add meta boxes to the editor
- Fix columns block issues on small screens
- Fix empty-space font text cursor issue in Gutenberg editor
- Fix RTL floating styles so that left/right floats are honored
- Fix cover image block margins/padding
- Fix invalid rgba style
- Fix php warning when returning attributes
- Fix gallery widget margins to improve gallery grids
- Fix .entry-content selectors to prevent shortcodes, plugins and other unknown content from breaking the layout
- Remove translation escaping to follow code standards in previous default themes
- Remove custom color output in the fronten header when default color is selected
- Remove fly-out sub-sub-sub-menu behavior on desktop to prevent sub-menus from falling off the screen
- General code clean up and coding standards improvements

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, mukeshpanchal27, burhandodhy, crunnells, Ismail-elkorchi, aryaprakasa, @tlxo, @themeroots, @whizbangik, @yingles, @youthkee, @brentswisher, @smy315, @ahmadawais, @desi-developer.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43892 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 23:19:13 +00:00
Riad Benguella
0c58fd2301 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.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43891 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 17:01:09 +00:00
Andrew Ozz
ab37690438 Fix linting after [43889].
See #45264.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43890 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 13:56:41 +00:00
Andrew Ozz
e5d7e4b82b 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.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43889 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 10:34:50 +00:00
Andrew Ozz
c2aa32f654 Block Editor: A little cleanup to render_block(). Always normalize $block['attrs'] to array in 'render_block' filter.
See #45145.

git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43888 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 10:02:25 +00:00
Gary Pendergast
781f30bf49 Docs: Future-proof comments referencing 5.0 TODOs.
Some Customizer-related files contain inline comments referencing work to do for #42364 for 5.0. Those comments are now outdated as #42364 was moved to the 5.1 milestone.

Props dlh.
See #45115.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43887 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 04:22:46 +00:00
Gary Pendergast
e603cf6ba3 Build Tools: Add non-minified @wordpress scripts to the build output.
Props atimmer.
See #45156.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43886 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 04:18:52 +00:00
Gary Pendergast
114a1eeb3f 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.




git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43885 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 03:37:41 +00:00
Gary Pendergast
26414eec37 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.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43884 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 02:26:18 +00:00