youknowriad
e76d4e1bcd
Block Editor: Backport fixes targetted for WordPress 5.8 RC4.
...
This includes:
- Suggestion List: Check if a node exists to scroll into view.
- Autocomplete: reset state for empty text.
- Adds auxiliary class names for editor styles in the widgets editor.
- Extract snackbars into a separate component.
- Rich text: run input rules after composition end.
- iframe: load inline styles.
- Multi select: select all: restore ref callback.
- Writing flow: allow select all from empty selection.
- Post Excerpt: Fix excerpt_more filter conflict and remove wordCount attribute.
- Add the percent unit to the default units in Core.
Props desrosj.
See #53397 .
Built from https://develop.svn.wordpress.org/trunk@51443
git-svn-id: http://core.svn.wordpress.org/trunk@51054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 18:55:29 +00:00
youknowriad
e270f4f0f3
Block Editor: Include the fixes targetted for WordPress 5.8 RC3.
...
This includes the following fixes:
- Safari: see if compositing layer size is more reasonable when position fixed divs are not inserted into content.
- Site Logo Block: update Site Logo block UI and option syncing.
- Fix moving inner blocks in the Widgets Customizer.
- Allow themes to provide empty values for color.duotone and spacing.units
- Update getTermsInfo() to workaround parsing issue for translatable strings.
- Specify what settings can be part of settings.layout.
- Update conditions to hide duotone panel.
- Prevent entering invalid values in the Query Loop block config.
- Prevent color panel from showing as empty.
- Avoid calling gutenberg_ functions within code shipped through WordPress Core.
Props desrosj.
See #53397 .
Built from https://develop.svn.wordpress.org/trunk@51421
git-svn-id: http://core.svn.wordpress.org/trunk@51032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 16:41:28 +00:00
jorgefilipecosta
d05e5232b7
Block Editor: Fix for theme.json: color.duotone and spacing.units should allow empty sets.
...
This commit fixes an issue with the color.duotone & spacing.units in which empty values didn't override previous origins, resulting in that a theme couldn't provide an empty set for this via its theme.json.
Props nosolosw, youknowriad, aristath.
See #53175 .
Built from https://develop.svn.wordpress.org/trunk@51383
git-svn-id: http://core.svn.wordpress.org/trunk@50994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-08 19:31:57 +00:00
desrosj
5ce4f59f07
Themes: Remove inline comment that is not relevant in WordPress Core.
...
This removes an inline comment block that was added when importing the `WP_Theme_JSON` class in [50959]. The comment is relevant to the code only when viewed within the context of the Gutenberg plugin.
Props nosolosw, jorbin.
Fixes #53576 .
Built from https://develop.svn.wordpress.org/trunk@51352
git-svn-id: http://core.svn.wordpress.org/trunk@50961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 18:14:57 +00:00
desrosj
433448f1d8
Editor: Remove the experimental `experimental-link-color` feature.
...
This has been plugin only so far and should remain so.
Follow up to [50959].
Props nosolosw.
Fixes #53175 .
Built from https://develop.svn.wordpress.org/trunk@51306
git-svn-id: http://core.svn.wordpress.org/trunk@50915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 13:02:58 +00:00
John Blackbourn
79685db062
Docs: Corrections and improvements to types used in docblocks for symbols, properties, and filters.
...
See #53399
Built from https://develop.svn.wordpress.org/trunk@51298
git-svn-id: http://core.svn.wordpress.org/trunk@50907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-01 21:02:57 +00:00
Sergey Biryukov
d999568ae4
Docs: Improve documentation for optional parameters in `WP_Theme_JSON` methods per the documentation standards.
...
Additionally:
* Remove an empty line between `@param` and `@return` tags.
* Correct alignment of `@param` tags.
Follow-up to [50959], [50973], [51149], [51284], [51289].
See #52628 , #53461 .
Built from https://develop.svn.wordpress.org/trunk@51292
git-svn-id: http://core.svn.wordpress.org/trunk@50901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 19:00:58 +00:00
Sergey Biryukov
40ff2751bc
Docs: Add missing `@since` tags for some `WP_Theme_JSON` methods.
...
Docs: Update syntax for multi-line comments per the documentation standards.
Follow-up to [50959], [50967], [50973], [51051], [51089], [51149].
See #52628 , #53461 .
Built from https://develop.svn.wordpress.org/trunk@51283
git-svn-id: http://core.svn.wordpress.org/trunk@50892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 16:23:57 +00:00
youknowriad
be0d5b2534
Block Editor: Update the packages with a number of fixes targeted for Beta 4.
...
It includes fixes from these two backport PRs:
- https://github.com/WordPress/gutenberg/pull/32992
- https://github.com/WordPress/gutenberg/pull/32956
Props gziolo, ryelle, ntsekouras, desrosj, jorgefilipecosta.
See #53397
Built from https://develop.svn.wordpress.org/trunk@51241
git-svn-id: http://core.svn.wordpress.org/trunk@50850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-25 15:52:22 +00:00
desrosj
fccc020d29
Docs: Various docblock corrections for code added in 5.8.
...
Props johnbillion.
See #53461 .
Built from https://develop.svn.wordpress.org/trunk@51221
git-svn-id: http://core.svn.wordpress.org/trunk@50830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-23 19:05:57 +00:00
jorgefilipecosta
6db7930147
Ports theme.json changes for beta 3.
...
- Add _wp_to_kebab_case function
- Add CSS Custom Properties within preset classes.
Props nosolosw.
See #53397 .
Built from https://develop.svn.wordpress.org/trunk@51198
git-svn-id: http://core.svn.wordpress.org/trunk@50807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-22 09:51:00 +00:00
Sergey Biryukov
b27fbee0f3
Docs: Update syntax for some multi-line comments per the documentation standards.
...
Follow-up to [51003], [51149].
See #52628 .
Built from https://develop.svn.wordpress.org/trunk@51168
git-svn-id: http://core.svn.wordpress.org/trunk@50777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-16 09:42:56 +00:00
Sergey Biryukov
408db6120e
Docs: Document the `VALID_ORIGINS` constant in `WP_Theme_JSON`.
...
Follow-up to [51149].
See #52628 .
Built from https://develop.svn.wordpress.org/trunk@51152
git-svn-id: http://core.svn.wordpress.org/trunk@50761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-15 11:25:08 +00:00
youknowriad
c114304471
Block Editor: Update the WordPress packages with the fixes for 5.8 beta 2.
...
This includes:
**Various**
- Fix multi selection for nested blocks https://github.com/WordPress/gutenberg/pull/32536
- Consistently show the drop indicator while dragging blocks https://github.com/WordPress/gutenberg/pull/31896
- Fix horizontal drop indicator https://github.com/WordPress/gutenberg/pull/32589
- Fix Safari flickering issue https://github.com/WordPress/gutenberg/pull/32581
- Silence useSelect zombie bug errors https://github.com/WordPress/gutenberg/pull/32088
**Template Editor**
- Clarify the template creation modal https://github.com/WordPress/gutenberg/pull/32427
- Only add skip links for block templates https://github.com/WordPress/gutenberg/pull/32451
**Widgets Editor**
- Add block breadcrumb https://github.com/WordPress/gutenberg/pull/32498 https://github.com/WordPress/gutenberg/pull/32528 https://github.com/WordPress/gutenberg/pull/32569
- Saved deleted and restored widgets. https://github.com/WordPress/gutenberg/pull/32534
- Fix unsaved changes detection https://github.com/WordPress/gutenberg/pull/32573
- Fix button spacing in the header https://github.com/WordPress/gutenberg/pull/32585
- Avoid extra undo levels https://github.com/WordPress/gutenberg/pull/32572
- Move Legacy Widget block to the `@wordpress/widgets` package https://github.com/WordPress/gutenberg/pull/32501
- Fix Social Links color inheritance https://github.com/WordPress/gutenberg/pull/32625
- Use Button appender https://github.com/WordPress/gutenberg/pull/32580
**Global Styles (theme.json)**
- Separate the presets per origin in the block editor settings https://github.com/WordPress/gutenberg/pull/32358 https://github.com/WordPress/gutenberg/pull/32622
- Use CSS Custom Properties for the preset styles https://github.com/WordPress/gutenberg/pull/32627
**Performance**
- Remove is-typing classname to improve typing performance https://github.com/WordPress/gutenberg/pull/32567
Props nosolosw, jorgefilipecosta, aristath, ntsekouras, peterwilsoncc, mcsf.
See #53397 .
Built from https://develop.svn.wordpress.org/trunk@51149
git-svn-id: http://core.svn.wordpress.org/trunk@50758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-15 08:52:30 +00:00
youknowriad
1516d05128
Block Editor: Package updates for 5.8 beta 1.
...
This includes the following fixes:
Widgets Editor:
- Load widgets.php https://github.com/WordPress/gutenberg/pull/32299
- Fix Legacy Widget Preview https://github.com/WordPress/gutenberg/pull/32300
- Fix error when saving empty Legacy Widget block https://github.com/WordPress/gutenberg/pull/32359
Widget blocks in the customizer:
- Fix deselection blocks when the inspector is open https://github.com/WordPress/gutenberg/pull/32361
- Display wide widgets as popovers https://github.com/WordPress/gutenberg/pull/31736
Global Styles:
- Align classNames generation between client and server https://github.com/WordPress/gutenberg/pull/32352
- Group typography block supports https://github.com/WordPress/gutenberg/pull/32252 https://github.com/WordPress/gutenberg/pull/32444 https://github.com/WordPress/gutenberg/pull/32459
- Make theme.json syntax errors more visible to the users https://github.com/WordPress/gutenberg/pull/32404
Template Editor:
- Update the appearance of the template details https://github.com/WordPress/gutenberg/pull/32042
- Fix layout definition https://github.com/WordPress/gutenberg/pull/32425
- Fix grouping post content block https://github.com/WordPress/gutenberg/pull/32453
Miscellaneous:
- Prevent saving when the post is locked https://github.com/WordPress/gutenberg/pull/32341
- Fix allowed block patterns selector https://github.com/WordPress/gutenberg/pull/32376
- Fix wrong results in the Post Author picker https://github.com/WordPress/gutenberg/pull/32344
- Fix notices position in top toolbar mode https://github.com/WordPress/gutenberg/pull/32238
- Allow non-latin characters in post slugs https://github.com/WordPress/gutenberg/pull/32232
- Fix Random collapse of the color settings panel https://github.com/WordPress/gutenberg/pull/32388
- Fix theme logo theme mode not being removed on theme removal https://github.com/WordPress/gutenberg/pull/32370
- Fix block alignment styles in the editor https://github.com/WordPress/gutenberg/pull/32454
- Fix some block toolbar overlaps https://github.com/WordPress/gutenberg/pull/32424
- Fix content loss when switching list types https://github.com/WordPress/gutenberg/pull/32432
Performance:
- Improve the performance of buttons block https://github.com/WordPress/gutenberg/pull/32356
- Improve the performance of the container blocks https://github.com/WordPress/gutenberg/pull/32380
Props noisysocks, nosolosw, jorgefilipecosta.
See #52991 .
Built from https://develop.svn.wordpress.org/trunk@51089
git-svn-id: http://core.svn.wordpress.org/trunk@50698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-08 08:09:53 +00:00
youknowriad
e335b68afc
Block Editor: Update packages and backport the latest Gutenberg fixes.
...
This includes the following fixes:
- Generate babel polyfill dynamically https://github.com/WordPress/gutenberg/pull/31279
- Improve the List View component https://github.com/WordPress/gutenberg/pull/31290 https://github.com/WordPress/gutenberg/pull/32063
- Template mode:
- Fix embed dimensions https://github.com/WordPress/gutenberg/pull/32057
- Update the welcome guide https://github.com/WordPress/gutenberg/pull/32055 https://github.com/WordPress/gutenberg/pull/32026
- Don’t display the notice at the same time as the welcome guide https://github.com/WordPress/gutenberg/pull/32076
- Remove MetaBoxes https://github.com/WordPress/gutenberg/pull/32315
- Update the title area https://github.com/WordPress/gutenberg/pull/32037
- Widgets Screen:
- Fix unsaved changes https://github.com/WordPress/gutenberg/pull/31757
- Fix toolbar alignment https://github.com/WordPress/gutenberg/pull/31991
- Fix block toolbar position after scroll https://github.com/WordPress/gutenberg/pull/32212
- Fix the visible widget area header https://github.com/WordPress/gutenberg/pull/32262
- Fix legacy widgets preview https://github.com/WordPress/gutenberg/pull/32260
-
- Block Widgets in the customizer:
- Fix customizer title overlapping block toolbar https://github.com/WordPress/gutenberg/pull/32140
- Fix styling issues https://github.com/WordPress/gutenberg/pull/32072
- Fix escape key events https://github.com/WordPress/gutenberg/pull/32175
- Add preferences menu group label https://github.com/WordPress/gutenberg/pull/32259
- Fix creating and replacing legacy widgets https://github.com/WordPress/gutenberg/pull/32005
- Fix the welcome guide’s image https://github.com/WordPress/gutenberg/pull/32264 https://github.com/WordPress/gutenberg/pull/32302
- Fix Cover to Image transform duotone error https://github.com/WordPress/gutenberg/pull/32006
- Remove filter_var usage from blocks https://github.com/WordPress/gutenberg/pull/32046
- Fix image width for aligned Post Featured Image block https://github.com/WordPress/gutenberg/pull/32070
- Prevent excessive Image block re-rendering https://github.com/WordPress/gutenberg/pull/32102
- Remove gutenberg domain from core blocks https://github.com/WordPress/gutenberg/pull/32152
- Use the block editor context class for the the different settings filters https://github.com/WordPress/gutenberg/pull/32159
- Fix Latest Posts block grid view https://github.com/WordPress/gutenberg/pull/32160
- Fix preset classes generation per block https://github.com/WordPress/gutenberg/pull/32190
- Fix logic to enable custom colors and gradients https://github.com/WordPress/gutenberg/pull/32200
- Update the Site Logo logic to use a dedicated site option https://github.com/WordPress/gutenberg/pull/32229
- Limit the Latest Posts block’s featured image width https://github.com/WordPress/gutenberg/pull/32245
- Remove opacity animation in the canvas. https://github.com/WordPress/gutenberg/pull/32266
- Make the focus style valid CSS https://github.com/WordPress/gutenberg/pull/32305
- Fix theme.json styles for the core/list block https://github.com/WordPress/gutenberg/pull/32343
- Fix PHP notice when calling render_block https://github.com/WordPress/gutenberg/pull/32135
Props nosolosw, noisysocks.
See #52991 .
Built from https://develop.svn.wordpress.org/trunk@51051
git-svn-id: http://core.svn.wordpress.org/trunk@50660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-01 08:10:04 +00:00
desrosj
836b5ad7c7
Coding Standards: Apply some minor coding standards adjustments.
...
Follow up to [50977], [50987], and [50995].
See #41683 , #53156 , #53175 .
Built from https://develop.svn.wordpress.org/trunk@51007
git-svn-id: http://core.svn.wordpress.org/trunk@50616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-25 17:43:57 +00:00
jorgefilipecosta
9b67649f40
Block Editor: Update color merging algorithm.
...
The npm packages in use were published a few hours ago, which include some changes to how we manage colors. This commit adds the corresponding PHP changes.
Props nosolosw.
See #53175 .
Built from https://develop.svn.wordpress.org/trunk@50977
git-svn-id: http://core.svn.wordpress.org/trunk@50586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-24 18:57:55 +00:00
jorgefilipecosta
18200cc30c
Block Editor: Add Global Styles support using theme.json file.
...
This is the second piece of landing the theme.json processing in WordPress core.
It includes the mechanism that outputs the CSS styles of a theme.json file.
Props nosolosw, youknowriad.
See #53175 .
Built from https://develop.svn.wordpress.org/trunk@50973
git-svn-id: http://core.svn.wordpress.org/trunk@50582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-24 17:39:57 +00:00
Sergey Biryukov
19ea4bd412
Docs: Some documentation and test improvements for `WP_Theme_JSON` and `WP_Theme_JSON_Resolver` classes:
...
* Add missing `@since` tags.
* Update some DocBlocks per the documentation standards.
* Rename test files and classes per the naming conventions.
* Fix some code alignment issues reported by WPCS.
Follow-up to [50959], [50960].
See #52991 , #53175 .
Built from https://develop.svn.wordpress.org/trunk@50967
git-svn-id: http://core.svn.wordpress.org/trunk@50576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-24 13:25:56 +00:00
youknowriad
4e1dc7a28c
Block Editor: Add Global Settings support using theme.json file.
...
This is the first piece of landing the theme.json processing in WordPress core.
It allows themes to configure the different editor settings, allow cusomizations and define presets in theme.json file.
Props jorgefilipecosta, nosolosw.
See #53175 .
Built from https://develop.svn.wordpress.org/trunk@50959
git-svn-id: http://core.svn.wordpress.org/trunk@50568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-24 08:37:55 +00:00