Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 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:


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)

#1 follow-up: @nacin
6 years ago

Your callback doesn't match your function name.

#2 in reply to: ↑ 1 @anointed
6 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.

#3 @nacin
6 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.