Title: GrayD4Web's Replies | WordPress.org

---

# GrayD4Web

  [  ](https://wordpress.org/support/users/grayd4web/)

 *   [Profile](https://wordpress.org/support/users/grayd4web/)
 *   [Topics Started](https://wordpress.org/support/users/grayd4web/topics/)
 *   [Replies Created](https://wordpress.org/support/users/grayd4web/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/grayd4web/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/grayd4web/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/grayd4web/engagements/)
 *   [Favorites](https://wordpress.org/support/users/grayd4web/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Deregistering jquery breaks password protect pages](https://wordpress.org/support/topic/deregistering-jquery-breaks-password-protect-pages/)
 *  Thread Starter [GrayD4Web](https://wordpress.org/support/users/grayd4web/)
 * (@grayd4web)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/deregistering-jquery-breaks-password-protect-pages/#post-3844369)
 * I have not, this happens rarely. But there are the possibilities in which this
   does change things. (in which I’ll keep this in mind)
 * Another question on it, why is the WP-includes jquery different than a copy of
   the same version that would make things like this break? (Aside from the `jQuery.
   noConflict();`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Deregistering jquery breaks password protect pages](https://wordpress.org/support/topic/deregistering-jquery-breaks-password-protect-pages/)
 *  Thread Starter [GrayD4Web](https://wordpress.org/support/users/grayd4web/)
 * (@grayd4web)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/deregistering-jquery-breaks-password-protect-pages/#post-3844329)
 * Alright, you offer compelling evidence and I will heed your advice. Troubleshooting
   issues with deprecated code has only seldom been an issue (that being upgrade
   from really old versions of WordPress to a modern one, WordPress has offered 
   pretty solid upgrades.
 * Thank for your insight.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Deregistering jquery breaks password protect pages](https://wordpress.org/support/topic/deregistering-jquery-breaks-password-protect-pages/)
 *  Thread Starter [GrayD4Web](https://wordpress.org/support/users/grayd4web/)
 * (@grayd4web)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/deregistering-jquery-breaks-password-protect-pages/#post-3844324)
 * even if the follow is true?
 *     ```
       <?php
       if (!is_admin()) {
       	$handle = 'jquery';
       	$src = get_template_directory_uri() . '/js/jquery.min.js';
       	$deps = false;
       	$ver = '1.9.1';
       	$in_footer = false;
       	wp_deregister_script($handle);
       	wp_register_script($handle, $src, $deps, $ver, $in_footer );
       } ?>
       ```
   
 * (excuse me if this goes back and forth. I’m just really trying to understand 
   a few things with this.)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Deregistering jquery breaks password protect pages](https://wordpress.org/support/topic/deregistering-jquery-breaks-password-protect-pages/)
 *  Thread Starter [GrayD4Web](https://wordpress.org/support/users/grayd4web/)
 * (@grayd4web)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/deregistering-jquery-breaks-password-protect-pages/#post-3844321)
 * Haha! Okay, granted. Obviously it destroys the password protect.
 * The goal of the deregister is to register a controlled copy in the theme itself.
   I need control over versioning of the Jquery, I want to be able to use a copy
   that will not change with an update, to avoid deprecated code.
 * WP does a really good job of keeping a good version of jquery in the includes,
   however I want to be 100% that updating wordpress will not break a client’s site.(
   I can deal with WP deprecated code, but jQuery deprecates stuff that is widely
   used..)
 * And still, for the matter of it, why does jquery have anything to do with the
   password page?
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Hacking The_Content();](https://wordpress.org/support/topic/hacking-the_content/)
 *  Thread Starter [GrayD4Web](https://wordpress.org/support/users/grayd4web/)
 * (@grayd4web)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/hacking-the_content/#post-3418970)
 * Well I found another workaround, I added empty cells to the rows and utilized
   colspan’s.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Help: Adding meta tags with Wp_head](https://wordpress.org/support/topic/help-adding-meta-tags-with-wp_head/)
 *  Thread Starter [GrayD4Web](https://wordpress.org/support/users/grayd4web/)
 * (@grayd4web)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/help-adding-meta-tags-with-wp_head/#post-3370061)
 * Ah, the trouble was with the bloginfo() function. The function itself doesn’t
   return, it echoes. So I was double echoing. I cleaned that up and it works perfectly.
 * here’s the header.php (You can see the minimalistic file I was going for)
 *     ```
       <!DOCTYPE html><html <?php language_attributes(); ?> class="<?php if (function_exists('css_browser_selector')) { echo css_browser_selector(); } else { echo 'off'; } ?>">
       <head>
           <title><?php wp_title( '|', true, 'right' ); ?></title>
           <?php wp_head(); ?>
       </head>
       <body <?php body_class(); ?>>
       ```
   
 * Here’s the function:
 *     ```
       function d4_head() {
       	echo '<meta charset="'; bloginfo( "charset" ); echo '" />' ;
       	echo '<link rel="profile" href="http://gmpg.org/xfn/11" />';
       	echo '<link rel="pingback" href="'; bloginfo( "pingback_url" ); echo '" />';
       	// Favicon
       	echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_bloginfo('stylesheet_directory').'/img/favicon.ico" />';
       	// Jquery - Google, then wordpress's
       	if (!is_admin()) {
       		wp_deregister_script('jquery');
       		wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', false, '1.8.3', true);
       		wp_enqueue_script('jquery');
       	}
       	// Theme CSS
       	echo '<link rel="stylesheet" type="text/css" media="all" href="'.get_bloginfo( 'stylesheet_url' ).'" />';
       }
       add_action('wp_head', 'd4_head');
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Help: Adding meta tags with Wp_head](https://wordpress.org/support/topic/help-adding-meta-tags-with-wp_head/)
 *  Thread Starter [GrayD4Web](https://wordpress.org/support/users/grayd4web/)
 * (@grayd4web)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/help-adding-meta-tags-with-wp_head/#post-3370060)
 * Nope, wp_head is right before closing head.
 *     ```
       <!DOCTYPE html><html <?php language_attributes(); ?> class="<?php if (function_exists('css_browser_selector')) { echo css_browser_selector(); } else { echo 'off'; } ?>">
       <head>
           <title><?php wp_title( '|', true, 'right' ); ?></title>
           <?php d4_head(); ?>
           <?php wp_head(); ?>
       </head>
       <body <?php body_class(); ?>>
       ```
   
 * You can see here, I’m currently trying to just echo the function straight in 
   the the head with d4_head();. The Functions.php, no longer has the add_action
   and I get the same result, any ‘echo’ actually echoes inside the body tag…
 * Currently, this is a barebones theme I’m developing and there is no live site
   to view.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Is WordPress' jQuery watered down?](https://wordpress.org/support/topic/is-wordpress-jquery-watered-down/)
 *  Thread Starter [GrayD4Web](https://wordpress.org/support/users/grayd4web/)
 * (@grayd4web)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/is-wordpress-jquery-watered-down/#post-3330729)
 * Anyone?

Viewing 8 replies - 1 through 8 (of 8 total)