Networks for WordPress
[resolved] Site options not updated (2 posts)

  1. edmeister
    Posted 5 years ago #

    I installed the 'networks for wordpress' plugin on a new WordPress 3.1 install. When assigning a blog to a different network I noticed the site-specific url's in the options table weren't changed.

    There seems to be a bug in the code on line 470 of the plugin's index.php file:

    $option = $wpdb->get_row("SELECT * FROM $optionsTable WHERE option_name='" . $option_name . "'");

    has to be changed to

    $option = $wpdb->get_row("SELECT * FROM $optionTable WHERE option_name='" . $option_name . "'");

    If you've reassigned blogs before, you might have to change the site-specific url's manually first for the str_replace on line 471 to work.


  2. David Dean
    Plugin Author

    Posted 5 years ago #

    Thanks for catching this!

    Looks like I was inconsistent in the original code, and didn't run through it thoroughly enough when updating.

    A new version will be out shortly to address this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Networks for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic