Opened 3 years ago

Last modified 2 years ago

#14549 new enhancement

Allow Control over Hard vs. Soft Rewrite Flush

Reported by: ikailo Owned by:
Priority: normal Milestone: Future Release
Component: Rewrite Rules Version:
Severity: normal Keywords: has-patch 2nd-opinion
Cc: john@…

Description

Many times when the rewrite rules are flushed, it really only requires that the rules be written to the database and not .htaccess. In some cases, re-writing .htaccess can cause detrimental changes to the mod rewrite rules.

This patch allows a plugin author to have control over whether a hard flush is executed when flush_rewrite_rules() is called.

Introduces filter: flush_rewrite_rules_hard

Depends on #14546

Attachments (1)

filter_flush_rewrite_rules_hard.diff (550 bytes) - added by ikailo 3 years ago.
Moved filter to method

Download all attachments as: .zip

Change History (6)

  • Keywords has-patch added
  • Cc john@… added
  • Keywords needs-patch 2nd-opinion added; has-patch removed

Any filter here should be in the method directly, not the function wrapper.

ikailo3 years ago

Moved filter to method

  • Keywords has-patch added; needs-patch removed
  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.