WordPress.org

Forums

Aspexi Easy Login URL
[resolved] Flush Rewrite Rules code correction (4 posts)

  1. AITpro
    Member
    Posted 1 year ago #

    This needs to be fixed. Thanks.

    By doing this generalized check for if any plugin saves its settings you wipe out/delete the root .htaccess file code whenever ANY plugin settings are saved. Typically flush rewrite rules should ONLY be used on plugin activation and deactivation. Please correct this. Thank you.

    // Init stuff
            function init() {
                if ('true' == @$_REQUEST['settings-updated']) {
                    global $wp_rewrite;
    				$wp_rewrite->flush_rules();
                }
            }

    http://wordpress.org/plugins/aspexi-easy-login-url/

  2. tripflex
    Member
    Posted 12 months ago #

    I agree, I just spent hours trying to figure out the problem just to locate it down to this plugin. This plugin should pretty much be removed from the repo! Like whoa! Completely incorrect way of flushing rewrite rules!

  3. AITpro
    Member
    Posted 12 months ago #

    Yep, this plugin appears to be abandoned. There is a great alternative plugin that does this: http://wordpress.org/plugins/stealth-login-page/

  4. tripflex
    Member
    Posted 12 months ago #

    I actually integrated this functionality into a plugin i'm creating, if you're interested in it:

    https://github.com/tripflex/user-activate-by-reset

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Aspexi Easy Login URL
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic