Make WordPress Core

Changeset 51547


Ignore:
Timestamp:
08/05/2021 12:43:51 AM (3 years ago)
Author:
peterwilsoncc
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.
Merges [51538] to the 5.8 branch.
Fixes #53697.

Location:
branches/5.8
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/class-wp-theme-json.php

    r51445 r51547  
    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,
  • branches/5.8/src/wp-includes/theme.json

    r51445 r51547  
    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.