From 0a2831315d14ca5f2eace9f272539555b5b38fc5 Mon Sep 17 00:00:00 2001 From: Mike Francis Date: Mon, 10 Mar 2014 10:49:44 +0000 Subject: [PATCH] Update functions.php --- functions.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/functions.php b/functions.php index 0f08fed..cd61f9d 100644 --- a/functions.php +++ b/functions.php @@ -1,7 +1,6 @@ -----------------------------------------*/ +// Remove junk + +add_filter('show_admin_bar', '__return_false'); remove_action( 'wp_head', 'rsd_link' ); remove_action( 'wp_head', 'wlwmanifest_link' ); @@ -26,8 +26,7 @@ function remove_comments_rss( $for_comments ) { add_filter( 'post_comments_feed_link', 'remove_comments_rss' ); -/*=jQuery the right way -----------------------------------------*/ +// jQuery the right way function theme_scripts() { wp_deregister_script( 'jquery' ); @@ -38,8 +37,7 @@ function theme_scripts() { add_action( 'wp_enqueue_scripts', 'theme_scripts' ); -/*=Nav menus -----------------------------------------*/ +// Nav menus if ( function_exists( 'register_nav_menus' ) ) register_nav_menus(array( @@ -55,4 +53,4 @@ function my_wp_nav_menu_args( $args = '' ) { return $args; } -add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' ); \ No newline at end of file +add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );