diff options
Diffstat (limited to 'plugins/akismet/_inc/akismet.js')
-rw-r--r-- | plugins/akismet/_inc/akismet.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/akismet/_inc/akismet.js b/plugins/akismet/_inc/akismet.js index cac4d57f..b5df186f 100644 --- a/plugins/akismet/_inc/akismet.js +++ b/plugins/akismet/_inc/akismet.js @@ -273,4 +273,13 @@ jQuery( function ( $ ) { var img = new Image(); img.src = akismet_mshot_url( linkUrl ); } -});
\ No newline at end of file + + /** + * Sets the comment form privacy notice display to hide when one clicks Core's dismiss button on the related admin notice. + */ + $( '#akismet-privacy-notice-admin-notice' ).on( 'click', '.notice-dismiss', function(){ + $.ajax({ + url: './options-general.php?page=akismet-key-config&akismet_comment_form_privacy_notice=hide', + }); + }); +}); |