From 99aad04b4ab86f298e372d272b19b81bf6793fca Mon Sep 17 00:00:00 2001 From: Mike Francis Date: Fri, 11 Oct 2013 17:26:23 +0100 Subject: [PATCH] Update functions.php --- functions.php | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index 1431409..6dfcc87 100644 --- a/functions.php +++ b/functions.php @@ -1,11 +1,17 @@ +----------------------------------------*/ + remove_action( 'wp_head', 'rsd_link' ); remove_action( 'wp_head', 'wlwmanifest_link' ); remove_action( 'wp_head', 'wp_generator' ); @@ -14,6 +20,15 @@ remove_action( 'wp_head', 'index_rel_link' ); remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' ); remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); +function remove_comments_rss( $for_comments ) { + return; +} + +add_filter( 'post_comments_feed_link', 'remove_comments_rss' ); + +/*=jQuery the right way +----------------------------------------*/ + function theme_scripts() { wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', ( '//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' ), false, '1.7.1', true); @@ -23,10 +38,8 @@ function theme_scripts() { add_action( 'wp_enqueue_scripts', 'theme_scripts' ); -function remove_comments_rss( $for_comments ) { - return; -} -add_filter( 'post_comments_feed_link', 'remove_comments_rss' ); +/*=Register bog-standard sidebar +----------------------------------------*/ if ( function_exists( 'register_sidebar' ) ) register_sidebar();