WordPress.org

Ready to get started?Download WordPress

Forums

WP Favorite Posts
[resolved] Broken, includes shiny PHP errors (6 posts)

  1. ianarmstrong
    Member
    Posted 1 year ago #

    [08-Jul-2013 00:45:43 UTC] PHP Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control() instead. in functions.php on line 2841
    [08-Jul-2013 00:45:43 UTC] PHP Notice: Undefined index: autoshow in wp-content\plugins\wp-favorite-posts\wp-favorite-posts.php on line 442

    http://wordpress.org/extend/plugins/wp-favorite-posts/

  2. emile.swain
    Member
    Posted 6 months ago #

    auto show is resolved by adding the following line to the wpfp_init method

    function wpfp_init() {
    ...
     $wpfp_options['autoshow'] = ''; // 'before' || 'after'
    ...

    register_widget_control has been resolved in latest version.

  3. emile.swain
    Member
    Posted 6 months ago #

    Also noticed that if i upgrade the plugin and its got new values in the wpfp_options it has an issue with undefined indexs.

    i have to add the following and change add to update

    function wpfp_init() {
    $wpfp_options['opt_only_registered']= 1;
        update_option('wpfp_options', $wpfp_options);
  4. emile.swain
    Member
    Posted 6 months ago #

    I also had to deactivate and re-activate the plugin for the update_option to set the value.

  5. Huseyin Berberoglu
    Member
    Plugin Author

    Posted 6 months ago #

    emile.swain thanks for codes. I've just upgraded the plugin and fixed them.

  6. ianarmstrong
    Member
    Posted 6 months ago #

    Nice work Emile! I should have probably contributed that myself =/

    I've actually had my hands full reviving a couple of old 2.9 era plugins and couldn't get distracted by another.

    Great job.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.