WordPress.org

Ready to get started?Download WordPress

Forums

Any Mobile Theme Switcher
Need to init $return variable in function show_theme_switch_link_func (1 post)

  1. swishstar
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic