WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#13445 closed defect (bug) (invalid)

remove_meta_box function broken in 3.0-beta2-14729(nightly)

Reported by: anointed Owned by:
Milestone: Priority: low
Severity: normal Version: 3.0
Component: General Keywords:
Focuses: Cc:

Description

Noticed when I downloaded the latest version today that the remove_meta_box function seems to have stopped working. It must have happened within the last 2-3 builds as I had it working ok.

to replicate: Add to theme functions.php

add_action('admin_menu', 'my_remove_box');
function my_remove() {
remove_meta_box('postcustom', 'post', 'normal');
remove_meta_box('postcustom', 'movies', 'normal');
}

I hope it's a real bug and I'm not sounding incompetent here :)
Was able to verify the problem in both custom theme and twentyten.

Change History (3)

comment:1 follow-up: nacin4 years ago

Your callback doesn't match your function name.

comment:2 in reply to: ↑ 1 anointed4 years ago

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

Replying to nacin:

Your callback doesn't match your function name.

I have so got to find time for sleep these days. lol
thank you.

comment:3 nacin4 years ago

  • Milestone Unassigned deleted

Not a problem. I typed do_action instead of add_action earlier and wondered why my testbed was failing.

Note: See TracTickets for help on using tickets.