title: Wordpress: Jquery for theme and admin conflict
body: <p>May there is very simple solution but I am facing issue to solve this as new to these all.</p>
  
  <p>I am enqueue jquery and other script from my theme function php file. Below is my code</p>
  
  <pre><code>function mediaplus_scripts() {
          if (!is_admin()) {
              wp_deregister_script( 'jquery' );
              wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js');
              wp_enqueue_script( 'jquery' );
          }
  
          wp_enqueue_script( 'theme-js', get_template_directory_uri() . '/js/theme.js', 'jquery' );
  
          wp_enqueue_script( 'listgrid-cookie', get_template_directory_uri() . '/js/list-grid/cookie.js', 'jquery' );
  
          wp_enqueue_script( 'listgrid', get_template_directory_uri() . '/js/list-grid/listgrid.js', 'jquery' );
  
          wp_enqueue_script( 'slider-easing', get_template_directory_uri() . '/js/jquery.easing.1.3.js', 'jquery' );
  
          wp_enqueue_script( 'home-slider', get_template_directory_uri() . '/js/slides.min.jquery.js', 'jquery' );
  
          wp_enqueue_script( 'home-ajax-content', get_template_directory_uri() . '/js/dynamic-page/dynamicpage.js', 'jquery' );
  
          /* wp_enqueue_script( 'mediaplus-script', get_template_directory_uri() . '/js/functions.js', 'jquery' ); */ 
  
      } 
      add_action('init', 'mediaplus_scripts');
  
      function add_admin_scripts() {
  
          wp_deregister_script( 'jquery' );
          wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js');
          wp_enqueue_script( 'jquery' );
  
          wp_enqueue_script( 'mediaplus_options', 'http://cdn.jquerytools.org/1.2.6/jquery.tools.min.js', 'jquery' );
  
      }
      add_action('init', 'add_admin_scripts');
  </code></pre>
  
  <p>Problem with the code is admin enqueue function is conflicting with theme function and resulting disabling all javascript in theme only admin jquery is working. </p>
  
  <p>Is there any way to solve this?</p>