mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Editor: add background image support.
Adds a new background block support with the ability to set a background image on blocks that opt into it. Props andrewserong, mukesh27. Fixes #59357. git-svn-id: https://develop.svn.wordpress.org/trunk@56614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -342,13 +342,16 @@ class WP_Theme_JSON {
|
||||
* @since 6.2.0 Added `dimensions.minHeight`, 'shadow.presets', 'shadow.defaultPresets',
|
||||
* `position.fixed` and `position.sticky`.
|
||||
* @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`.
|
||||
* @since 6.4.0 Added `layout.allowEditing` and `typography.writingMode`.
|
||||
*
|
||||
* @since 6.4.0 Added support for `layout.allowEditing`, `background.backgroundImage`,
|
||||
* and `typography.writingMode`.
|
||||
* @var array
|
||||
*/
|
||||
const VALID_SETTINGS = array(
|
||||
'appearanceTools' => null,
|
||||
'useRootPaddingAwareAlignments' => null,
|
||||
'background' => array(
|
||||
'backgroundImage' => null,
|
||||
),
|
||||
'border' => array(
|
||||
'color' => null,
|
||||
'radius' => null,
|
||||
@@ -563,9 +566,11 @@ class WP_Theme_JSON {
|
||||
*
|
||||
* @since 6.0.0
|
||||
* @since 6.2.0 Added `dimensions.minHeight` and `position.sticky`.
|
||||
* @since 6.4.0 Added `background.backgroundImage`.
|
||||
* @var array
|
||||
*/
|
||||
const APPEARANCE_TOOLS_OPT_INS = array(
|
||||
array( 'background', 'backgroundImage' ),
|
||||
array( 'border', 'color' ),
|
||||
array( 'border', 'radius' ),
|
||||
array( 'border', 'style' ),
|
||||
|
||||
Reference in New Issue
Block a user