WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months ago

#24920 closed defect (bug) (fixed)

Remove unused global $pagenow in multiple files

Reported by: jeremyfelt Owned by: markjaquith
Milestone: 3.7 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch commit
Focuses: Cc:

Description

An unused $pagenow global is called via:

  • _wp_menu_output() in wp-admin/menu-header.php
  • media_upload_form() in wp-admin/includes/media.php
  • wp_link_pages in wp-includes/post-template.php

Attached patch removes these.

Attachments (1)

24920.diff (1.6 KB) - added by jeremyfelt 9 months ago.

Download all attachments as: .zip

Change History (3)

jeremyfelt9 months ago

comment:1 nacin9 months ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.7

comment:2 markjaquith9 months ago

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

In 24974:

Remove $pagenow global from three functions that don’t use it.

Props jeremyfelt. Fixes #24920.

Note: See TracTickets for help on using tickets.