Make WordPress Core


Ignore:
Timestamp:
07/06/2024 02:52:05 PM (10 months ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Remove obsolete comments about older PHP versions.

This commit:

  • Removes various comments referencing PHP versions which are no longer supported.
  • Removes various comments containing “hints” of things to do after a particular PHP version drop. These hints are incorrect/not actionable for various reasons, so have no value:
    • Even though a function could be turned into a closure, removing the function would be a backward compatibility break which is not acceptable, so this suggestion is not actionable.
    • Short ternaries are forbidden by the coding standard exactly to prevent the faulty code suggested in the comment from getting into the codebase.

Follow-up to [1243/tests], [6543], [11816], [29861], [29864], [34928], [35369], [36698], [38694], [50786], [58678].

Props jrf, ayeshrajans.
See #61574.

File:
1 edited

Legend:

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

    r58128 r58682  
    453453/**
    454454 * Gets the time elapsed so far during this PHP script.
    455  *
    456  * Uses REQUEST_TIME_FLOAT that appeared in PHP 5.4.0.
    457455 *
    458456 * @since 5.8.0
Note: See TracChangeset for help on using the changeset viewer.