[wp-trac] [WordPress Trac] #55647: Coding Standards fixes for WP 6.1
WordPress Trac
noreply at wordpress.org
Fri Sep 9 08:14:58 UTC 2022
#55647: Coding Standards fixes for WP 6.1
----------------------------+-------------------------------
Reporter: costdev | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.1
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
----------------------------+-------------------------------
Comment (by audrasjb):
In [changeset:"54113" 54113]:
{{{
#!CommitTicketReference repository="" revision="54113"
Coding Standards: Clarify time units for various timeout or expiration
values.
This changeset implements a clearer and more consistent
timeout/duration/expiration format. It updates time durations used in
various files, as per WordPress coding standards:
- If the value can be represented as an integer (not a fractional) number
of minutes (hours, etc.), use the appropriate constant (e.g.:
`MINUTE_IN_SECONDS`) multiplied by that number.
- Otherwise, keep the value as is and add a comment with the units for
clarity.
Follow-up to [11823], [13177], [21996], [37747], [53714].
Props hztyfoon, audrasjb, arrasel403, krupalpanchal, GaryJ,
SergeyBiryukov, peterwilsoncc, rudlinkon, costdev, robinwpdeveloper.
Fixes #56293.
See #55647.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55647#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list