-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site editor: remove "default" admin CSS (#66431)
- Loading branch information
1 parent
38c3df6
commit 06e345e
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,3 @@ | ||
https://github.com/WordPress/wordpress-develop/pull/7642 | ||
|
||
* https://github.com/WordPress/gutenberg/pull/66431 |
This file contains 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,11 @@ | ||
<?php | ||
|
||
function gutenberg_remove_default_css( $hook ) { | ||
// Maybe also remove on post.php when Gutenberg is enabled for posts. | ||
if ( 'site-editor.php' !== $hook ) { | ||
return; | ||
} | ||
wp_dequeue_style( 'colors' ); | ||
} | ||
|
||
add_action( 'admin_enqueue_scripts', 'gutenberg_remove_default_css' ); |
This file contains 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