Skip to content

Commit

Permalink
Deregister wp-block-library-theme inline styles
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Nov 8, 2023
1 parent 4211136 commit 8fe82d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion headache.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Description: An easy-to-swallow painkiller plugin for WordPress.
* Author: Vincent Klaiber
* Author URI: https://github.com/vinkla
* Version: 3.2.0
* Version: 3.2.1
* Plugin URI: https://github.com/vinkla/headache
* GitHub Plugin URI: vinkla/headache
*/
Expand Down Expand Up @@ -146,6 +146,7 @@ function login_title(): string
function remove_block_styles(): void
{
wp_deregister_style('wp-block-library');
wp_deregister_style('wp-block-library-theme');
}

add_action('wp_enqueue_scripts', __NAMESPACE__ . '\\remove_block_styles');
Expand Down

0 comments on commit 8fe82d0

Please sign in to comment.