Make WordPress Core

Opened 14 years ago

Closed 10 years ago

Last modified 10 years ago

#14549 closed enhancement (duplicate)

Allow Control over Hard vs. Soft Rewrite Flush

Reported by: ikailo's profile ikailo Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Rewrite Rules Keywords: has-patch
Focuses: Cc:

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 13 years ago.
Moved filter to method

Download all attachments as: .zip

Change History (8)

#1 @ikailo
14 years ago

  • Keywords has-patch added

#2 @ikailo
14 years ago

  • Cc john@… added

#3 @nacin
13 years ago

  • Keywords needs-patch 2nd-opinion added; has-patch removed

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

@ikailo
13 years ago

Moved filter to method

#4 @ikailo
13 years ago

  • Keywords has-patch added; needs-patch removed

#5 @markjaquith
13 years ago

  • Milestone changed from Awaiting Review to Future Release

#6 @chriscct7
10 years ago

  • Keywords 2nd-opinion removed
  • Resolution set to duplicate
  • Status changed from new to closed

Implemented with different name in #23491

#7 @DrewAPicture
10 years ago

  • Milestone Future Release deleted

Duplicate of #23491.

Note: See TracTickets for help on using tickets.