Make WordPress Core


Ignore:
Timestamp:
07/06/2024 02:52:05 PM (18 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/class-wp-customize-manager.php

    r58376 r58682  
    61426142     * into a partial's render_callback so we cannot use get_custom_logo() as
    61436143     * the render_callback directly since it expects a blog ID as the first
    6144      * argument. When WP no longer supports PHP 5.3, this method can be removed
    6145      * in favor of an anonymous function.
     6144     * argument.
    61466145     *
    61476146     * @see WP_Customize_Manager::register_controls()
Note: See TracChangeset for help on using the changeset viewer.