Plugin Directory

Changeset 3353293


Ignore:
Timestamp:
08/31/2025 09:51:35 AM (6 months ago)
Author:
voltronik
Message:

1.9.9.1 release

Location:
bnfw
Files:
53 added
3 edited

Legend:

Unmodified
Added
Removed
  • bnfw/trunk/README.txt

    r3350070 r3353293  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: "1.9.9"
     8Stable tag: "1.9.9.1"
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    250250== Changelog ==
    251251
     252= 1.9.9.1 - 31st August 2025 =
     253* Fixed: User shortcodes in the last update weren't using the correct data.
     254
    252255= 1.9.9 - 26th August 2025 =
    253256* Fixed: The `[email_change_confirmation_link]` shortcode link now respects being overridden correctly.
  • bnfw/trunk/bnfw.php

    r3350070 r3353293  
    44 * Plugin URI: https://wordpress.org/plugins/bnfw/
    55 * Description: Supercharge your WordPress notifications using a WYSIWYG editor and shortcodes. Default and new notifications available. Add more power with Add-ons.
    6  * Version: 1.9.9
     6 * Version: 1.9.9.1
    77 * Requires at least: 4.8
    88 * Requires PHP: 7.4
     
    4141         * @var string
    4242         */
    43         public $bnfw_version = '1.9.9';
     43        public $bnfw_version = '1.9.9.1';
    4444        /**
    4545         * Class Constructor.
  • bnfw/trunk/includes/engine/class-bnfw-engine.php

    r3350070 r3353293  
    104104                    foreach ( $emails['to'] as $email ) {
    105105
    106                         $subject = wp_specialchars_decode( stripslashes( $this->handle_global_user_shortcodes( $subject, $email ) ) );
    107                         $message = $this->handle_global_user_shortcodes( $message, $email );
     106                        $prepare_subject = $subject; // Assign original content.
     107                        $prepare_message = $message; // Assign original content.
     108                        $prepare_subject = wp_specialchars_decode( stripslashes( $this->handle_global_user_shortcodes( $prepare_subject, $email ) ) );
     109                        $prepare_message = $this->handle_global_user_shortcodes( $prepare_message, $email );
    108110
    109111                        /**
     
    114116                         * @param string $email Email of user.
    115117                         * @param array $setting Notification settings.
    116                          * @param string $subject Notification subject.
    117                          * @param string $message Notification content.
     118                         * @param string $prepare_subject Notification subject.
     119                         * @param string $prepare_message Notification content.
    118120                         * @param string|string[] $headers Additional headers.
    119121                         *
    120122                         * @since 1.9.9
    121123                         */
    122                         if ( apply_filters( 'bnfw_can_send_user_locale_email', true, $id, $email, $setting, $subject, $message, $headers ) ) {
    123                             wp_mail( $email, $subject, $message, $headers );
     124                        if ( apply_filters( 'bnfw_can_send_user_locale_email', true, $id, $email, $setting, $prepare_subject, $prepare_message, $headers ) ) {
     125                            wp_mail( $email, $prepare_subject, $prepare_message, $headers );
    124126                        }
    125127                    }
Note: See TracChangeset for help on using the changeset viewer.