add_meta_boxes actions for comment and link forms.
git-svn-id: https://develop.svn.wordpress.org/trunk@14044 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
acb76fe42d
commit
ad1b9608e6
@ -124,8 +124,12 @@ $date = date_i18n( $datef, strtotime( $comment->comment_date ) );
|
||||
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
|
||||
</div>
|
||||
|
||||
<?php do_meta_boxes('comment', 'normal', $comment); ?>
|
||||
<?php
|
||||
do_action('add_meta_boxes', 'comment', $comment);
|
||||
do_action('add_meta_boxes_comment', $comment);
|
||||
|
||||
do_meta_boxes('comment', '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) ?>" />
|
||||
<input name="referredby" type="hidden" id="referredby" value="<?php echo esc_url(stripslashes(wp_get_referer())); ?>" />
|
||||
|
@ -30,6 +30,9 @@ add_meta_box('linktargetdiv', __('Target'), 'link_target_meta_box', 'link', 'nor
|
||||
add_meta_box('linkxfndiv', __('Link Relationship (XFN)'), 'link_xfn_meta_box', 'link', 'normal', 'core');
|
||||
add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core');
|
||||
|
||||
do_action('add_meta_boxes', 'link', $link);
|
||||
do_action('add_meta_boxes_link', $link);
|
||||
|
||||
do_action('do_meta_boxes', 'link', 'normal', $link);
|
||||
do_action('do_meta_boxes', 'link', 'advanced', $link);
|
||||
do_action('do_meta_boxes', 'link', 'side', $link);
|
||||
|
Loading…
Reference in New Issue
Block a user