Changeset 49747
- Timestamp:
- 12/03/2020 09:07:49 PM (3 months ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/src/wp-admin/includes/class-wp-application-passwords-list-table.php
r49549 r49747 69 69 echo '—'; 70 70 } else { 71 echo gmdate( get_option( 'date_format', 'r' ), $item['created'] );71 echo date_i18n( __( 'F j, Y' ), $item['created'] ); 72 72 } 73 73 } … … 84 84 echo '—'; 85 85 } else { 86 echo gmdate( get_option( 'date_format', 'r' ), $item['last_used'] );86 echo date_i18n( __( 'F j, Y' ), $item['last_used'] ); 87 87 } 88 88 } … … 225 225 break; 226 226 case 'created': 227 echo "<# print( wp.date.dateI18n( '" . esc_js( get_option( 'date_format' ) ) . "', data.created ) ) #>"; 227 // JSON encoding automatically doubles backslashes to ensure they don't get lost when printing the inline JS. 228 echo '<# print( wp.date.dateI18n( ' . wp_json_encode( __( 'F j, Y' ) ) . ', data.created ) ) #>'; 228 229 break; 229 230 case 'last_used': 230 echo "<# print( data.last_used !== null ? wp.date.dateI18n( '" . esc_js( get_option( 'date_format' ) ) . "', data.last_used ) : '—' ) #>";231 echo '<# print( data.last_used !== null ? wp.date.dateI18n( ' . wp_json_encode( __( 'F j, Y' ) ) . ", data.last_used ) : '—' ) #>"; 231 232 break; 232 233 case 'last_ip':
Note: See TracChangeset
for help on using the changeset viewer.