Changes between Initial Version and Version 1 of Ticket #46599, comment 5
- Timestamp:
- 03/22/2019 02:32:55 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #46599, comment 5
initial v1 1 1 I initially wanted to use `is_wp_compatible()` and `is_php_compatible()`. 2 2 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` .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` for many plugin authors. 4 4 5 5 Specifically 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.