barebones/functions.php

32 lines
1.0 KiB
PHP
Raw Normal View History

2012-05-29 23:42:46 +02:00
<?php
add_theme_support( 'post-thumbnails' );
2012-12-20 22:18:50 +01:00
add_theme_support( 'post-formats', array( 'post' ) );
2012-12-20 22:06:54 +01:00
add_theme_support( 'custom-header' );
2012-12-20 22:18:50 +01:00
add_theme_support( 'custom-background' );
2012-08-24 11:44:15 +02:00
add_post_type_support( 'page', 'excerpt' );
2012-05-29 23:42:46 +02:00
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 );
2013-08-06 10:24:03 +02:00
function theme_scripts() {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', ( 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' ), false, '1.7.1', true);
wp_enqueue_script( 'jquery' );
}
add_action( 'wp_enqueue_scripts', 'theme_scripts' );
2013-01-01 20:09:48 +01:00
function remove_comments_rss( $for_comments ) {
return;
}
add_filter( 'post_comments_feed_link', 'remove_comments_rss' );
2012-05-29 23:42:46 +02:00
if ( function_exists( 'register_sidebar' ) )
2013-08-06 10:24:03 +02:00
register_sidebar();