[wp-trac] [WordPress Trac] #54296: Make sure the name does not contain spacing before creating the class

WordPress Trac noreply at wordpress.org
Sun Nov 28 13:51:37 UTC 2021


#54296: Make sure the name does not contain spacing before creating the class
---------------------------------------------+-----------------------
 Reporter:  amustaque97                      |       Owner:  audrasjb
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  5.9
Component:  Editor                           |     Version:
 Severity:  minor                            |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  css
---------------------------------------------+-----------------------
Changes (by audrasjb):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52261" 52261]:
 {{{
 #!CommitTicketReference repository="" revision="52261"
 Editor: Ensure block style name does not contain spaces before creating
 the class.

 This change adds a check to ensure there is no spaces in block style
 variation names before generating the class. Returns `false` and a
 `_doing_it_wrong()` message if a space is detected.

 Props amustaque97, costdev, hellofromtonya, pbiron, SergeyBiryukov,
 afragen.
 Fixes #54296.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54296#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list