Move `comment_footer_die()` from `wp-admin/comment.php` to `wp-admin/includes/comment.php`.
See #33813. Built from https://develop.svn.wordpress.org/trunk@34019 git-svn-id: http://core.svn.wordpress.org/trunk@33988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a1d949f361
commit
f0b95b7bcc
|
@ -33,17 +33,6 @@ if ( isset( $_GET['dt'] ) ) {
|
||||||
$action = 'trash';
|
$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 ) {
|
switch( $action ) {
|
||||||
|
|
||||||
case 'editcomment' :
|
case 'editcomment' :
|
||||||
|
|
|
@ -171,3 +171,14 @@ function enqueue_comment_hotkeys_js() {
|
||||||
if ( 'true' == get_user_option( 'comment_shortcuts' ) )
|
if ( 'true' == get_user_option( 'comment_shortcuts' ) )
|
||||||
wp_enqueue_script( 'jquery-table-hotkeys' );
|
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;
|
||||||
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34018';
|
$wp_version = '4.4-alpha-34019';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue