Changeset 48912 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 08/31/2020 03:56:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r48695 r48912 553 553 $comment = get_comment( $comment_ID ); 554 554 555 if ( '' === $format ) {556 $ date = mysql2date( get_option( 'date_format' ), $comment->comment_date);557 } else {558 $date = mysql2date( $format, $comment->comment_date ); 559 }555 if ( ! is_string( $format ) || '' === $format ) { 556 $format = get_option( 'date_format' ); 557 } 558 559 $date = mysql2date( $format, $comment->comment_date ); 560 560 561 561 /** … … 1047 1047 $comment_date = $gmt ? $comment->comment_date_gmt : $comment->comment_date; 1048 1048 1049 if ( '' === $format ) {1050 $ date = mysql2date( get_option( 'time_format' ), $comment_date, $translate);1051 } else {1052 $date = mysql2date( $format, $comment_date, $translate ); 1053 }1049 if ( ! is_string( $format ) || '' === $format ) { 1050 $format = get_option( 'time_format' ); 1051 } 1052 1053 $date = mysql2date( $format, $comment_date, $translate ); 1054 1054 1055 1055 /**
Note: See TracChangeset
for help on using the changeset viewer.