-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Icons: Override WP_Icons_Registry singleton with Gutenberg icons registry #76455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a44fafe
Icons: Override WP_Icons_Registry singleton with Gutenberg icons regi…
t-hamano b610839
Remove Gutenberg_REST_Icons_Controller_7_1
t-hamano 55892ed
Remove require statement
t-hamano 78ec29f
Remove temp code
t-hamano d0daaf6
Update comment
t-hamano 491c9fb
Replay pre-registered non-core icons
t-hamano 493d230
Merge branch 'trunk' into icons/refrection-class
t-hamano 7d47012
Create registry and REST API controller for Gutenberg
t-hamano 196e4b3
WP_REST_Icons_Controller_Gutenberg: Remove unnecessary ABSPATH check
t-hamano b3d1dae
Merge branch 'trunk' into icons/refrection-class
t-hamano c56e31c
Fix misplaced files
t-hamano 6160049
Merge branch 'trunk' into icons/refrection-class
t-hamano a75a322
Merge branch 'trunk' into icons/refrection-class
t-hamano 7309547
Merge branch 'trunk' into icons/refrection-class
t-hamano b30292f
Restore code that was accidentally deleted
t-hamano bdd9972
Merge branch 'trunk' into icons/refrection-class
t-hamano 8d80eae
Merge branch 'trunk' into icons/refrection-class
t-hamano 55b6070
Update unit test
t-hamano 14fe750
Fix PHPCS warning
t-hamano a3027c6
Fix PHPCS warning take 2
t-hamano fdd080f
Merge branch 'trunk' into icons/refrection-class
t-hamano 60bafaa
Add PHP version check
t-hamano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?php | ||
| /** | ||
| * REST API: Bundle WP_Icons_Registry_Gutenberg class instead of inheriting per WordPress version class | ||
| * | ||
| * Changes to this class should be synced to the corresponding class | ||
| * in WordPress core: src/wp-includes/rest-api/endpoints/class-wp-rest-icons-controller.php. | ||
| * | ||
| * @package gutenberg | ||
| * @subpackage REST_API | ||
| */ | ||
|
|
||
| /** | ||
| * Gutenberg Icons REST API Controller. | ||
| * | ||
| * @since 7.1.0 | ||
| */ | ||
| class WP_REST_Icons_Controller_Gutenberg extends WP_REST_Icons_Controller { | ||
| } | ||
|
Comment on lines
+17
to
+18
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently, there is no need to expand the core controller, but it may be necessary in the future. |
||
82 changes: 0 additions & 82 deletions
82
lib/compat/wordpress-7.1/class-gutenberg-rest-icons-controller-7-1.php
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here: different class, same deprecation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in commit 60bafaa