From f8aa007100919a32546d667b7621e2bb22eadee2 Mon Sep 17 00:00:00 2001 From: mattyrob Date: Tue, 6 Jun 2023 19:59:49 +0100 Subject: [PATCH] Update, see description * HTML code modernisation * Correct Premium link used in documentation * Security hardening * Add Premium URL header --- ChangeLog.txt | 7 ++ ReadMe.txt | 4 +- admin/send-email.php | 8 +- admin/settings.php | 112 +++++++++++++-------------- admin/subscribers.php | 61 ++++++++------- classes/class-s2-admin.php | 58 +++++++------- classes/class-s2-ajax.php | 2 + classes/class-s2-core.php | 19 +++-- classes/class-s2-counter-widget.php | 12 +-- classes/class-s2-form-widget.php | 20 ++--- classes/class-s2-forms.php | 43 ++++++----- classes/class-s2-frontend.php | 94 ++++++++++++++++++----- classes/class-s2-list-table.php | 70 +++++++++++------ classes/class-s2-multisite.php | 4 +- include/s2-colorpicker.js | 10 +-- include/s2-dismiss.js | 1 - include/s2-user-admin.css | 113 +++++++++++++--------------- subscribe2.php | 1 + tinymce/css/content.css | 17 ++--- tinymce/editor-plugin4.js | 4 +- 20 files changed, 384 insertions(+), 276 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 51b1f90..3a84513 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,10 @@ += 11.8 = + +* HTML code modernisation +* Correct Premium link used in documentation +* Security hardening +* Add Premium URL header + = 11.7 = * Ensure Editor button is added if enabled diff --git a/ReadMe.txt b/ReadMe.txt index 713e1d5..6b457b1 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -3,7 +3,7 @@ Contributors: MattyRob Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2387904 Tags: posts, subscription, email, subscribe, notify, notification Requires at least: 1.0.0 -Tested up to: 1.2 +Tested up to: 1.5.3 License: GPLv3 Sends a list of subscribers an email notification when you publish new posts. @@ -29,7 +29,7 @@ The format of the email can also be customised for per-post notifications, Subsc * HTML excerpt (Registered Users only). * HTML full post (Registered Users only). -If you want to send full content HTML emails to Public Subscribers too then upgrade to [Subscribe2 HTML](http://semperplugins.com/plugins/subscribe2-html/). +If you want to send full content HTML emails to Public Subscribers too then upgrade to [Subscribe2 HTML](https://checkout.freemius.com/mode/dialog/plugin/5502/plan/8921/). == Installation == diff --git a/admin/send-email.php b/admin/send-email.php index 3b5865c..60677d8 100644 --- a/admin/send-email.php +++ b/admin/send-email.php @@ -117,15 +117,15 @@ if ( ! isset( $_POST['content'] ) ) { $body = ''; } -echo '



'; +echo '



'; echo ''; echo "

\r\n"; -echo '\r\n"; +echo '\r\n"; echo "

\r\n"; echo esc_html__( 'Recipients:', 'subscribe2-for-cp' ) . ' '; s2cp()->display_subscriber_dropdown( apply_filters( 's2_subscriber_dropdown_default', 'registered' ), false ); -echo ''; -echo '

 

'; +echo ''; +echo '

 

'; echo '' . "\r\n"; echo '

 

'; ?> diff --git a/admin/settings.php b/admin/settings.php index e47160e..a4ac94f 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -191,8 +191,8 @@ wp_nonce_field( 'subscribe2-options_subscribers' . S2VERSION ); -echo '' . "\r\n"; -echo ''; +echo '' . "\r\n"; +echo ''; switch ( $current_tab ) { case 'email': @@ -203,30 +203,30 @@ echo '' . esc_html( s2cp()->subscribe2_options['bcclimit'] ) . ' '; echo '' . esc_html__( 'Edit', 'subscribe2-for-cp' ) . '' . "\r\n"; echo '' . "\r\n"; - echo '' . "\r\n"; + echo '' . "\r\n"; echo '' . esc_html__( 'Update', 'subscribe2-for-cp' ) . '' . "\r\n"; echo '' . esc_html__( 'Revert', 'subscribe2-for-cp' ) . '' . "\n"; echo '

' . esc_html__( 'Send Admins notifications for new', 'subscribe2-for-cp' ) . ': '; - echo '