Opened 19 months ago
Closed 19 months ago
#58846 closed defect (bug) (fixed)
Global styles revisions: update private methods to protected
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | REST API | Keywords: | has-patch fixed-major commit dev-reviewed |
Focuses: | Cc: |
Description
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.
Change History (8)
This ticket was mentioned in PR #4867 on WordPress/wordpress-develop by @ramonopoly.
19 months ago
#1
#2
@
19 months ago
- Owner set to audrasjb
- Resolution set to fixed
- Status changed from new to closed
In 56268:
@audrasjb commented on PR #4867:
19 months ago
#3
committed in https://core.trac.wordpress.org/changeset/56268
#4
@
19 months ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 6.3 backport, pending a second committer sign-off.
#5
@
19 months ago
Reopening for 6.3 backport, pending a second committer sign-off.
Thank you @audrasjb !
Updates the private vars and methods in the Global styles revisions rest API controller to be protected.
Why? So class entities that inherit from the base can use them, and we can iterate on 6.3 features without having to copy over private methods to new classes all the time.
Gutenberg PR: https://github.com/WordPress/gutenberg/pull/52748
Trac ticket: https://core.trac.wordpress.org/ticket/58846