• Resolved Mike Manger

    (@mikemanger)


    Noticed this while updating a new clients site – the function wp_is_mobile() was included in WordPress 3.4.0 so it currently breaks in 3.3 and below. (plugin page currently says it supports 3.0.0)

    To fix this I changed line 17 of dynwid_worker.php from:

    $DW->device = ( wp_is_mobile() ) ? 'mobile' : 'desktop';

    To:

    if ( function_exists( 'wp_is_mobile' ) ) {
    	$DW->device = ( wp_is_mobile() ) ? 'mobile' : 'desktop';
    } else {
    	$DW->device = 'desktop';
    }

    https://wordpress.org/plugins/dynamic-widgets/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Minimal WordPress version should be 3.4’ is closed to new replies.