Make WordPress Core

Changeset 31123


Ignore:
Timestamp:
01/10/2015 05:49:24 AM (10 years ago)
Author:
wonderboymusic
Message:

In wp-admin/includes/revision.php, $post->modified is a coding error. It should be $post->post_modified.

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/revision.php

    r30739 r31123  
    222222            'title'      => get_the_title( $post->ID ),
    223223            'author'     => $authors[ $post->post_author ],
    224             'date'       => date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->modified ) ),
    225             'dateShort'  => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), strtotime( $post->modified ) ),
     224            'date'       => date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_modified ) ),
     225            'dateShort'  => date_i18n( _x( 'j M @ G:i', 'revision date short format' ), strtotime( $post->post_modified ) ),
    226226            'timeAgo'    => sprintf( __( '%s ago' ), human_time_diff( strtotime( $post->post_modified_gmt ), $now_gmt ) ),
    227227            'autosave'   => false,
Note: See TracChangeset for help on using the changeset viewer.