[wp-trac] [WordPress Trac] #11704: conditional tag for admin panel
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 3 16:03:27 UTC 2010
#11704: conditional tag for admin panel
-----------------------------+----------------------------------------------
Reporter: F J Kaiser | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version: 2.8.5
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11704>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list