Make WordPress Core

Ticket #56990: 56990.3.diff

File 56990.3.diff, 2.5 KB (added by adamsilverstein, 16 months ago)
  • src/wp-content/themes/twentyten/blocks.css

    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 { 
    253253.has-white-background-color:visited {
    254254        background-color: #fff;
    255255}
     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}
  • src/wp-includes/default-filters.php

    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' ); 
    557557
    558558add_action( 'wp_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 );
    559559add_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' );
    560 add_action( 'wp_enqueue_scripts', 'wp_enqueue_classic_theme_styles' );
    561560add_action( 'admin_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 );
    562561add_action( 'admin_enqueue_scripts', 'wp_common_block_scripts_and_styles' );
    563562add_action( 'enqueue_block_assets', 'wp_enqueue_registered_block_scripts_and_styles' );
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index 27defd0659..29bf3fecd9 100644
    function _wp_theme_json_webfonts_handler() { 
    36573657        add_action( 'admin_init', $fn_generate_and_enqueue_editor_styles );
    36583658}
    36593659
    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 
    36753660/**
    36763661 * Loads classic theme styles on classic themes in the editor.
    36773662 *