From ab443b90b96e595a47e93252e7eb42dd381565cc Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 20 Oct 2014 15:06:57 -0400 Subject: [PATCH] Proper non-use link href rewrites --- Gaslightify.php | 2 +- js/Gaslightify.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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","#"); }); -- 2.17.1