Skip to content

Commit

Permalink
Improve modified date shortcode output. See #2
Browse files Browse the repository at this point in the history
  • Loading branch information
sheabunge committed Apr 4, 2015
1 parent 2f3169b commit cc18ed0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion includes/class-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ function shortcode_permalink( $atts, $content ) {
* @since 1.0
*/
function shortcode_last_modified() {
return the_modified_date( 'd/m/Y', '<time>', '</time>', false );

$open_el = sprintf (
'<time datetime="%s">',
get_the_modified_date( 'Y-m-d' )
);

return the_modified_date( '', $open_el, '</time>', false );
}

/**
Expand Down

0 comments on commit cc18ed0

Please sign in to comment.