WordPress.org

Support

Support » Plugins and Hacks » Any Mobile Theme Switcher » Need to init $return variable in function show_theme_switch_link_func

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:
    $return=”;

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

    http://wordpress.org/extend/plugins/any-mobile-theme-switcher/

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