Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Commit

Permalink
Fix formatting of integer taxonomy terms
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtw committed Mar 25, 2015
1 parent 3d9c4e3 commit bd55bb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cms-toolkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
available throughout the application and make building complex functionality
in WordPress a little easier.
Version: 1.4.0
Version: 1.5.0
Author: Greg Boone, Aman Kaur, Matthew Duran, Scott Cranfill, Kurt Wall
Author URI: https://github.com/cfpb/
License: Public Domain work of the Federal Government
Expand Down
4 changes: 2 additions & 2 deletions inc/meta-box-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,11 @@ public function displayTags( $taxonomy, $type, $timezone = NULL ) {
// Checks if the current set term is wholly numeric (in this case a timestamp)
if ( is_numeric( $term->name ) ) {
if ( $type == 'date' ) {
$natdate = date( 'j F, Y', intval( $term->name ) );
$natdate = date( 'j F Y', intval( $term->name ) );
} elseif ( $type == 'time' ) {
$natdate = date( 'h:ia T', intval( $term->name ) );
} elseif ( $type == 'datetime' ) {
$natdate = date( 'F j, Y @ h:ia T', intval( $term->name ) );
$natdate = date( 'F j Y h:ia T', intval( $term->name ) );
}
?><span><a id="<?php echo esc_attr( $taxonomy ) ?>-check-num-<?php echo esc_attr( $i ) ?>"
class="tagdelbutton -<?php echo esc_attr( $term->name ) ?>"><?php
Expand Down

0 comments on commit bd55bb7

Please sign in to comment.