Make WordPress Core

Changeset 57985


Ignore:
Timestamp:
04/11/2024 09:09:49 PM (8 months ago)
Author:
johnbillion
Message:

General: Increase the minimum supported version of PHP to 7.2.24.

Props justlevine, masteradhoc, samiamnot, hellofromTonya, azaozz, jrf, dd32, desrosj, jorbin

Fixes #58719

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/phpunit-tests.yml

    r57379 r57985  
    4646      matrix:
    4747        os: [ ubuntu-latest ]
    48         php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
     48        php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
    4949        db-type: [ 'mysql' ]
    5050        db-version: [ '5.7', '8.0', '8.1', '8.2', '8.3' ]
     
    9898      matrix:
    9999        os: [ ubuntu-latest ]
    100         php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
     100        php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
    101101        db-type: [ 'mariadb' ]
    102102        db-version: [ '10.4', '10.6', '10.11', '11.2' ]
  • trunk/.github/workflows/upgrade-testing.yml

    r57915 r57985  
    4444      matrix:
    4545        os: [ 'ubuntu-latest' ]
    46         php: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
     46        php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
    4747        db-type: [ 'mysql' ]
    4848        db-version: [ '5.7', '8.0' ]
     
    6767      matrix:
    6868        os: [ 'ubuntu-latest' ]
    69         php: [ '7.0', '7.1', '7.2', '7.3', '7.4' ]
     69        php: [ '7.2', '7.3', '7.4' ]
    7070        db-type: [ 'mysql' ]
    7171        db-version: [ '5.7', '8.0' ]
     
    117117      matrix:
    118118        os: [ 'ubuntu-latest' ]
    119         php: [ '7.0', '7.1', '7.2', '7.3', '7.4' ]
     119        php: [ '7.2', '7.3', '7.4' ]
    120120        db-type: [ 'mysql' ]
    121121        db-version: [ '5.7', '8.0' ]
  • trunk/.version-support-php.json

    r57219 r57985  
    11{
     2    "6-6": [
     3        "7.2",
     4        "7.3",
     5        "7.4",
     6        "8.0",
     7        "8.1",
     8        "8.2",
     9        "8.3"
     10    ],
    211    "6-5": [
    312        "7.0",
  • trunk/composer.json

    r57563 r57985  
    1212    "require": {
    1313        "ext-json": "*",
    14         "php": ">=7.0"
     14        "php": ">=7.2.24"
    1515    },
    1616    "suggest": {
  • trunk/phpcompat.xml.dist

    r56667 r57985  
    6464    <rule ref="PHPCompatibilityWP"/>
    6565
    66     <!-- WordPress Core currently supports PHP 7.0+. -->
    67     <config name="testVersion" value="7.0-"/>
     66    <!-- WordPress Core currently supports PHP 7.2+. -->
     67    <config name="testVersion" value="7.2-"/>
    6868
    6969    <!--
  • trunk/src/readme.html

    r57793 r57985  
    5252<h2>System Requirements</h2>
    5353<ul>
    54     <li><a href="https://secure.php.net/">PHP</a> version <strong>7.0</strong> or greater.</li>
     54    <li><a href="https://secure.php.net/">PHP</a> version <strong>7.2.24</strong> or greater.</li>
    5555    <li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.5.5</strong> or greater.</li>
    5656</ul>
  • trunk/src/wp-admin/includes/misc.php

    r57651 r57985  
    16481648    $response['is_lower_than_future_minimum'] = false;
    16491649
    1650     // The minimum supported PHP version will be updated to 7.2. Check if the current version is lower.
    1651     if ( version_compare( $version, '7.2', '<' ) ) {
     1650    // The minimum supported PHP version will be updated to 7.4 in the future. Check if the current version is lower.
     1651    if ( version_compare( $version, '7.4', '<' ) ) {
    16521652        $response['is_lower_than_future_minimum'] = true;
    16531653
  • trunk/src/wp-includes/compat.php

    r57524 r57985  
    360360}
    361361
    362 if ( ! function_exists( 'is_iterable' ) ) {
    363     /**
    364      * Polyfill for is_iterable() function added in PHP 7.1.
    365      *
    366      * Verify that the content of a variable is an array or an object
    367      * implementing the Traversable interface.
    368      *
    369      * @since 4.9.6
    370      *
    371      * @param mixed $value The value to check.
    372      * @return bool True if `$value` is iterable, false otherwise.
    373      */
    374     function is_iterable( $value ) {
    375         return ( is_array( $value ) || $value instanceof Traversable );
    376     }
    377 }
    378 
    379362if ( ! function_exists( 'array_key_first' ) ) {
    380363    /**
     
    521504}
    522505
    523 // IMAGETYPE_WEBP constant is only defined in PHP 7.1 or later.
    524 if ( ! defined( 'IMAGETYPE_WEBP' ) ) {
    525     define( 'IMAGETYPE_WEBP', 18 );
    526 }
    527 
    528 // IMG_WEBP constant is only defined in PHP 7.0.10 or later.
    529 if ( ! defined( 'IMG_WEBP' ) ) {
    530     define( 'IMG_WEBP', IMAGETYPE_WEBP );
    531 }
    532 
    533506// IMAGETYPE_AVIF constant is only defined in PHP 8.x or later.
    534507if ( ! defined( 'IMAGETYPE_AVIF' ) ) {
  • trunk/src/wp-includes/version.php

    r57782 r57985  
    3838 * @global string $required_php_version
    3939 */
    40 $required_php_version = '7.0.0';
     40$required_php_version = '7.2.24';
    4141
    4242/**
Note: See TracChangeset for help on using the changeset viewer.