Skip to content

Commit

Permalink
get_post_modified_timeを使用しているところをget_the_modified_timeに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Oct 10, 2023
1 parent 8e84c5b commit 56972f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils.php
Expand Up @@ -1016,14 +1016,14 @@ function get_update_time($format = null, $post_id = null) {
if (empty($format)) {
$format = get_site_date_format();
}
$mtime = get_post_modified_time('Ymd', false, $post_id);
$mtime = get_the_modified_time('Ymd', $post_id);
$ptime = get_the_time('Ymd', $post_id);
if ($ptime > $mtime) {
return get_the_time($format, $post_id);
} elseif ($ptime === $mtime) {
return null;
} else {
return get_post_modified_time($format, false, $post_id);
return get_the_modified_time($format, $post_id);
}
}
endif;
Expand Down

0 comments on commit 56972f1

Please sign in to comment.