WordPress.org

Make WordPress Core

Ticket #50411: 50411.diff

File 50411.diff, 715 bytes (added by desrosj, 19 months ago)
  • src/wp-admin/includes/class-wp-automatic-updater.php

     
    214214                        }
    215215                }
    216216
    217                 // If updating a plugin, ensure the minimum PHP version requirements are satisfied.
    218                 if ( 'plugin' === $type ) {
     217                // If updating a plugin or theme, ensure the minimum PHP version requirements are satisfied.
     218                if ( in_array( $type, array( 'plugin', 'theme' ), true ) ) {
    219219                        if ( ! empty( $item->requires_php ) && version_compare( phpversion(), $item->requires_php, '<' ) ) {
    220220                                return false;
    221221                        }