WordPress.org

Make WordPress Core

Ticket #46613: 46613.3.diff

File 46613.3.diff, 609 bytes (added by davidbaumwald, 6 months ago)

Updated patch to conform to WPCS

  • src/wp-admin/includes/class-wp-automatic-updater.php

    diff --git a/src/wp-admin/includes/class-wp-automatic-updater.php b/src/wp-admin/includes/class-wp-automatic-updater.php
    index c1c67206a9..e0861d9ea6 100644
    a b class WP_Automatic_Updater { 
    205205                        }
    206206                }
    207207
     208                // If it's a plugin update, are we actually compatible with its requirements?
     209                if ( 'plugin' == $type ) {
     210                        if ( ! empty( $item->requires_php ) && version_compare( $item->requires_php, phpversion(), '>=' ) ) {
     211                                return false;
     212                        }
     213                }
     214
    208215                return true;
    209216        }
    210217