Skip to content
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

Plugin back-end styles are also loaded in the front-end #33

Closed
p7996619 opened this issue Jul 15, 2018 · 0 comments
Closed

Plugin back-end styles are also loaded in the front-end #33

p7996619 opened this issue Jul 15, 2018 · 0 comments

Comments

@p7996619
Copy link
Contributor

p7996619 commented Jul 15, 2018

I think the plugin's CSS should not be enqueued for the front-end. Please see:

add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueueStyles' ) );
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueueStyles') );

Correct me if I'm wrong, otherwise I'll submit a PR to remove this. Thanks.

p7996619 pushed a commit to p7996619/wp-pgp-encrypted-emails that referenced this issue Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant