Make WordPress Core

Changeset 59956


Ignore:
Timestamp:
03/09/2025 03:15:05 PM (7 weeks ago)
Author:
johnbillion
Message:

Upgrade/Install: Adjust the check for missing extensions during an upgrade so it remains compatible with versions of WordPress prior to 5.1.

The WP_Error::has_errors() method was introduced in WordPress 5.1, so this change uses its internal logic instead to remain compatible with earlier versions.

Props swissspidy, joemcgill, desrosj.

Fixes #63052

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/upgrade-develop-testing.yml

    r59815 r59956  
    6464        db-type: [ 'mysql' ]
    6565        db-version: [ '5.7', '8.4' ]
    66         wp: [ '6.5', '6.6', '6.7' ]
     66        # WordPress 4.9 is the oldest version that supports PHP 7.2.
     67        wp: [ '4.9', '6.5', '6.6', '6.7' ]
    6768        multisite: [ false, true ]
    6869
     
    7172          - php: '7.2'
    7273            db-version: '8.4'
     74          # WordPress 4.9 does not support PHP 8.4.
     75          - php: '8.4'
     76            wp: '4.9'
    7377    with:
    7478      os: ${{ matrix.os }}
  • trunk/src/wp-admin/includes/update-core.php

    r59861 r59956  
    12001200
    12011201        // Add a warning when required PHP extensions are missing.
    1202         if ( $missing_extensions->has_errors() ) {
     1202        if ( ! empty( $missing_extensions->errors ) ) {
    12031203            return $missing_extensions;
    12041204        }
Note: See TracChangeset for help on using the changeset viewer.