summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/akismet/_inc')
-rw-r--r--plugins/akismet/_inc/akismet.css6
-rw-r--r--plugins/akismet/_inc/akismet.js11
2 files changed, 15 insertions, 2 deletions
diff --git a/plugins/akismet/_inc/akismet.css b/plugins/akismet/_inc/akismet.css
index 85f3c5ec..bf40fb14 100644
--- a/plugins/akismet/_inc/akismet.css
+++ b/plugins/akismet/_inc/akismet.css
@@ -417,6 +417,10 @@ table.comments td.comment p a:after {
padding: 1.5rem;
}
+.akismet-lower .notice {
+ margin-bottom: 2rem;
+}
+
.akismet-card {
margin-top: 1rem;
margin-bottom: 0;
@@ -583,4 +587,4 @@ table.comments td.comment p a:after {
.akismet-section-header__actions {
line-height: 1.75rem;
-} \ No newline at end of file
+}
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',
+ });
+ });
+});