Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #46599, comment 5


Ignore:
Timestamp:
03/22/2019 02:32:55 PM (6 years ago)
Author:
afragen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46599, comment 5

    initial v1  
    11I initially wanted to use `is_wp_compatible()` and `is_php_compatible()`.
    22
    3 Similar code exists in most plugins that are designed to fail gracefully. Having this in core means not having to fiddle with the subtleties of `version_compare`.
     3Similar code exists in most plugins that are designed to fail gracefully. Having this in core means not having to fiddle with the subtleties of `version_compare` for many plugin authors.
    44
    55Specifically having this test in a single location in core means that when having values in the `readme.txt` headers is mandatory it will be easier to implement. Currently the `empty( $requires ) || version_compare…` allows for this less stringent test.