[AMTS Pro] Typo in code causing the switcher link to stop working

Home Forums Any Mobile Theme Switcher [AMTS Pro] Typo in code causing the switcher link to stop working

This topic contains 1 reply, has 2 voices, and was last updated by  Dinesh 3 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2944

    Syahir Hakim

    Hi there,

    I noticed a typo in the code that renders the theme switch link to not appear at all when the mobile theme is displayed.

    In the code snippet attached below (from any-mobile-theme-switcher-pro.php file), the declared global is $amtsp_shown_theme, whereas the variable used in the logical “if” is $amtsp_shown_theme, i.e. “amtsp” vs “amts”.

    It would be great if you could add this fix in the pro version of the plugin and send out an update.

    Thanks!

    —————————————————————————-

    function show_theme_switch_link_func_pro( $atts ){
    global $amtsp_shown_theme;
    global $amtsp_status;
    global $amts_force_param;
    $desktopSwitchLink = get_option(‘show_switch_link_for_desktop’);

    if ($amts_shown_theme){

    #2945

    Dinesh
    Keymaster

    Hi Syahir,

    Thank you so much for informing about this. Can you let me know which version you are using currently ?

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘[AMTS Pro] Typo in code causing the switcher link to stop working’ is closed to new replies.