conditional tag for admin panel
|Reported by:||F J Kaiser||Owned by:|
|Severity:||normal||Keywords:||admin, panel, conditional comment|
I´m using wp_enqueue_style and wp_enqueue_script in my theme. At the moment these functions are only supposed to be used by plugins and not themes (right?). Now my stylesheets and scripts are loading in the back end panel too. Due to the fact, that i got a private area for users on my page, i can´t use is_user_logged_in to force scirpts&styles to get only loaded on my page.
It would be pretty handy to have an is_admin_panel conditional tag to check if you are on the page or in the back end.