Make WordPress Core

Opened 13 years ago

Closed 13 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:

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

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

Download all attachments as: .zip

Change History (4)

@duck_
13 years ago

@duck_
13 years ago

#1 @duck_
13 years ago

Patch also removes old documentation. Related #16687.

#2 @duck_
13 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.