[wp-trac] [WordPress Trac] #58846: Global styles revisions: update private methods to protected

WordPress Trac noreply at wordpress.org
Wed Jul 19 06:00:01 UTC 2023


#58846: Global styles revisions: update private methods to protected
--------------------------+-----------------------
 Reporter:  ramonopoly    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.3
Component:  REST API      |    Version:
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------
 The private vars and methods in the Global styles revisions rest API
 controller should be changed to be `protected`.

 Why? So class entities that inherit from the base can use them, and
 Gutenberg can iterate on 6.3 features without having to copy over private
 methods to new classes all the time.

 It would be nice to have this in 6.3 as it would create a seamless
 compatibility with Gutenberg.

 If judged not to be eligible, then we could probably work around it in
 Gutenberg until the next release.

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


More information about the wp-trac mailing list