Support » Plugin: YD Network-wide Options » [PATCH] Undefined variable: flush_rewrites

  • With WP_DEBUG turned on in a WPMU 3.6.1 install when creating a site I get:

    Notice: Undefined index: flush_rewrites in /path/to/wp-content/plugins/yd-wpmu-sitewide-options/yd-wpmu-sitewide-options.php on line 867

    The issue is in the yd_wpmuso_options_new_blog_action method on the line

    if( $options['flush_rewrites'] ) {

    Just change it to

    if( !empty($options['flush_rewrites']) ) {

    and you’re good.

  • The topic ‘[PATCH] Undefined variable: flush_rewrites’ is closed to new replies.