Make WordPress Core


Ignore:
Timestamp:
04/25/2022 04:35:16 PM (3 years ago)
Author:
gziolo
Message:

Editor: Fix styles for nested elements (link color)

This fixes an issue by which link color behaves differently in the editor and front end.

Related Gutenberg PR: https://github.com/WordPress/gutenberg/pull/37728.

Props oandregal.
See #55567.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/block-supports/elements.php

    r53128 r53260  
    1212     */
    1313    private static function make_unique_id_one( $string ) {
    14         return preg_replace( '/wp-elements-\d+/', 'wp-elements-1', $string );
     14        return preg_replace( '/wp-elements-[a-zA-Z0-9]+/', 'wp-elements-1', $string );
    1515    }
    1616
Note: See TracChangeset for help on using the changeset viewer.