Skip to content

Commit 29e2289

Browse files
committed
Update hook variable names to be more generic
1 parent 068c9b4 commit 29e2289

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/wp-admin/includes/meta-boxes.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,10 +1677,10 @@ function register_and_do_post_meta_boxes( $post ) {
16771677
*
16781678
* @since 3.0.0
16791679
*
1680-
* @param string $post_type Post type of the current screen. Can be 'post', 'page',
1681-
* custom post types, 'comment', or 'link'.
1682-
* @param WP_Post|WP_Comment|object $post The post, comment, or link object. Type varies depending on
1683-
* `$post_type`.
1680+
* @param string $object_type The type of the current object that meta boxes were added to.
1681+
* Can be 'post', 'page', custom post types, 'comment', or 'link'.
1682+
* @param WP_Post|WP_Comment|object $object The post, comment, or link object. Type varies depending on
1683+
* `$post_type`.
16841684
*/
16851685
do_action( 'add_meta_boxes', $post_type, $post );
16861686

@@ -1700,8 +1700,8 @@ function register_and_do_post_meta_boxes( $post ) {
17001700
*
17011701
* @since 3.0.0
17021702
*
1703-
* @param WP_Post|WP_Comment|object $post The post, comment, or link object. Type varies depending on
1704-
* the hook name.
1703+
* @param WP_Post|WP_Comment|object $object The post, comment, or link object. Type varies depending on
1704+
* the hook name.
17051705
*/
17061706
do_action( "add_meta_boxes_{$post_type}", $post );
17071707

0 commit comments

Comments
 (0)