Skip to content

Commit

Permalink
check against global
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinat Khaziev committed Jan 13, 2012
1 parent 475678f commit 41a1171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ad-code-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ function admin_view_controller() {
*
*/
function register_scripts_and_styles() {
if ( isset( $_GET['page'] ) && $_GET['page'] == $this->plugin_slug ) {
global $pagenow;
if ( 'admin.php' == $pagenow && isset( $_GET['page'] ) && $_GET['page'] == $this->plugin_slug ) {
wp_enqueue_style( 'acm-jquery-ui-theme', AD_CODE_MANAGER_URL . '/common/css/jquery-ui-1.8.17.custom.css');
wp_enqueue_style( 'acm-jqgrid', AD_CODE_MANAGER_URL . '/common/css/ui.jqgrid.css');
wp_enqueue_script( 'acm-jqgrid-locale-en', AD_CODE_MANAGER_URL . '/common/js/grid.locale-en.js', array('jquery', 'jquery-ui-core' ) );
Expand Down

0 comments on commit 41a1171

Please sign in to comment.