• Resolved Edwin Siebel

    (@edwin-at-studiojoyocom)


    While enabling the ‘Disable VCS Check’ in your plugin, the filter returns true. However, to disable this check, it should return false (see article of Andrew Nacin).

    I hereby submit a simple patch to resolve this problem.

    Index: htdocs/wp-content/plugins/update-control/update-control.php
    ===================================================================
    --- htdocs/wp-content/plugins/update-control/update-control.php	(revision 851123)
    +++ htdocs/wp-content/plugins/update-control/update-control.php	(working copy)
    @@ -53,7 +53,7 @@
     			}
    
     			if ( $options['vcscheck'] ) {
    -				add_filter( 'automatic_updates_is_vcs_checkout', '__return_true', 1 );
    +				add_filter( 'automatic_updates_is_vcs_checkout', '__return_false', 1 );
     			}
    
     			if ( 'no' == $options['emailactive'] || ! ( $options['successemail'] || $options['failureemail'] || $options['criticalemail'] ) ) {
Viewing 1 replies (of 1 total)
  • Plugin Author Chip Bennett

    (@chipbennett)

    Thanks for reporting! This should be fixed in version 1.3.2. I also clarified the option name, and its description in the readme.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable VCS Check does not work’ is closed to new replies.