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

  1. ianarmstrong
    Posted 2 years 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


  2. emile.swain
    Posted 1 year 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
    Posted 1 year 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
    Posted 1 year ago #

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

  5. Huseyin Berberoglu
    Plugin Author

    Posted 1 year ago #

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

  6. ianarmstrong
    Posted 1 year 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

  • WP Favorite Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.