Riad Benguella
f7d2a2ee9d
Themes: Auto-enable block-templates support for all block themes.
...
Block themes without theme.json file used to have block-templates support disabled.
This commit brings this in sync with the behavior in the gutenberg plugin.
See #54335 .
git-svn-id: https://develop.svn.wordpress.org/trunk@52347 602fd350-edb4-49c9-b593-d223f7449a82
2021-12-09 09:54:13 +00:00
Jb Audras
77059b1723
Docs: Add missing @param to wp_set_unique_slug_on_create_template_part().
...
Follow-up to [52062].
See #53399 .
git-svn-id: https://develop.svn.wordpress.org/trunk@52303 602fd350-edb4-49c9-b593-d223f7449a82
2021-12-01 23:59:55 +00:00
Robert Anderson
5349ecdc99
Themes: Move the skip link to outside the canvas in block themes
...
Fix Twenty Twenty-one having an erroneous margin above the Header template part
by moving the skip link outside of the wp-site-blocks canvas.
This is a backport of https://github.com/WordPress/gutenberg/pull/34986 .
Props youknowriad.
Fixes #54491 .
git-svn-id: https://develop.svn.wordpress.org/trunk@52243 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-25 01:05:30 +00:00
Robert Anderson
39e33bed83
Editor: Add block theme infrastructure
...
Adds the required infrastructure to render block-based themes. This is sourced
from the Gutenberg plugin.
Fixes #54335 .
Props bernhard-reiter, youknowriad, ntsekouras, hellofromtonya.
git-svn-id: https://develop.svn.wordpress.org/trunk@52062 602fd350-edb4-49c9-b593-d223f7449a82
2021-11-08 23:09:53 +00:00
Jorge Costa
b668efd6ff
Block Editor: Package updates for Beta 3.
...
The commit updates the WordPress packages for beta 3.
Props nosolosw, noisysocks, youknowriad.
See #53397 .
git-svn-id: https://develop.svn.wordpress.org/trunk@51199 602fd350-edb4-49c9-b593-d223f7449a82
2021-06-22 09:58:32 +00:00
Sergey Biryukov
fdc2244647
Docs: Update syntax for some multi-line comments per the documentation standards.
...
Follow-up to [51003], [51149].
See #52628 .
git-svn-id: https://develop.svn.wordpress.org/trunk@51168 602fd350-edb4-49c9-b593-d223f7449a82
2021-06-16 09:41:44 +00:00
Sergey Biryukov
f31de914f1
Docs: Document the usage of $_wp_current_template_content global in a few block template functions.
...
Follow-up to [51003], [51149].
See #52628 .
git-svn-id: https://develop.svn.wordpress.org/trunk@51150 602fd350-edb4-49c9-b593-d223f7449a82
2021-06-15 10:20:54 +00:00
Riad Benguella
0068f2646c
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@51149 602fd350-edb4-49c9-b593-d223f7449a82
2021-06-15 08:50:26 +00:00
Aaron Jorbin
d9a79d339d
Block Editor: Prevent duplicate queries
...
When passing args to `WP_Query::__construct` method (in this case, but creating a `new WP_Query`, this one internally executes the `WP_Query::get_posts` method and stores the result in the `WP_Query::posts` property. When calling the `WP_Query::get_posts` again, the same SQL query gets executed, and the result is again stored in the `WP_Query::posts` property.
This was introduced in [51003].
Props david.binda, jorbin.
Fixes #53280 . See #53176 .
git-svn-id: https://develop.svn.wordpress.org/trunk@51144 602fd350-edb4-49c9-b593-d223f7449a82
2021-06-14 20:38:38 +00:00
Riad Benguella
ea49625d59
Block Editor: Introduce block templates for classic themes.
...
With this patch, users will be able to create custom block based templates
and assign them to specific pages/posts.
Themes can also opt-out of this feature
Props bernhard-reiter, carlomanf.
Fixes #53176 .
git-svn-id: https://develop.svn.wordpress.org/trunk@51003 602fd350-edb4-49c9-b593-d223f7449a82
2021-05-25 14:19:14 +00:00