Make WordPress Core


Ignore:
Timestamp:
06/21/2023 05:30:24 AM (3 years ago)
Author:
isabel_brison
Message:

Editor: update layout classnames and specificity.

Adds a compound layout classname and reduces layout spacing rule specificity.

Props ramonopoly, andrewserong, poena.
Fixes #58548.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/media.php

    r55850 r55956  
    38283828         *
    38293829         * @ticket 56930
     3830         * @ticket 58548
    38303831         *
    38313832         * @covers ::wp_filter_content_tags
     
    38643865
    38653866                $html = get_the_block_template_html();
    3866                 $this->assertSame( '<div class="wp-site-blocks"><div class="entry-content wp-block-post-content is-layout-flow">' . $expected_content . '</div></div>', $html );
     3867                $this->assertSame( '<div class="wp-site-blocks"><div class="entry-content wp-block-post-content is-layout-flow wp-block-post-content-is-layout-flow">' . $expected_content . '</div></div>', $html );
    38673868        }
    38683869
     
    38723873         *
    38733874         * @ticket 56930
     3875         * @ticket 58548
    38743876         *
    38753877         * @covers ::wp_filter_content_tags
     
    39193921
    39203922                $html = get_the_block_template_html();
    3921                 $this->assertSame( '<div class="wp-site-blocks">' . $expected_featured_image . ' <div class="entry-content wp-block-post-content is-layout-flow">' . $expected_content . '</div></div>', $html );
     3923                $this->assertSame( '<div class="wp-site-blocks">' . $expected_featured_image . ' <div class="entry-content wp-block-post-content is-layout-flow wp-block-post-content-is-layout-flow">' . $expected_content . '</div></div>', $html );
    39223924        }
    39233925
Note: See TracChangeset for help on using the changeset viewer.