diff --git src/wp-content/themes/twentyten/blocks.css src/wp-content/themes/twentyten/blocks.css
index 3f9995347b..9878f77f35 100644
|
|
|
p.has-drop-cap:not(:focus)::first-letter { |
| 253 | 253 | .has-white-background-color:visited { |
| 254 | 254 | background-color: #fff; |
| 255 | 255 | } |
| | 256 | |
| | 257 | .wp-block-button__link { |
| | 258 | color: #ffffff; |
| | 259 | background-color: #32373c; |
| | 260 | border-radius: 9999px; /* 100% causes an oval, but any explicit but really high value retains the pill shape. */ |
| | 261 | |
| | 262 | /* This needs a low specificity so it won't override the rules from the button element if defined in theme.json. */ |
| | 263 | box-shadow: none; |
| | 264 | text-decoration: none; |
| | 265 | |
| | 266 | /* The extra 2px are added to size solids the same as the outline versions.*/ |
| | 267 | padding: calc(0.667em + 2px) calc(1.333em + 2px); |
| | 268 | |
| | 269 | font-size: 1.125em; |
| | 270 | } |
diff --git src/wp-includes/default-filters.php src/wp-includes/default-filters.php
index e9ca31f5f7..93a25bf8e1 100644
|
|
|
add_action( 'wp_default_scripts', 'wp_default_packages' ); |
| 557 | 557 | |
| 558 | 558 | add_action( 'wp_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 ); |
| 559 | 559 | add_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' ); |
| 560 | | add_action( 'wp_enqueue_scripts', 'wp_enqueue_classic_theme_styles' ); |
| 561 | 560 | add_action( 'admin_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 ); |
| 562 | 561 | add_action( 'admin_enqueue_scripts', 'wp_common_block_scripts_and_styles' ); |
| 563 | 562 | add_action( 'enqueue_block_assets', 'wp_enqueue_registered_block_scripts_and_styles' ); |
diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
index 27defd0659..29bf3fecd9 100644
|
|
|
function _wp_theme_json_webfonts_handler() { |
| 3657 | 3657 | add_action( 'admin_init', $fn_generate_and_enqueue_editor_styles ); |
| 3658 | 3658 | } |
| 3659 | 3659 | |
| 3660 | | /** |
| 3661 | | * Loads classic theme styles on classic themes in the frontend. |
| 3662 | | * |
| 3663 | | * This is needed for backwards compatibility for button blocks specifically. |
| 3664 | | * |
| 3665 | | * @since 6.1.0 |
| 3666 | | */ |
| 3667 | | function wp_enqueue_classic_theme_styles() { |
| 3668 | | if ( ! WP_Theme_JSON_Resolver::theme_has_support() ) { |
| 3669 | | $suffix = wp_scripts_get_suffix(); |
| 3670 | | wp_register_style( 'classic-theme-styles', '/' . WPINC . "/css/classic-themes$suffix.css", array(), true ); |
| 3671 | | wp_enqueue_style( 'classic-theme-styles' ); |
| 3672 | | } |
| 3673 | | } |
| 3674 | | |
| 3675 | 3660 | /** |
| 3676 | 3661 | * Loads classic theme styles on classic themes in the editor. |
| 3677 | 3662 | * |