Fix notice in ajax response. Props garyc40. fixes #15810

git-svn-id: https://develop.svn.wordpress.org/trunk@16914 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-12-14 15:07:43 +00:00
parent 4ebfb979b1
commit 1da4d8e087

View File

@ -664,7 +664,7 @@ case 'replyto-comment' :
$x = new WP_Ajax_Response();
ob_start();
if ( 'dashboard' == $mode ) {
if ( 'dashboard' == $_REQUEST['mode'] ) {
require_once( ABSPATH . 'wp-admin/includes/dashboard.php' );
_wp_dashboard_recent_comments_row( $comment );
} else {