WordPress.org

Make WordPress Core

Ticket #46613: 46613.diff

File 46613.diff, 641 bytes (added by davidbaumwald, 6 months ago)
  • 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..06eb0ba566 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( phpversion(), $item->requires_php, '>=' ) ) {
     211                return false;
     212            }
     213                }
     214
    208215                return true;
    209216        }
    210217