Create a gist now

Instantly share code, notes, and snippets.

anonymous /fix_shortcode.patch Secret
Created Apr 10, 2014

Embed
What would you like to do?
Patch to fix the shortcode bug
From 42838dc98b98be07a4d167b578fdf02daba22b2a Mon Sep 17 00:00:00 2001
From: Marc Addeo <marc@npws.net>
Date: Thu, 10 Apr 2014 15:40:16 -0400
Subject: [PATCH] Fixing the shortcode
---
.../any-mobile-theme-switcher-pro/any-mobile-theme-switcher-pro.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wp-content/plugins/any-mobile-theme-switcher-pro/any-mobile-theme-switcher-pro.php b/wp-content/plugins/any-mobile-theme-switcher-pro/any-mobile-theme-switcher-pro.php
index 2a7258e..569ce7b 100644
--- a/wp-content/plugins/any-mobile-theme-switcher-pro/any-mobile-theme-switcher-pro.php
+++ b/wp-content/plugins/any-mobile-theme-switcher-pro/any-mobile-theme-switcher-pro.php
@@ -120,10 +120,10 @@ function show_theme_switch_link_func_pro( $atts ){
global $amts_force_param;
$desktopSwitchLink = get_option('show_switch_link_for_desktop');
- if ($amts_shown_theme){
+ if ($amtsp_shown_theme){
$return = '<a rel="external" data-ajax="false" href="'.get_bloginfo('url').'?'.$amts_force_param.'=desktop" class="am-switch-btn godesktop">'.get_option('desktop_view_theme_link_text').'</a>';
} else {
- if ((!empty($amts_status)) || ($desktopSwitchLink == 'yes')){
+ if ((!empty($amtsp_status)) || ($desktopSwitchLink == 'yes')){
$return = '<a href="'.get_bloginfo('url').'?'.$amts_force_param.'=mobile" class="am-switch-btn gomobile">'.get_option('mobile_view_theme_link_text').'</a>';
}
}
--
1.8.5.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment