WordPress.org

Ready to get started?Download WordPress

Forums

Twitget
Great work (1 post)

5 stars
  1. jcottrell
    Member
    Posted 1 year ago #

    Great plugin! It saved me after Twitter API v1.0 went away.

    Please wrap your wp_register_script and wp_enqueue_script with something like the following to get rid of a PHP Notice (there are several others for the settings page but this one appears on every page):


    function sbts_custom_twitget() {
    if(!wp_script_is('jquery')) {
    wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js');
    wp_enqueue_script('jquery');
    }
    }
    add_action( 'wp_enqueue_scripts', 'sbts_custom_twitget', 20 );
    add_action( 'admin_enqueue_scripts', 'sbts_custom_twitget', 20 );

    It doesn't hinder the plugin at all but when I'm testing other plugins, especially the ones with ajax calls, these PHP notices can obscure errors.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.