[wp-trac] [WordPress Trac] #12260: Add PHP requirement to plugin info retrieved trough API call
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 17 18:04:29 UTC 2010
#12260: Add PHP requirement to plugin info retrieved trough API call
-----------------------------+----------------------------------------------
Reporter: petervanderdoes | Owner: ryan
Type: feature request | Status: new
Priority: normal | Milestone: Unassigned
Component: WordPress.org | Version:
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
Setup:
Add a field to the header of the readme.txt
Example:
Requires at least PHP: 5.2
Use this field in the back end, to be returned when calling:
wp_remote_post('http://api.wordpress.org/plugins/update-check/1.0/',
$options);
adding it to the transient 'update_plugins'.
Then when a plug-in upgrade is available and the plugin changed to require
PHP5 with in the core the option to upgrade could be disabled with some
info that the PHP version X is required and the server runs PHP version Y.
Using a check during the on activation hook means that during an upgrade
of the plugin the old version is already removed and the user would have
to download and install the previous version of the plugin.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12260>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list