Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#19875 closed enhancement (fixed)

Simplify code in WP_Rewrite::page_rewrite_rules()

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


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 (2)

19875.diff (1.3 KB) - added by duck_ 12 years ago.
19875.2.diff (1.3 KB) - added by duck_ 12 years ago.

Download all attachments as: .zip

Change History (4)

12 years ago

12 years ago

#1 @duck_
12 years ago

Patch also removes old documentation. Related #16687.

#2 @duck_
12 years ago

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

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.