[wp-trac] [WordPress Trac] #43229: Documentation for add_meta_boxes hook is incorrect
WordPress Trac
noreply at wordpress.org
Mon Feb 5 12:18:39 UTC 2018
#43229: Documentation for add_meta_boxes hook is incorrect
--------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: needs-patch
Focuses: docs |
--------------------------+-----------------------------
The documentation for the `add_meta_boxes` hook states that the `$post`
parameter is a `WP_Post` object. This is incorrect because the object can
be any type. On the comment editing screen for example, this parameter is
a `WP_Comment` object.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43229>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list