WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months 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
Milestone: 5.5 Priority: normal
Severity: trivial Version: 2.9
Component: Rewrite Rules Keywords: has-patch
Focuses: Cc:

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 9 months ago.

Download all attachments as: .zip

Change History (3)

@david.binda
9 months ago

#1 @SergeyBiryukov
9 months ago

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

#2 @SergeyBiryukov
9 months ago

  • Resolution set to fixed
  • Status changed from reviewing to 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.