WordPress.org

Ready to get started?Download WordPress

Forums

BackWPup Free - WordPress Backup Plugin
Code snippet for customer sites to wait for 3.1 release (3 posts)

  1. Ov3rfly
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/backwpup/

  2. mbrsolution
    Member
    Posted 1 year ago #

    Hi, this is a great idea ;) I am sure many will implement your function. I am not updating my production sites until I see all the issues ironed out. I am running the latest version on my test site and it works very well but I have not tested all the features.

    I do agree with you, this is a great plugin and I have been using this plugin for over a year now. What I think Daniel should do next time on a major release or update, is to start with a beta version. Let the community test the beta version before it becomes a stable release version. This would work in his advantage.

    My humble opinion.

    Kind regards

  3. Caspar
    Member
    Posted 1 year ago #

    @ Ov3rfly +1 for creativity and user power. ;) 3.0.4 seems to run pretty smooth in most environments, though. But it sure is a good idea in general to test a plugin on your server before you use it in a productive environment.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.