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 "
";
- 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 "";
+ include( ABSPATH . 'wp-admin/admin-footer.php' );
+ die;
+}
\ No newline at end of file