Support » Plugin: Any Mobile Theme Switcher » Need to init $return variable in function show_theme_switch_link_func

  • When the desktop switch link variable is off but you’ve forced the mobile site, then the $return variable is not defined when it is attempted to be used in the function show_theme_switch_link_func.

    The fix is to insert this line:

    right after this line (line 90 in version 1.3):
    $desktopSwitchLink = get_option(‘show_switch_link_for_desktop’);

  • The topic ‘Need to init $return variable in function show_theme_switch_link_func’ is closed to new replies.