jQuery (the right way)
This commit is contained in:
parent
eff0fcae54
commit
e0c8b89126
|
@ -14,10 +14,18 @@ remove_action( 'wp_head', 'index_rel_link' );
|
||||||
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );
|
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' );
|
||||||
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
|
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 );
|
||||||
|
|
||||||
|
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' );
|
||||||
|
|
||||||
function remove_comments_rss( $for_comments ) {
|
function remove_comments_rss( $for_comments ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
add_filter( 'post_comments_feed_link', 'remove_comments_rss' );
|
add_filter( 'post_comments_feed_link', 'remove_comments_rss' );
|
||||||
|
|
||||||
if ( function_exists( 'register_sidebar' ) )
|
if ( function_exists( 'register_sidebar' ) )
|
||||||
register_sidebar();
|
register_sidebar();
|
||||||
|
|
Loading…
Reference in New Issue