[wp-trac] [WordPress Trac] #46613: Ensure plugin auto updates are blocked if required PHP version is not supported

WordPress Trac noreply at wordpress.org
Thu Apr 11 20:56:59 UTC 2019


#46613: Ensure plugin auto updates are blocked if required PHP version is not
supported
----------------------------------+------------------------
 Reporter:  TimothyBlynJacobs     |       Owner:  desrosj
     Type:  defect (bug)          |      Status:  reviewing
 Priority:  normal                |   Milestone:  5.2
Component:  Upgrade/Install       |     Version:  trunk
 Severity:  normal                |  Resolution:
 Keywords:  servehappy has-patch  |     Focuses:
----------------------------------+------------------------

Comment (by desrosj):

 [attachment:"46613.4.diff"] updates the version compare to not include
 `=`. If the version returned by `phpinfo()` is exactly the same as the
 required minimum version, then the update should be allowed.

 Also, I have reversed the comparison to so that the local version is
 listed first in the comparison. This matches the two other
 `version_compare()` calls above making it a little harder to get tripped
 up.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46613#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list