Skip to content

Conversation

@goldenapples
Copy link
Contributor

Quick fix for #337.

Because get_current_screen() breaks if not in admin. Also, since shortcodes are tied to post types, it doesn't currently make sense to load shortcode UI on the frontend, such as comments area.

get_current_screen breaks if not in admin. Also, since shortcodes are
tied to post types, it doesn't currently make sense to load shortcode UI
on the frontend, such as comments area.
@danielbachhuber
Copy link
Contributor

Only enqueue scripts in the admin area

What if we just bail early on loading the entire plugin?

@danielbachhuber danielbachhuber added this to the v0.4.0 milestone May 28, 2015
@danielbachhuber
Copy link
Contributor

Continuing with #355

@danielbachhuber danielbachhuber deleted the 337-diable-outside-of-admin branch June 8, 2015 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants