Make WordPress Core

Ticket #58598: 58598.diff

File 58598.diff, 938 bytes (added by poena, 10 months ago)

Updates theme support in wp-includes/class-wp-theme-json-resolver.php

  • src/wp-includes/class-wp-theme-json-resolver.php

     
    314314
    315315                        // Classic themes without a theme.json don't support global duotone.
    316316                        $theme_support_data['settings']['color']['defaultDuotone'] = false;
     317
     318                        // Allow themes to enable all border settings via theme_support.
     319                        if ( current_theme_supports( 'border' ) ) {
     320                                $theme_support_data['settings']['border']['color']  = true;
     321                                $theme_support_data['settings']['border']['radius'] = true;
     322                                $theme_support_data['settings']['border']['style']  = true;
     323                                $theme_support_data['settings']['border']['width']  = true;
     324                        }
    317325                }
    318326                $with_theme_supports = new WP_Theme_JSON( $theme_support_data );
    319327                $with_theme_supports->merge( static::$theme );