Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Small stuff
Browse files Browse the repository at this point in the history
functions: remove unnecessary variable
reg-sidebars: need widgets page
  • Loading branch information
szk11001 committed Aug 11, 2014
1 parent 06f3bd2 commit ab30e19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

Expand Down
2 changes: 1 addition & 1 deletion inc/reg-sidebars.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

Expand Down

0 comments on commit ab30e19

Please sign in to comment.