WordPress.org

Ready to get started?Download WordPress

Forums

Mini twitter feed
PHP Notices (2 posts)

  1. chriscatfr
    Member
    Posted 1 year ago #

    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'].'",':'');

    by

    $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);

    by

    add_shortcode('minitwitter', 'mtf_create_shortcode');

    http://wordpress.org/extend/plugins/mini-twitter-feed/

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

  2. hectopod
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you! I will update everything in the new version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic