Move comment_footer_die()
from wp-admin/comment.php
to wp-admin/includes/comment.php
.
See #33813. git-svn-id: https://develop.svn.wordpress.org/trunk@34019 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
706cdbc671
commit
037cdcb412
@ -33,17 +33,6 @@ if ( isset( $_GET['dt'] ) ) {
|
||||
$action = 'trash';
|
||||
}
|
||||
|
||||
/**
|
||||
* Display error message at bottom of comments.
|
||||
*
|
||||
* @param string $msg Error Message. Assumed to contain HTML and be sanitized.
|
||||
*/
|
||||
function comment_footer_die( $msg ) {
|
||||
echo "<div class='wrap'><p>$msg</p></div>";
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
die;
|
||||
}
|
||||
|
||||
switch( $action ) {
|
||||
|
||||
case 'editcomment' :
|
||||
|
@ -171,3 +171,14 @@ function enqueue_comment_hotkeys_js() {
|
||||
if ( 'true' == get_user_option( 'comment_shortcuts' ) )
|
||||
wp_enqueue_script( 'jquery-table-hotkeys' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Display error message at bottom of comments.
|
||||
*
|
||||
* @param string $msg Error Message. Assumed to contain HTML and be sanitized.
|
||||
*/
|
||||
function comment_footer_die( $msg ) {
|
||||
echo "<div class='wrap'><p>$msg</p></div>";
|
||||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
die;
|
||||
}
|
Loading…
Reference in New Issue
Block a user