• If you flush rules to .htaccess using

    $wp_rewrite->flush_rules()

    it will mess up the main rules of the site if you have a blog that uses:

    – wpml translator plugin with permalink settings “use directory for all languages” (also for the main site language)

    OR
    – using multisites.

    Saving the Link Library options WordPress will then present a white page and the site will go unavailable until the rules in .htacces will be restored using a ftp software.

    The one line of code that flushes the rewrite rules in the admin of the LinkLibrary causes the error:

    $wp_rewrite->flush_rules() – pls make this optional

    I’m commenting this line out for now, but it would be nice to deactivate the flushing by using an option for it and thus, saving us from surprises as new update of the plugin installs and it flushes the rules again…

    thx in advance, steve

    https://ww.wp.xz.cn/plugins/link-library/

Viewing 1 replies (of 1 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    Instead of making this option, I added an argument to flush_rules so that it only refreshes the re-write rules in the database and leaves the .htaccess file as is.

    Can you update to the latest version and confirm that your .htaccess file no longer gets blown away? (Make a backup first just in case)

    Please consider donating to support this plugin’s development.

Viewing 1 replies (of 1 total)

The topic ‘$wp_rewrite->flush_rules() – pls make this optional’ is closed to new replies.