Skip to content

Conversation

@danielbachhuber
Copy link
Contributor

get_current_screen() only exists in admin context. While Shortcode UI isn't full supported on the frontend, not fataling is the least we can do

Fixes #337

`get_current_screen()` only exists in admin context. While Shortcode UI isn't full supported on the frontend, not fataling is the least we can do
@danielbachhuber
Copy link
Contributor Author

@mattheu How do you feel about this?

@mattheu
Copy link
Contributor

mattheu commented Jun 8, 2015

Agreed that there isn't really a better way to handle this.

danielbachhuber pushed a commit that referenced this pull request Jun 8, 2015
Only call `get_current_screen()` when the function exists
@danielbachhuber danielbachhuber merged commit 4f9386a into master Jun 8, 2015
@danielbachhuber danielbachhuber deleted the 337-frontend-fatal branch June 8, 2015 19:00
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