Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#11203 closed defect (bug) (fixed)

Missing check for action type

Reported by: sirzooro's profile sirzooro Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.9
Component: Trash Keywords: has-patch
Focuses: Cc:

Description

Changes made and already committed for #9674 does not include check for action type, so WP displays few notices on "New Page" page. Attached patch reintroduces missing check.

Attachments (2)

meta-boxes.php.diff (567 bytes) - added by sirzooro 16 years ago.
11203.diff (1.3 KB) - added by westi 16 years ago.
A possible fix

Download all attachments as: .zip

Change History (7)

#1 @ryan
16 years ago

  • Component changed from Administration to Trash

#2 @ryan
16 years ago

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

(In [12272]) Check action type to avoid warnings. Props sirzooro. fixes #11203

#3 @westi
16 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

This was reverted in [12330] for #11351 as this change broke functionality.

@westi
16 years ago

A possible fix

#4 @westi
16 years ago

I think I tracked down the real cause.

Wondering if we have a $page global ever though.

#5 @westi
16 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [12332]) Check the correct global in get_page and also ensure that the cap check for deleting pages copes for the default page we edit when adding new. Fixes #11203.

Note: See TracTickets for help on using tickets.