mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Update meta box functions to handle WP_Screen objects and pass objects instead of IDs to them in core files. Allow passing emptiness to get the current screen. see #18958
git-svn-id: https://develop.svn.wordpress.org/trunk@19013 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -130,7 +130,7 @@ $date = date_i18n( $datef, strtotime( $comment->comment_date ) );
|
||||
do_action('add_meta_boxes', 'comment', $comment);
|
||||
do_action('add_meta_boxes_comment', $comment);
|
||||
|
||||
do_meta_boxes('comment', 'normal', $comment);
|
||||
do_meta_boxes(null, 'normal', $comment);
|
||||
?>
|
||||
<input type="hidden" name="c" value="<?php echo esc_attr($comment->comment_ID) ?>" />
|
||||
<input type="hidden" name="p" value="<?php echo esc_attr($comment->comment_post_ID) ?>" />
|
||||
|
||||
Reference in New Issue
Block a user