diff --git a/src/wp-admin/comment.php b/src/wp-admin/comment.php index ef2d1d628e..bdd326ecf1 100644 --- a/src/wp-admin/comment.php +++ b/src/wp-admin/comment.php @@ -38,7 +38,7 @@ if ( isset( $_GET['dt'] ) ) { // Prevent actions on a comment associated with a trashed post. $comment_id = absint( $_GET['c'] ); -$comment = get_comment( $comment_id ); +$comment = get_comment( $comment_id ); if ( 'trash' === get_post_status( $comment->comment_post_ID ) ) { wp_die( diff --git a/src/wp-admin/nav-menus.php b/src/wp-admin/nav-menus.php index b9aee875f1..24fc03a31b 100644 --- a/src/wp-admin/nav-menus.php +++ b/src/wp-admin/nav-menus.php @@ -358,7 +358,7 @@ switch ( $action ) { $messages[] = '

' . __( 'Please enter a valid menu name.' ) . '

'; } - // Update existing menu. + // Update existing menu. } else { // Remove menu locations that have been unchecked. foreach ( $locations as $location => $description ) {