From: Laury GvR Date: Mon, 20 Oct 2014 19:06:57 +0000 (-0400) Subject: Proper non-use link href rewrites X-Git-Tag: v1.36~12 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ab443b90b96e595a47e93252e7eb42dd381565cc;p=WP-Plugins%2FGaslightify.git Proper non-use link href rewrites --- diff --git a/Gaslightify.php b/Gaslightify.php index de0842f..998e9e4 100755 --- a/Gaslightify.php +++ b/Gaslightify.php @@ -4,7 +4,7 @@ Plugin Name: Gaslightify Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates Description: A gasline to a Wordpress website. -Version: 1.32 +Version: 1.34 Author: Gaslight Media Author URI: http://www.gaslightmedia.com License: Gaslight Media diff --git a/js/Gaslightify.js b/js/Gaslightify.js index 3542b14..530d102 100755 --- a/js/Gaslightify.js +++ b/js/Gaslightify.js @@ -2,16 +2,14 @@ jQuery(document).ready(function(){ jQuery("#wp-admin-bar-my-account > a").click(function(){ return false; }); - jQuery("#wp-admin-bar-wp-logo > .ab-item").click(function() { - return false; - }); jQuery("#wp-admin-bar-wp-logo").hover(function() { return false; }); var jurl = jQuery(".ngg-gallery-thumbnail").attr("title"); jQuery(".ngg-gallery-thumbnail").attr("href","http://gaslight.upnorth.net/our-work/"+jurl); - jQuery('#wp-admin-bar-my-account > a').attr("href","#"); + jQuery("#wp-admin-bar-wp-logo > .ab-item").attr("href",window.location.origin); + jQuery('#wp-admin-bar-my-account > a').attr("href",window.location.origin); jQuery('#wp-admin-bar-user-info > a').attr("href","#"); });