Changeset 48912 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 08/31/2020 03:56:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r48870 r48912 2526 2526 } 2527 2527 2528 if ( '' === $format ) {2529 $ the_date = get_post_time( get_option( 'date_format' ), false, $post, true);2530 } else {2531 $the_date = get_post_time( $format, false, $post, true ); 2532 }2528 if ( ! is_string( $format ) || '' === $format ) { 2529 $format = get_option( 'date_format' ); 2530 } 2531 2532 $the_date = get_post_time( $format, false, $post, true ); 2533 2533 2534 2534 /** … … 2655 2655 } 2656 2656 2657 if ( '' === $format ) {2658 $ the_time = get_post_time( get_option( 'time_format' ), false, $post, true);2659 } else {2660 $the_time = get_post_time( $format, false, $post, true ); 2661 }2657 if ( ! is_string( $format ) || '' === $format ) { 2658 $format = get_option( 'time_format' ); 2659 } 2660 2661 $the_time = get_post_time( $format, false, $post, true ); 2662 2662 2663 2663 /**
Note: See TracChangeset
for help on using the changeset viewer.