diff -r bf1778c34b9a -r d8a8807227e4 wp/wp-content/plugins/portfolio/bws_menu/deactivation-form.php --- a/wp/wp-content/plugins/portfolio/bws_menu/deactivation-form.php Mon Oct 14 18:35:50 2019 +0200 +++ b/wp/wp-content/plugins/portfolio/bws_menu/deactivation-form.php Tue Oct 15 11:56:20 2019 +0200 @@ -123,13 +123,12 @@ + '

' + '

:

' + ' ' + '
' + ' ' + ' ' @@ -180,11 +179,17 @@ return; } + /** + * + * @todo Remove after 01.01.2020 + * This code need to be removed after WordPress letter "[WordPress Plugin Directory] Notice: Captcha by BestWebSoft" from 04.09.2019 by kdo + * + */ /* If reason is empty, add the error-message class to the message container to change the message color to red. */ - if ( 0 === $userReason.val().trim().length ) { + /*if ( 0 === $userReason.val().trim().length ) { $modal.find( '.message' ).addClass( 'error-message' ); BwsModalDisableDeactivateButton(); - } + }*/ }, 150 ); }); @@ -211,9 +216,15 @@ $input = $selected_reason.find( 'textarea, input[type="text"]' ), userReason = ( 0 !== $input.length ) ? $input.val().trim() : ''; - if ( BwsModalIsReasonSelected( 'OTHER' ) && '' === userReason ) { + /** + * + * @todo Remove after 01.01.2020 + * This code need to be removed after WordPress letter "[WordPress Plugin Directory] Notice: Captcha by BestWebSoft" from 04.09.2019 by kdo + * + */ + /*if ( BwsModalIsReasonSelected( 'OTHER' ) && '' === userReason ) { return; - } + }*/ var is_anonymous = ( $anonymousFeedback.find( 'input' ).is( ':checked' ) ) ? 0 : 1; @@ -259,7 +270,7 @@ $modal.find( '.bws-modal-reason-input' ).remove(); $modal.find( '.bws-modal-internal-message' ).hide(); - $modal.find( '.bws-modal-button-deactivate' ).text( '' ); + $modal.find( '.bws-modal-button-deactivate' ).text( '' ); BwsModalEnableDeactivateButton(); @@ -275,7 +286,13 @@ if ( BwsModalIsReasonSelected( 'OTHER' ) ) { $modal.find( '.message' ).text( '' ).show(); - BwsModalDisableDeactivateButton(); + /** + * + * @todo Remove after 01.01.2020 + * This code need to be removed after WordPress letter "[WordPress Plugin Directory] Notice: Captcha by BestWebSoft" from 04.09.2019 by kdo + * + */ + //BwsModalDisableDeactivateButton(); } } }); @@ -320,7 +337,13 @@ $modal.find( '.message' ).hide(); - $anonymousFeedback.find( 'input' ).prop( 'checked', true ); + /** + * + * @todo Remove after 01.01.2020 + * This code need to be removed after WordPress letter "[WordPress Plugin Directory] Notice: Captcha by BestWebSoft" from 04.09.2019 by kdo + * + */ + //$anonymousFeedback.find( 'input' ).prop( 'checked', true ); /* Hide, since by default there is no selected reason.*/ $anonymousFeedback.hide(); @@ -342,7 +365,7 @@ function BwsModalShowPanel() { $modal.find( '.bws-modal-panel' ).addClass( 'active' ); /* Update the deactivate button's text */ - $modal.find( '.bws-modal-button-deactivate' ).text( '' ); + $modal.find( '.bws-modal-button-deactivate' ).text( '' ); } })(jQuery);