WordPress.org

Ready to get started?Download WordPress

Forums

Twitter
deprecated warnings (1 post)

  1. kitchin
    Member
    Posted 1 year ago #

    Found by setting WP_DEBUG=true in wp-config.php

    It's a 3 line fix.

    -	if ( !function_exists('register_sidebar_widget') )
    +	if ( !function_exists('wp_register_sidebar_widget') )
    ...
    -	register_sidebar_widget('Twitter VJCK', 'widget_twitter_vjck');
    -	register_widget_control('Twitter VJCK', 'widget_twitter_vjck_control' );
    +	wp_register_sidebar_widget(sanitize_title('Twitter VJCK'), 'Twitter VJCK', 'widget_twitter_vjck');
    +	wp_register_widget_control(sanitize_title('Twitter VJCK'), 'Twitter VJCK', 'widget_twitter_vjck_control' );

    If you figure out what sanitize_title is producing, you can use a string for the first parameters. Code above just duplicates exactly what wp-includes/deprecated.php is doing for you.

    http://wordpress.org/extend/plugins/twitter/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.