Skip to content

Commit

Permalink
Merge pull request #246 from WordPress/fix/233-style-loading
Browse files Browse the repository at this point in the history
Stop loading `wp-mediaelement` styles on the frontend
  • Loading branch information
adamwoodnz authored Oct 12, 2023
2 parents c94ff2e + 550cff8 commit fe0fb2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/wp-content/themes/wporg-showcase-2022/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function enqueue_assets() {
function maybe_dequeue_assets() {
if ( ! is_user_logged_in() ) {
wp_deregister_style( 'dashicons' );
wp_deregister_style( 'wp-mediaelement' );
}
}

Expand Down

0 comments on commit fe0fb2e

Please sign in to comment.