Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#6964 closed defect (bug) (fixed)

Add default meta boxes via add_meta_box()

Reported by: ryan Owned by: ryan
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


The default meta boxes on the post, page, and link edit page are hard-coded into the template. To allow the default meta boxes to be removed and replaced, they should be added via add_meta_box().

Attachments (2)

meta_boxes.diff (2.8 KB) - added by ryan 7 years ago.
6964.diff (9.0 KB) - added by DD32 7 years ago.

Download all attachments as: .zip

Change History (11)

@ryan7 years ago

comment:1 @ryan7 years ago

Patch does the cats and tags boxes on the edit post page as an example. Also adds remove_meta_box() API.

comment:2 @ryan7 years ago

  • Summary changed from Adde default meta boxes via add_meta_box() to Add default meta boxes via add_meta_box()

comment:3 @ryan7 years ago

  • Owner changed from anonymous to ryan

comment:4 @ryan7 years ago

(In [7930]) Add default edit post meta boxes via API. see #6964

comment:5 @ryan7 years ago

Page and link edit forms are next. If anyone wants to do those, go for it.

comment:6 @jeremyclarke7 years ago

  • Cc jeremyclarke added

And all across the land, a resounding 'W007' was heard. :D

@DD327 years ago

comment:7 @DD327 years ago

attachment 6964.diff added.

Moves Pages to API, Some corrections to the post author box that was missed on the Post page.

comment:8 @ryan7 years ago

(In [7948]) add_meta_box() for edit page form. Props DD32. see #6964

comment:9 @ryan7 years ago

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

(In [8025]) add_meta_box() for edit link form. fixes #6964

Note: See TracTickets for help on using tickets.