global $user_login;

get_currentuserinfo();

if ($user_login !== “admin”) { // change admin to the username that gets the updates

add_action( ‘init’, create_function( ‘$a’, “remove_action( ‘init’, ‘wp_version_check’ );” ), 2 );

add_filter( ‘pre_option_update_core’, create_function( ‘$a’, “return null;” ) );

}

// even more smart jquery inclusion 🙂

 

add_action( ‘init’, ‘jquery_register’ );

// register from google and for footer

function jquery_register() {

if ( !is_admin() ) {

wp_deregister_script( ‘jquery’ );

wp_register_script( ‘jquery’, ( ‘https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js‘ ), false, null, true );

wp_enqueue_script( ‘jquery’ );

}

}

 

Leave a Reply