Support » Plugin: Mini twitter feed » [Plugin: Mini twitter feed] PHP Notices

  • I develop my website on a testing server where “WP_DEBUG” is TRUE.
    There I can see many PHP Notices all over the final page because of Mini Twitter Feed.

    2 reasons to that, first I had to replace

    $options .= (($atts['limit'])?'limit:'.$atts['limit'].',':'');
    $options .= (($atts['query'])?'query:"'.$atts['query'].'",':'');
    $options .= (($atts['list'])?'list:"'.$atts['list'].'",':'');


    $options .= ((isset($atts['limit']))?'limit:'.$atts['limit'].',':'');
    $options .= ((isset($atts['query']))?'query:"'.$atts['query'].'",':'');
    $options .= ((isset($atts['list']))?'list:"'.$atts['list'].'",':'');
    if(!isset($atts['id'])) $atts['id'] = '';

    and after

    Notice: Use of undefined constant mtf_create_shortcode - assumed 'mtf_create_shortcode' in /home/websites/origin/wordpress/online/wp-content/plugins/mini-twitter-feed/mini-twitter-feed.php on line 61

    made me replace

    add_shortcode('minitwitter', mtf_create_shortcode);


    add_shortcode('minitwitter', 'mtf_create_shortcode');

    I hope its developer will include these changes into a new update

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Mini twitter feed] PHP Notices’ is closed to new replies.