Skip to content

Instantly share code, notes, and snippets.

Created April 10, 2014 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f7b13e1286cf953c1d8a to your computer and use it in GitHub Desktop.
Save anonymous/f7b13e1286cf953c1d8a to your computer and use it in GitHub Desktop.
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