Ticket #19875 (closed enhancement: fixed)

Opened 5 weeks ago

Last modified 5 weeks ago

Simplify code in WP_Rewrite::page_rewrite_rules()

Reported by: duck_ Owned by: duck_
Priority: normal Milestone: 3.4
Component: Rewrite Rules Version:
Severity: normal Keywords: has-patch
Cc:

Description

WP_Rewrite::page_rewrite_rules() performs an unnecessary array_merge() on an empty array. It can be simplified to make it easier to read and understand.

Attachments

19875.diff Download (1.3 KB) - added by duck_ 5 weeks ago.
19875.2.diff Download (1.3 KB) - added by duck_ 5 weeks ago.

Change History

duck_5 weeks ago

duck_5 weeks ago

Patch also removes old documentation. Related #16687.

  • Owner set to duck_
  • Status changed from new to closed
  • Resolution set to fixed

In [19736]:

Simplify code in WP_Rewrite::page_rewrite_rules() and remove out-of-date documenation. Fixes #19875.

Note: See TracTickets for help on using tickets.