second commit

This commit is contained in:
Mike Francis 2012-05-29 22:42:46 +01:00
parent 43283ef011
commit 9cc24f7f1f
7 changed files with 117 additions and 0 deletions

32
functions.php Normal file
View file

@ -0,0 +1,32 @@
<?php
/* =Add support for missing cool stuff
-------------------------------------------------------------- */
add_theme_support( 'post-thumbnails' );
add_theme_support( 'automatic-feed-links' );
/* =Remove gunk from <head>
-------------------------------------------------------------- */
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link' );
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'start_post_rel_link' );
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' );
/* =Register a sidebar for the lolz
-------------------------------------------------------------- */
if ( function_exists( 'register_sidebar' ) )
register_sidebar();
?>