[wp-trac] [WordPress Trac] #59296: Sync minor code quality tweaks to WP_REST_Global_Styles_Controller

WordPress Trac noreply at wordpress.org
Wed Sep 6 04:44:24 UTC 2023


#59296: Sync minor code quality tweaks to WP_REST_Global_Styles_Controller
-------------------------+---------------------------------------
 Reporter:  ramonopoly   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  6.4
Component:  Editor       |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch gutenberg-merge
  Focuses:               |
-------------------------+---------------------------------------
 For 6.4, sync a couple of minor code quality tweaks to the
 WP_REST_Global_Styles_Controller class.

 1. Remove unnecessary local variable in ::get_theme_items()
 2. Change ::validate_custom_css() access modifier from private to
 protected so that the method is inherited if the class is extended

 Gutenberg PRs:

 https://github.com/WordPress/gutenberg/pull/53618
 https://github.com/WordPress/gutenberg/pull/52819

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59296>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list