WordPress.org

Make WordPress Core

Ticket #6250: 7596.diff

File 7596.diff, 611 bytes (added by stevish, 10 years ago)

Fixes the mm typo so that changing minutes triggers edit_time

  • wp-admin/includes/comment.php

     
    2121        $_POST['comment_content'] = $_POST['content'];
    2222        $_POST['comment_ID'] = (int) $_POST['comment_ID'];
    2323
    24         foreach ( array ('aa', 'mm', 'jj', 'hh', 'mm') as $timeunit ) {
     24        foreach ( array ('aa', 'mm', 'jj', 'hh', 'mn') as $timeunit ) {
    2525                if ( !empty( $_POST['hidden_' . $timeunit] ) && $_POST['hidden_' . $timeunit] != $_POST[$timeunit] ) {
    2626                        $_POST['edit_date'] = '1';
    2727                        break;