Plugin Directory

Changeset 3380756


Ignore:
Timestamp:
10/19/2025 10:11:47 AM (5 months ago)
Author:
webbuilder143
Message:

1.0.9

  • [Fix] Resolved an issue where CC and BCC email addresses were not extracted from certain headers.
Location:
wb-mail-logger
Files:
27 added
4 edited

Legend:

Unmodified
Added
Removed
  • wb-mail-logger/trunk/admin/class-wb-mail-logger-admin.php

    r3380750 r3380756  
    530530        $bcc = array();
    531531
    532         // Normalize to array.
     532        // Decode JSON if needed.
     533        if ( is_string( $headers ) && (substr(trim($headers), 0, 1) === '[' || substr(trim($headers),0,1)==='{') ) {
     534            $decoded = json_decode( $headers, true );
     535            if ( is_array( $decoded ) ) {
     536                $headers = $decoded;
     537            }
     538        }
     539
     540        // Normalize to array if it's a string.
    533541        if ( ! is_array( $headers ) ) {
    534542            $headers = preg_split( '/\r\n|\r|\n/', trim( $headers ) );
     
    548556        }
    549557
    550         // Remove duplicates and empty values
     558        // Remove duplicates and empty values.
    551559        $cc  = array_values( array_unique( array_filter( $cc ) ) );
    552560        $bcc = array_values( array_unique( array_filter( $bcc ) ) );
  • wb-mail-logger/trunk/includes/class-wb-mail-logger.php

    r3380750 r3380756  
    7373            $this->version = WB_MAIL_LOGGER_VERSION;
    7474        } else {
    75             $this->version = '1.0.8';
     75            $this->version = '1.0.9';
    7676        }
    7777        $this->plugin_name = 'wb-mail-logger';
  • wb-mail-logger/trunk/readme.txt

    r3380750 r3380756  
    66Tested up to: 6.8
    77Requires PHP: 5.6
    8 Stable tag: 1.0.8
     8Stable tag: 1.0.9
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141== Changelog ==
    4242
     43= 1.0.9 =
     44* [Fix] Resolved an issue where CC and BCC email addresses were not extracted from certain headers.
     45
    4346= 1.0.8 =
    4447* Added support to display CC and BCC email addresses on the email detail page.
     
    7376== Upgrade Notice ==
    7477
    75 = 1.0.8 =
    76 * Added support to display CC and BCC email addresses on the email detail page.
     78= 1.0.9 =
     79* [Fix] Resolved an issue where CC and BCC email addresses were not extracted from certain headers.
  • wb-mail-logger/trunk/wb-mail-logger.php

    r3380750 r3380756  
    1111 * Plugin URI:        https://wordpress.org/plugins/wb-mail-logger/
    1212 * Description:       Wb Mail Logger will help to capture all WP emails. So this will help to debug email related issues. And also use full to store a copy of all sent emails.
    13  * Version:           1.0.8
     13 * Version:           1.0.9
    1414 * Author:            Web Builder 143
    1515 * Author URI:        https://profiles.wordpress.org/webbuilder143/
     
    3030 * Rename this for your plugin and update it as you release new versions.
    3131 */
    32 define('WB_MAIL_LOGGER_VERSION', '1.0.8');
     32define('WB_MAIL_LOGGER_VERSION', '1.0.9');
    3333define('WB_MAIL_LOGGER_SETTINGS', 'WB_MAIL_LOGGER_SETTINGS');
    3434
Note: See TracChangeset for help on using the changeset viewer.