~vcs-imports/wordpress/trunk

Viewing all changes in revision 39288.

  • Committer: SergeyBiryukov
  • Date: 2019-03-22 00:37:50 UTC
  • Revision ID: svn-v4:1a063a9b-81f0-0310-95a4-ce76da25c4cd:trunk:44809
Plugins: Block plugin activation if it requires a higher version of PHP or WordPress.

Introduce `validate_plugin_requirements()` for validating a plugin's WordPress and PHP version requirements.

Introduce `wp_is_wp_compatible()` and `wp_is_php_compatible()` for checking compatibility with the current WordPress or PHP version.

Props afragen, joyously, DrewAPicture, TimothyBlynJacobs, desrosj, flixos90, SergeyBiryukov.
See #43992.
Built from https://develop.svn.wordpress.org/trunk@44978

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: