Make WordPress Core


Ignore:
Timestamp:
11/24/2022 02:16:18 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/revision.php

    r54347 r54870  
    860860        }
    861861
    862         if ( $locked > $now - 3600 ) {
     862        if ( $locked > $now - HOUR_IN_SECONDS ) {
    863863            // Lock is not too old: some other process may be upgrading this post. Bail.
    864864            return false;
Note: See TracChangeset for help on using the changeset viewer.