Make WordPress Core


Ignore:
Timestamp:
07/17/2022 02:16:27 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use MINUTE_IN_SECONDS where appropriate.

This aims to clarify the time units for some timeout or expiration values.

Follow-up to [11823], [13177], [21996], [37747].

See #55647.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-permalink.php

    r53713 r53714  
    204204    }
    205205
    206     set_transient( 'settings_errors', get_settings_errors(), 30 );
     206    set_transient( 'settings_errors', get_settings_errors(), MINUTE_IN_SECONDS / 2 );
    207207
    208208    wp_redirect( admin_url( 'options-permalink.php?settings-updated=true' ) );
Note: See TracChangeset for help on using the changeset viewer.