From 037cdcb4122ec0535990008fccfbcfcab9b75e08 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 10 Sep 2015 21:28:18 +0000 Subject: [PATCH] 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 --- src/wp-admin/comment.php | 11 ----------- src/wp-admin/includes/comment.php | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php index d83cb53544..ab0235218c 100644 --- a/src/wp-admin/comment.php +++ b/src/wp-admin/comment.php @@ -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 "

$msg

"; - include( ABSPATH . 'wp-admin/admin-footer.php' ); - die; -} - switch( $action ) { case 'editcomment' : diff --git a/src/wp-admin/includes/comment.php b/src/wp-admin/includes/comment.php index c9087ec962..dfb39220ab 100644 --- a/src/wp-admin/includes/comment.php +++ b/src/wp-admin/includes/comment.php @@ -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 "

$msg

"; + include( ABSPATH . 'wp-admin/admin-footer.php' ); + die; +} \ No newline at end of file