summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-06-08 10:07:37 -0400
committerAnthony G. Basile <blueness@gentoo.org>2018-06-08 10:07:37 -0400
commit7ca0ec095e0c737d2f181e015cc01b1bd9463f4c (patch)
tree4aca64353e6d7ebbc64ffbd4cd73a20e227bfeca /plugins/akismet/_inc/akismet.js
parentUpdate twentyfourteen 2.2 (diff)
downloadblogs-gentoo-7ca0ec095e0c737d2f181e015cc01b1bd9463f4c.tar.gz
blogs-gentoo-7ca0ec095e0c737d2f181e015cc01b1bd9463f4c.tar.bz2
blogs-gentoo-7ca0ec095e0c737d2f181e015cc01b1bd9463f4c.zip
Update akismet 4.0.7
Diffstat (limited to 'plugins/akismet/_inc/akismet.js')
-rw-r--r--plugins/akismet/_inc/akismet.js11
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',
+ });
+ });
+});