Code snippet for customer sites to wait for 3.1 release
-
Due to the various problems with the 3.0.x releases of this otherwise really great plugin, here a small code snippet for
functions.php
to hide updates before a certainly more stable 3.1 release and avoid an accidental install of 3.0.x updates by curious customers on production sites.function my_filter_plugin_updates( $value ) { if ( isset( $value->response ) && isset( $value->response['backwpup/backwpup.php'] ) ) { if ( version_compare( $value->response['backwpup/backwpup.php']->new_version, '3.1', '<' ) ) { unset( $value->response['backwpup/backwpup.php'] ); } } return $value; } add_filter( 'site_transient_update_plugins', 'my_filter_plugin_updates' );
Starting with release of 3.1 the updates will show up again.
I am sure Daniel will sort out all these problems within near future, thanks for the great plugin.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Code snippet for customer sites to wait for 3.1 release’ is closed to new replies.