Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#49660 closed defect (bug) (fixed)

Update the flush_rewrite_rules doc block to use "option" instead of "transient"

Reported by: david.binda Owned by: SergeyBiryukov
Priority: normal Milestone: 5.5
Component: Rewrite Rules Version: 2.9
Severity: trivial Keywords: has-patch
Cc: Focuses:

Description

In r12061 the temporary usage of transient for storing rewrite rules ( introduced in r10512 ) has been reverted back to option, but the documentation still says:

@param bool $hard Whether to update .htaccess (hard flush) or just update
rewrite_rules transient (soft flush). Default is true (hard).

It should be updated to rewrite_rules option to reflect the method WordPress is using for storing the rewrite rules.

Attachments (1)

49660.diff​ (605 bytes ) - added by david.binda 7 years ago.

Download all attachments as: .zip

Change History (3)

#1 @SergeyBiryukov
7 years ago

  • Keywords has-patch added
  • Milestone Awaiting Review → 5.5
  • Owner set to SergeyBiryukov
  • Status new → reviewing

#2 @SergeyBiryukov
7 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 47468:

Docs: Correct the description of $hard parameter in flush_rewrite_rules().

Props david.binda.
Fixes #49660.

Note: See TracTickets for help on using tickets.