Coding Standards: Use HOUR_IN_SECONDS where appropriate.

This aims to clarify the time units for some time offset values.

Follow-up to [21996], [23823], [40108], [41626].

See #56791.

git-svn-id: https://develop.svn.wordpress.org/trunk@54870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-11-24 14:16:18 +00:00
parent a9c3d2a2ed
commit 4e24a65a1b
3 changed files with 3 additions and 3 deletions

View File

@@ -859,7 +859,7 @@ function _wp_upgrade_revisions_of_post( $post, $revisions ) {
return false;
}
if ( $locked > $now - 3600 ) {
if ( $locked > $now - HOUR_IN_SECONDS ) {
// Lock is not too old: some other process may be upgrading this post. Bail.
return false;
}