Make WordPress Core

Ticket #24743: 24743.patch

File 24743.patch, 655 bytes (added by ocean90, 11 years ago)
  • wp-admin/includes/revision.php

     
    8686                        'title'        => get_the_title( $post->ID ),
    8787                        'author' => array(
    8888                                'id'     => (int) $revision->post_author,
    89                                 'avatar' => get_avatar( $revision->post_author, 24 ),
     89                                'avatar' => get_option( 'show_avatars' ) ? get_avatar( $revision->post_author, 24 ) : '',
    9090                                'name'   => get_the_author_meta( 'display_name', $revision->post_author ),
    9191                        ),
    9292                        'date'         => date_i18n( __( 'M j, Y @ G:i' ), $modified ),