Make WordPress Core

Opened 13 years ago

Closed 12 years ago

Last modified 3 months ago

#5266 closed defect (bug) (duplicate)

Removal of more PHP Warnings

Reported by: Viper007Bond Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3
Component: Administration Keywords: has-patch 2nd-opinion
Focuses: Cc:


I'm using /wp-admin/includes/admin.php and /wp-admin/menu.php from outside of the admin area (to get a list of menu items). Doing so generates a PHP error.

Attached patch should fix it. Logic needs a looking at though to make sure I didn't break anything.

Attachments (1)

5266.patch (820 bytes) - added by Viper007Bond 13 years ago.

Download all attachments as: .zip

Change History (5)

13 years ago

#1 @Viper007Bond
13 years ago

Er, doing so generates a PHP warning, not an error.

#2 @lloydbudd
13 years ago

  • Milestone changed from 2.3.2 to 2.5

#3 @jacobsantos
12 years ago

  • Milestone 2.9 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This most likely was fixed with another notices patch. I think there should only be one ticket for notices and warnings fixes per WordPress version.

This ticket was mentioned in Slack in #core-editor by mkaz. View the logs.

3 months ago

Note: See TracTickets for help on using tickets.