Support » Plugin: Twitget » Great work

  • jcottrell


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

  • The topic ‘Great work’ is closed to new replies.