Skip to content

Commit

Permalink
Update Akismet Anti-Spam: Spam Protection plugin from 5.2 to 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpoke-bot committed Sep 14, 2023
1 parent 4750831 commit 1cc2fd1
Show file tree
Hide file tree
Showing 15 changed files with 1,502 additions and 329 deletions.
97 changes: 85 additions & 12 deletions wp-content/plugins/akismet/_inc/akismet-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,24 @@
--akismet-color-white: #fff;
--akismet-color-mid-green: #357b49;
--akismet-color-mid-red: #e82c3f;
--akismet-color-light-blue: #256eff;
--akismet-color-notice-light-green: #dbf0e1;
--akismet-color-notice-dark-green: #69bf82;
--akismet-color-notice-light-red: #ffdbde;
--akismet-color-notice-dark-red: #ff6676;
}

#akismet-plugin-container a {
color: var(--akismet-color-mid-green);
}

#akismet-plugin-container button:focus-visible,
#akismet-plugin-container input:focus-visible {
border: 0;
box-shadow: none;
outline: 2px solid var(--akismet-color-light-blue);
}

.akismet-masthead {
box-shadow: none;
}
Expand Down Expand Up @@ -113,15 +125,15 @@
padding: 1em;
}

.akismet-box {
.akismet-box {
border: 0;
}

.akismet-box,
.akismet-card {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 2px rgba(0, 0, 0, 0.16);
border-radius: 8px;
overflow: hidden;
overflow: hidden;
}

.akismet-card {
Expand Down Expand Up @@ -241,45 +253,106 @@
margin-top: 2px;
}

.akismet-alert.akismet-active {
background-color: var(--akismet-color-mid-green);
.akismet-alert {
border-left: 8px solid;
border-radius: 8px;
margin: 20px 0;
padding: 0.2em 1em;
}

.akismet-alert__heading {
font-size: 1em;
}

.akismet-alert.is-good {
background-color: var(--akismet-color-notice-light-green);
border-left-color: var(--akismet-color-notice-dark-green);
}

.akismet-alert.is-neutral {
background-color: var(--akismet-color-white);
border-left-color: var(--akismet-color-dark-grey);
}

.akismet-alert.is-bad {
background-color: var(--akismet-color-notice-light-red);
border-left-color: var(--akismet-color-notice-dark-red);
}

#akismet-plugin-container .akismet-alert.is-good a,
#akismet-plugin-container .akismet-alert.is-bad a {
/* For better contrast - green isn't great */
color: var(--akismet-color-grey-80);
}

/* Setup - API key input */
.akismet-enter-api-key-box {
margin: 1.5rem 0;
}

.akismet-enter-api-key-box__reveal {
background: none;
border: 0;
color: var(--akismet-color-mid-green);
cursor: pointer;
text-decoration: underline;
}

.akismet-alert.akismet-critical {
background-color: var(--akismet-color-mid-red);
.akismet-enter-api-key-box__form-wrapper {
display: none;
margin-top: 1.5rem;
}

.akismet-enter-api-key-box__input-wrapper {
box-sizing: border-box;
display: flex;
flex-wrap: nowrap;
padding: 0 1.5rem;
width: 100%;
}

.akismet-enter-api-key-box__key-input {
flex-grow: 1;
margin-right: 1rem;
}

h3.akismet-enter-api-key-box__header {
padding-top: 0;
padding-bottom: 1em;
text-align: left;
}

@media screen and (max-width: 782px) {
.akismet-new-snapshot__list {
display: block;
}

.akismet-new-snapshot__number {
float: right;
font-size: 20px;
font-weight: 500;
margin-top: -16px;
}

.akismet-new-snapshot__header {
font-size: 14px;
font-weight: 500;
}

.akismet-new-snapshot__text {
font-size: 12px;
}

.akismet-settings__row input[type="checkbox"],
.akismet-settings__row input[type="radio"] {
height: 24px;
width: 24px;
}

.akismet-settings__row-label-text {
padding-left: 0.8em;
}

.akismet-settings__row input[type="checkbox"],
.akismet-settings__row input[type="radio"] {
margin-top: 0;
Expand Down
27 changes: 6 additions & 21 deletions wp-content/plugins/akismet/_inc/akismet-admin.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
jQuery( function ( $ ) {
$( document ).ready(function() {
// Main settings form - enable submit button when something in the form is changed
var submitButton = $( '#akismet-settings-form #submit' );

submitButton.prop( 'disabled', true );

$( '#akismet-settings-form input' ).change( function() {
submitButton.prop( 'disabled', false );
} );

$( '#akismet-settings-form input[type="text"]' ).keyup( function() {
submitButton.prop( 'disabled', false );
} );

// Prevent aggressive iframe caching in Firefox
var statsIframe = document.getElementById( 'stats-iframe' );
if ( statsIframe ) {
statsIframe.contentWindow.location.href = statsIframe.src;
}
});
document.addEventListener( 'DOMContentLoaded', function() {
// Prevent aggressive iframe caching in Firefox
var statsIframe = document.getElementById( 'stats-iframe' );
if ( statsIframe ) {
statsIframe.contentWindow.location.href = statsIframe.src;
}
} );
57 changes: 8 additions & 49 deletions wp-content/plugins/akismet/_inc/akismet.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,34 +99,6 @@ table.comments td.comment p a:after {
font-size: 120%;
margin-top: .5rem;
}
.akismet-alert {
padding: 0.4em 1em 1.4em 1em;
box-sizing: border-box;
box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
}

.akismet-alert h3.akismet-key-status {
color: #fff;
margin: 1em 0 0.5em 0;
}

.akismet-alert p.akismet-key-status {
font-size: 24px;
}

.akismet-alert p.akismet-description {
color:#fff;
font-size: 14px;
margin: 0 0;
font-style: normal;
}

.akismet-alert p.akismet-description a,
.akismet-alert p.akismet-description a,
.akismet-alert p.akismet-description a,
.akismet-alert p.akismet-description a {
color: #fff;
}

.akismet-new-snapshot {
margin-top: 1em;
Expand All @@ -141,11 +113,6 @@ table.comments td.comment p a:after {
margin: 0;
}

.new-snapspot ul {
font-size: 12px;
width: 100%;
}

.akismet-new-snapshot ul li {
color: #999;
font-size: 11px;
Expand Down Expand Up @@ -289,7 +256,7 @@ table.comments td.comment p a:after {
.akismet_activate .aa_a {
display: none;
}

.akismet_activate .aa_button_container {
width: 100%;
}
Expand All @@ -305,7 +272,7 @@ table.comments td.comment p a:after {
#akismet_setup_prompt .aa_description {
display: none;
}

.akismet_activate {
min-width: 0;
}
Expand Down Expand Up @@ -478,7 +445,7 @@ table.comments td.comment p a:after {
width: 54px;
height: 54px;
}

.akismet-box p:after {
content: ".";
display: block;
Expand Down Expand Up @@ -522,15 +489,6 @@ table.comments td.comment p a:after {
text-align: center;
}

.akismet-enter-api-key-box {
margin: 1.5rem 0;
}

.akismet-box .enter-api-key {
display: none;
margin-top: 1.5rem;
}

.akismet-box .akismet-toggles {
margin: 3rem 0;
}
Expand All @@ -539,10 +497,6 @@ table.comments td.comment p a:after {
display: none;
}

.akismet-box .enter-api-key p {
padding: 0 1.5rem;
}

.akismet-button, .akismet-button:hover, .akismet-button:visited {
background: white;
border-color: #c8d7e1;
Expand Down Expand Up @@ -670,9 +624,14 @@ div.error.akismet-usage-limit-alert {
}

.akismet-usage-limit-alert .akismet-usage-limit-cta {
border-color: none;
text-align: right;
}

#akismet-plugin-container .akismet-usage-limit-cta a {
color: #d63638;
}

@media (max-width: 550px) {
div.error.akismet-usage-limit-alert {
display: block;
Expand Down
4 changes: 2 additions & 2 deletions wp-content/plugins/akismet/_inc/akismet.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,10 @@ jQuery( function ( $ ) {
/**
* Shows the Enter API key form
*/
$( '.akismet-enter-api-key-box a' ).on( 'click', function ( e ) {
$( '.akismet-enter-api-key-box__reveal' ).on( 'click', function ( e ) {
e.preventDefault();

var div = $( '.enter-api-key' );
var div = $( '.akismet-enter-api-key-box__form-wrapper' );
div.show( 500 );
div.find( 'input[name=key]' ).focus();

Expand Down
Loading

0 comments on commit 1cc2fd1

Please sign in to comment.