From ab30e19afd4e351c71f6b8868e42f3d6896cf4e2 Mon Sep 17 00:00:00 2001 From: Salman Date: Mon, 11 Aug 2014 09:49:43 -0400 Subject: [PATCH] Small stuff functions: remove unnecessary variable reg-sidebars: need widgets page --- functions.php | 4 +++- inc/reg-sidebars.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 3a233eb..c8930c7 100644 --- a/functions.php +++ b/functions.php @@ -172,13 +172,15 @@ function be_hidden_meta_boxes($hidden, $screen) { } -function load_custom_wp_admin_style() { +function load_custom_wp_admin_style($page) { wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/css/admin-style.css', false, '1.0.0' ); wp_enqueue_style( 'custom_wp_admin_css' ); wp_register_script('uc-admin-js', get_template_directory_uri() . '/js/admin-style.js', false, '1.0.0'); wp_enqueue_script('uc-admin-js'); + + } add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' ); diff --git a/inc/reg-sidebars.php b/inc/reg-sidebars.php index 03cb911..8aad820 100644 --- a/inc/reg-sidebars.php +++ b/inc/reg-sidebars.php @@ -91,7 +91,7 @@ */ function uc_options_add_page() { add_theme_page( 'Manage Sidebars', 'Manage Sidebars', 'edit_theme_options', 'uc_sidebars', 'uc_sidebars_do_page' ); - remove_submenu_page( 'themes.php', 'widgets.php' ); + //remove_submenu_page( 'themes.php', 'widgets.php' ); } add_action( 'admin_menu', 'uc_options_add_page' );