Make WordPress Core

Changeset 51538


Ignore:
Timestamp:
08/03/2021 06:13:46 PM (5 years ago)
Author:
jorgefilipecosta
Message:

Block Editor: Add missing border setting on button block.

This commit fixes a regression on WordPress 5.8 that made the border radius setting on the buttons block disappear.

Props Mamaduka, daisyo, priethor, desrosj, mikeschroder.
Fixes #53702.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r51443 r51538  
    180180         */
    181181        const ALLOWED_SETTINGS = array(
     182                'border'     => array(
     183                        'customRadius' => null,
     184                ),
    182185                'color'      => array(
    183186                        'custom'         => null,
     
    212215         */
    213216        const ALLOWED_STYLES = array(
     217                'border'     => array(
     218                        'radius' => null,
     219                ),
    214220                'color'      => array(
    215221                        'background' => null,
  • trunk/src/wp-includes/theme.json

    r51443 r51538  
    22        "version": 1,
    33        "settings": {
     4                "border": {
     5                        "customRadius": false
     6                },
    47                "color": {
    58                        "custom": true,
     
    210213                                }
    211214                        ]
     215                },
     216                "blocks": {
     217                        "core/button": {
     218                                "border": {
     219                                        "customRadius": true
     220                                }
     221                        }
    212222                }
    213223        }
Note: See TracChangeset for help on using the changeset viewer.