Make WordPress Core

Ticket #58499: 58499.2.diff

File 58499.2.diff, 1.6 KB (added by shwetabathani2312, 20 months ago)

@thakordarshil Need to update code on functions.php as well as it is working on backend but causing issue on frontend so.

  • src/wp-content/themes/twentytwenty/functions.php

    diff --git a/src/wp-content/themes/twentytwenty/functions.php b/src/wp-content/themes/twentytwenty/functions.php
    index b721b991e1..fbc420abf4 100644
    a b function twentytwenty_get_elements_array() { 
    749749                                'fill'             => array( '.fill-children-accent', '.fill-children-accent *' ),
    750750                        ),
    751751                        'background' => array(
    752                                 'color'            => array( ':root .has-background-color', 'button', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.wp-block-button', '.comment-reply-link', '.has-background.has-primary-background-color:not(.has-text-color)', '.has-background.has-primary-background-color *:not(.has-text-color)', '.has-background.has-accent-background-color:not(.has-text-color)', '.has-background.has-accent-background-color *:not(.has-text-color)' ),
     752                                'color'            => array( ':root .has-background-color', 'button', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.wp-block-button', '.comment-reply-link', '.has-background.has-primary-background-color:not(.has-text-color)', '.has-background.has-primary-background-color:not(.has-text-color) *', '.has-background.has-accent-background-color:not(.has-text-color)', '.has-background.has-accent-background-color:not(.has-text-color) *' ),
    753753                                'background-color' => array( ':root .has-background-background-color' ),
    754754                        ),
    755755                        'text'       => array(