Plugin Directory

Changeset 2792855


Ignore:
Timestamp:
10/01/2022 01:03:54 PM (3 years ago)
Author:
soupbowl
Message:

Update to version 1.3.2 from GitHub

Location:
simple-smtp
Files:
2 added
2 deleted
26 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-smtp/tags/1.3.2/assets/smtp-config.js

    r2662417 r2792855  
    77 */
    88
    9 const { __, _x, _n, _nx } = wp.i18n;
     9const { __ } = wp.i18n;
    1010
    1111/**
  • simple-smtp/tags/1.3.2/readme.txt

    r2728126 r2792855  
    55Tested up to: 6.0
    66Requires PHP: 7.0
    7 Stable tag: 1.3.1.1
     7Stable tag: 1.3.2
    88License: MIT
    99
     
    9696Yes! [Please see our GitHub repository here](https://github.com/soup-bowl/wp-simple-smtp) for writing issues and/or making pull requests.
    9797
     98One of the easiest aspects to contribute to is the SMTP quick configuration segment. If you wish to maintain this aspect, suggest a new setting, or report broken entries, see the [SMTP quick config wiki page](https://github.com/soup-bowl/wp-simple-smtp/wiki/SMTP-Quick-Config).
     99
    98100== Changelog ==
     101= 1.3.2 =
     102* Added: Mail view now displays from, cc, bcc & the headers stored when logging is enabled.
     103* Fix: Infinite loop when a plugin hooks into the mail routine functions and sends an email ([#116](https://github.com/soup-bowl/wp-simple-smtp/pull/116)).
     104
    99105= 1.3.1.1 =
    100106* Verified working with WordPress 6.0.
  • simple-smtp/tags/1.3.2/src/log/class-log.php

    r2467283 r2792855  
    123123
    124124    /**
     125     * Gets the from details.
     126     *
     127     * @return string|null
     128     */
     129    public function get_from() {
     130        return $this->find_in_headers( 'from' );
     131    }
     132
     133    /**
     134     * Gets the cc recipients.
     135     *
     136     * @return string|null
     137     */
     138    public function get_cc() {
     139        return $this->find_in_headers( 'cc' );
     140    }
     141
     142    /**
     143     * Gets the bcc recipients.
     144     *
     145     * @return string|null
     146     */
     147    public function get_bcc() {
     148        return $this->find_in_headers( 'bcc' );
     149    }
     150
     151    /**
    125152     * Gets the server dispatch headers.
    126153     *
     
    132159
    133160    /**
     161     * Same as get_headers, but the header strings are split.
     162     *
     163     * @param bool $exclude_recipients Remove CC from the list.
     164     * @return array[]
     165     */
     166    public function get_headers_as_array( $exclude_recipients = true ) {
     167        $collection = [];
     168        if ( ! empty( $this->get_headers() ) ) {
     169            foreach ( $this->get_headers() as $header ) {
     170                $expd = explode( ':', $header );
     171                if ( $exclude_recipients && in_array( strtolower( $expd[0] ), [ 'cc', 'bcc', 'from' ], true ) ) {
     172                    continue;
     173                } else {
     174                    $collection[] = $expd;
     175                }
     176            }
     177        }
     178
     179        return $collection;
     180    }
     181
     182    /**
    134183     * The dispatch headers, unsplit.
    135184     *
     
    274323        return $this;
    275324    }
     325
     326    /**
     327     * Searches the header array for a particular header.
     328     *
     329     * @param string $needle Header to look for.
     330     * @return string[]
     331     */
     332    private function find_in_headers( $needle ) {
     333        $collection = [];
     334        foreach ( $this->get_headers_as_array( false ) as $header ) {
     335            if ( strtolower( $header[0] ) === strtolower( $needle ) ) {
     336                $collection[] = $header[1];
     337            }
     338        }
     339
     340        return $collection;
     341    }
     342
     343    /**
     344     * Extracts the email from angled brackets, if the syntax is so.
     345     *
     346     * @param string $input The subject to be inspected.
     347     * @return string Either the extracted email address, or the input is returned untouched.
     348     */
     349    private function strip_email( $input ) {
     350        $stripped = '';
     351        $rc       = preg_match( '/(?<=\<).+?(?=\>)/', $input, $stripped );
     352
     353        if ( 1 === $rc ) {
     354            return $stripped;
     355        } else {
     356            return $input;
     357        }
     358    }
    276359}
  • simple-smtp/tags/1.3.2/src/log/class-logservice.php

    r2662417 r2792855  
    5050                    'read_post'           => 'manage_options',
    5151                ],
     52                'label'        => _x( 'E-mail log entries', 'Post Type General Name', 'simple-smtp' ),
    5253            ]
    5354        );
     
    6162     */
    6263    public function new_log_entry( $log ) {
     64        // Patch fix to stop Sucuri from spamming the log. Should be investigated more.
     65        $dup_check = post_exists( $log->get_subject(), '', current_time( 'mysql' ), $this->post_type );
     66        if ( 0 !== $dup_check ) {
     67            return $dup_check;
     68        }
     69
    6370        $post_id = wp_insert_post(
    6471            [
  • simple-smtp/tags/1.3.2/src/log/class-logtable.php

    r2707522 r2792855  
    1010namespace wpsimplesmtp;
    1111
     12use wpsimplesmtp\Log;
    1213use wpsimplesmtp\LogService;
    1314
     
    6970        if ( ! empty( $entries ) ) {
    7071            foreach ( $entries as $entry ) {
    71                 $recipients  = implode( ', ', $entry->get_recipients() );
    7272                $actions     = $this->render_log_entry_buttons( $entry );
    7373                $date        = gmdate( get_option( 'time_format' ) . ', ' . get_option( 'date_format' ), strtotime( $entry->get_timestamp() ) );
     
    7575                echo wp_kses(
    7676                    '<tr class="' . esc_attr( $row_classes ) . '">
    77                     <td data-colname="' . $labels[0] . '" class="has-row-actions">' . $recipients . $actions . '</td>
     77                    <td data-colname="' . $labels[0] . '" class="has-row-actions">' . $this->display_recipients( $entry ) . $actions . '</td>
    7878                    <td data-colname="' . $labels[1] . '">' . $entry->get_subject() . '</td>
    7979                    <td data-colname="' . $labels[2] . '"><abbr title="' . $entry->get_timestamp() . '">' . $date . '</abbr></td>
     
    223223
    224224    /**
     225     * Compiles a list of recipients (to and cc) into a single string.
     226     *
     227     * @param Log $log_item Log entry item.
     228     * @return string
     229     */
     230    private function display_recipients( $log_item ) {
     231        $recipients = [];
     232
     233        if ( ! empty( $log_item->get_recipients() ) ) {
     234            $recipients[] = esc_html__( 'To', 'simple-smtp' ) . ': ' . implode( ', ', $log_item->get_recipients() );
     235        }
     236
     237        if ( ! empty( $log_item->get_cc() ) ) {
     238            $recipients[] = esc_html__( 'CC', 'simple-smtp' ) . ': ' . implode( ', ', $log_item->get_cc() );
     239        }
     240
     241        if ( ! empty( $log_item->get_bcc() ) ) {
     242            $recipients[] = esc_html__( 'BCC', 'simple-smtp' ) . ': ' . implode( ', ', $log_item->get_bcc() );
     243        }
     244
     245        return wp_kses(
     246            implode( ', ', $recipients ),
     247            $this->allowed_table_html()
     248        );
     249    }
     250
     251    /**
    225252     * Array for kses that allows table-related HTML only.
    226253     *
  • simple-smtp/tags/1.3.2/src/settings/class-quickconfig.php

    r2662417 r2792855  
    1616    /**
    1717     * Returns an array of possible SMTP configuration options.
     18     * Before contributing, please read the wiki page in the link below.
     19     *
     20     * @link https://github.com/soup-bowl/wp-simple-smtp/wiki/SMTP-Quick-Config The resources for the SMTP entries.
    1821     *
    1922     * @return array
  • simple-smtp/tags/1.3.2/vendor/autoload.php

    r2728126 r2792855  
    1010require_once __DIR__ . '/composer/autoload_real.php';
    1111
    12 return ComposerAutoloaderInitfd95603baaa8a9dc86f48b57448493de::getLoader();
     12return ComposerAutoloaderInit15d01ae0d3417ce6d3202b3025ab51cd::getLoader();
  • simple-smtp/tags/1.3.2/vendor/composer/InstalledVersions.php

    r2707522 r2792855  
    2929    /**
    3030     * @var mixed[]|null
    31      * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
     31     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3232     */
    3333    private static $installed;
     
    4040    /**
    4141     * @var array[]
    42      * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     42     * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    4343     */
    4444    private static $installedByVendor = array();
     
    244244    /**
    245245     * @return array
    246      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
     246     * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
    247247     */
    248248    public static function getRootPackage()
     
    258258     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
    259259     * @return array[]
    260      * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
     260     * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
    261261     */
    262262    public static function getRawData()
     
    281281     *
    282282     * @return array[]
    283      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     283     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    284284     */
    285285    public static function getAllRawData()
     
    304304     * @return void
    305305     *
    306      * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
     306     * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
    307307     */
    308308    public static function reload($data)
     
    314314    /**
    315315     * @return array[]
    316      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     316     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    317317     */
    318318    private static function getInstalled()
  • simple-smtp/tags/1.3.2/vendor/composer/autoload_classmap.php

    r2707522 r2792855  
    1515    'wpsimplesmtp\\Mail' => $baseDir . '/src/mail/class-mail.php',
    1616    'wpsimplesmtp\\MailDisable' => $baseDir . '/src/mail/class-maildisable.php',
    17     'wpsimplesmtp\\MailView' => $baseDir . '/src/settings/class-mailview.php',
     17    'wpsimplesmtp\\MailView' => $baseDir . '/src/mail/class-mailview.php',
    1818    'wpsimplesmtp\\Mailtest' => $baseDir . '/src/mail/class-mailtest.php',
    1919    'wpsimplesmtp\\Multisite' => $baseDir . '/src/settings/class-multisite.php',
  • simple-smtp/tags/1.3.2/vendor/composer/autoload_real.php

    r2728126 r2792855  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitfd95603baaa8a9dc86f48b57448493de
     5class ComposerAutoloaderInit15d01ae0d3417ce6d3202b3025ab51cd
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitfd95603baaa8a9dc86f48b57448493de', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit15d01ae0d3417ce6d3202b3025ab51cd', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInitfd95603baaa8a9dc86f48b57448493de', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit15d01ae0d3417ce6d3202b3025ab51cd', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInitfd95603baaa8a9dc86f48b57448493de::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit15d01ae0d3417ce6d3202b3025ab51cd::getInitializer($loader));
    3131
    3232        $loader->register(true);
  • simple-smtp/tags/1.3.2/vendor/composer/autoload_static.php

    r2728126 r2792855  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitfd95603baaa8a9dc86f48b57448493de
     7class ComposerStaticInit15d01ae0d3417ce6d3202b3025ab51cd
    88{
    99    public static $classMap = array (
     
    1616        'wpsimplesmtp\\Mail' => __DIR__ . '/../..' . '/src/mail/class-mail.php',
    1717        'wpsimplesmtp\\MailDisable' => __DIR__ . '/../..' . '/src/mail/class-maildisable.php',
    18         'wpsimplesmtp\\MailView' => __DIR__ . '/../..' . '/src/settings/class-mailview.php',
     18        'wpsimplesmtp\\MailView' => __DIR__ . '/../..' . '/src/mail/class-mailview.php',
    1919        'wpsimplesmtp\\Mailtest' => __DIR__ . '/../..' . '/src/mail/class-mailtest.php',
    2020        'wpsimplesmtp\\Multisite' => __DIR__ . '/../..' . '/src/settings/class-multisite.php',
     
    3131    {
    3232        return \Closure::bind(function () use ($loader) {
    33             $loader->classMap = ComposerStaticInitfd95603baaa8a9dc86f48b57448493de::$classMap;
     33            $loader->classMap = ComposerStaticInit15d01ae0d3417ce6d3202b3025ab51cd::$classMap;
    3434
    3535        }, null, ClassLoader::class);
  • simple-smtp/tags/1.3.2/vendor/composer/installed.php

    r2728126 r2792855  
    11<?php return array(
    22    'root' => array(
     3        'name' => 'soup-bowl/wpsimplesmtp',
    34        'pretty_version' => '1.0.0+no-version-set',
    45        'version' => '1.0.0.0',
     6        'reference' => NULL,
    57        'type' => 'library',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => NULL,
    9         'name' => 'soup-bowl/wpsimplesmtp',
    1010        'dev' => false,
    1111    ),
     
    1414            'pretty_version' => '1.0.0+no-version-set',
    1515            'version' => '1.0.0.0',
     16            'reference' => NULL,
    1617            'type' => 'library',
    1718            'install_path' => __DIR__ . '/../../',
    1819            'aliases' => array(),
    19             'reference' => NULL,
    2020            'dev_requirement' => false,
    2121        ),
  • simple-smtp/tags/1.3.2/wp-simple-smtp.php

    r2728126 r2792855  
    1111 * Description:       Adds mail configuration to WordPress in a simple, standardised plugin.
    1212 * Plugin URI:        https://github.com/soup-bowl/wp-simple-smtp
    13  * Version:           1.3.1.1
     13 * Version:           1.3.2
    1414 * Author:            soup-bowl & Contributors
    1515 * Author URI:        https://github.com/soup-bowl/wp-simple-smtp
     
    9393
    9494            if ( 'index.php' !== $page ) {
    95                 wp_enqueue_script( 'wpss_config', plugin_dir_url( __FILE__ ) . 'assets/smtp-config.js', [ 'jquery', 'wp-i18n' ], '1.3', true );
     95                wp_enqueue_script( 'wpss_config', plugin_dir_url( __FILE__ ) . 'assets/smtp-config.js', [ 'jquery', 'wp-i18n' ], '1.4', true );
    9696                wp_set_script_translations( 'wpss_config', 'simple-smtp' );
    9797
  • simple-smtp/trunk/assets/smtp-config.js

    r2662417 r2792855  
    77 */
    88
    9 const { __, _x, _n, _nx } = wp.i18n;
     9const { __ } = wp.i18n;
    1010
    1111/**
  • simple-smtp/trunk/readme.txt

    r2728126 r2792855  
    55Tested up to: 6.0
    66Requires PHP: 7.0
    7 Stable tag: 1.3.1.1
     7Stable tag: 1.3.2
    88License: MIT
    99
     
    9696Yes! [Please see our GitHub repository here](https://github.com/soup-bowl/wp-simple-smtp) for writing issues and/or making pull requests.
    9797
     98One of the easiest aspects to contribute to is the SMTP quick configuration segment. If you wish to maintain this aspect, suggest a new setting, or report broken entries, see the [SMTP quick config wiki page](https://github.com/soup-bowl/wp-simple-smtp/wiki/SMTP-Quick-Config).
     99
    98100== Changelog ==
     101= 1.3.2 =
     102* Added: Mail view now displays from, cc, bcc & the headers stored when logging is enabled.
     103* Fix: Infinite loop when a plugin hooks into the mail routine functions and sends an email ([#116](https://github.com/soup-bowl/wp-simple-smtp/pull/116)).
     104
    99105= 1.3.1.1 =
    100106* Verified working with WordPress 6.0.
  • simple-smtp/trunk/src/log/class-log.php

    r2467283 r2792855  
    123123
    124124    /**
     125     * Gets the from details.
     126     *
     127     * @return string|null
     128     */
     129    public function get_from() {
     130        return $this->find_in_headers( 'from' );
     131    }
     132
     133    /**
     134     * Gets the cc recipients.
     135     *
     136     * @return string|null
     137     */
     138    public function get_cc() {
     139        return $this->find_in_headers( 'cc' );
     140    }
     141
     142    /**
     143     * Gets the bcc recipients.
     144     *
     145     * @return string|null
     146     */
     147    public function get_bcc() {
     148        return $this->find_in_headers( 'bcc' );
     149    }
     150
     151    /**
    125152     * Gets the server dispatch headers.
    126153     *
     
    132159
    133160    /**
     161     * Same as get_headers, but the header strings are split.
     162     *
     163     * @param bool $exclude_recipients Remove CC from the list.
     164     * @return array[]
     165     */
     166    public function get_headers_as_array( $exclude_recipients = true ) {
     167        $collection = [];
     168        if ( ! empty( $this->get_headers() ) ) {
     169            foreach ( $this->get_headers() as $header ) {
     170                $expd = explode( ':', $header );
     171                if ( $exclude_recipients && in_array( strtolower( $expd[0] ), [ 'cc', 'bcc', 'from' ], true ) ) {
     172                    continue;
     173                } else {
     174                    $collection[] = $expd;
     175                }
     176            }
     177        }
     178
     179        return $collection;
     180    }
     181
     182    /**
    134183     * The dispatch headers, unsplit.
    135184     *
     
    274323        return $this;
    275324    }
     325
     326    /**
     327     * Searches the header array for a particular header.
     328     *
     329     * @param string $needle Header to look for.
     330     * @return string[]
     331     */
     332    private function find_in_headers( $needle ) {
     333        $collection = [];
     334        foreach ( $this->get_headers_as_array( false ) as $header ) {
     335            if ( strtolower( $header[0] ) === strtolower( $needle ) ) {
     336                $collection[] = $header[1];
     337            }
     338        }
     339
     340        return $collection;
     341    }
     342
     343    /**
     344     * Extracts the email from angled brackets, if the syntax is so.
     345     *
     346     * @param string $input The subject to be inspected.
     347     * @return string Either the extracted email address, or the input is returned untouched.
     348     */
     349    private function strip_email( $input ) {
     350        $stripped = '';
     351        $rc       = preg_match( '/(?<=\<).+?(?=\>)/', $input, $stripped );
     352
     353        if ( 1 === $rc ) {
     354            return $stripped;
     355        } else {
     356            return $input;
     357        }
     358    }
    276359}
  • simple-smtp/trunk/src/log/class-logservice.php

    r2662417 r2792855  
    5050                    'read_post'           => 'manage_options',
    5151                ],
     52                'label'        => _x( 'E-mail log entries', 'Post Type General Name', 'simple-smtp' ),
    5253            ]
    5354        );
     
    6162     */
    6263    public function new_log_entry( $log ) {
     64        // Patch fix to stop Sucuri from spamming the log. Should be investigated more.
     65        $dup_check = post_exists( $log->get_subject(), '', current_time( 'mysql' ), $this->post_type );
     66        if ( 0 !== $dup_check ) {
     67            return $dup_check;
     68        }
     69
    6370        $post_id = wp_insert_post(
    6471            [
  • simple-smtp/trunk/src/log/class-logtable.php

    r2707522 r2792855  
    1010namespace wpsimplesmtp;
    1111
     12use wpsimplesmtp\Log;
    1213use wpsimplesmtp\LogService;
    1314
     
    6970        if ( ! empty( $entries ) ) {
    7071            foreach ( $entries as $entry ) {
    71                 $recipients  = implode( ', ', $entry->get_recipients() );
    7272                $actions     = $this->render_log_entry_buttons( $entry );
    7373                $date        = gmdate( get_option( 'time_format' ) . ', ' . get_option( 'date_format' ), strtotime( $entry->get_timestamp() ) );
     
    7575                echo wp_kses(
    7676                    '<tr class="' . esc_attr( $row_classes ) . '">
    77                     <td data-colname="' . $labels[0] . '" class="has-row-actions">' . $recipients . $actions . '</td>
     77                    <td data-colname="' . $labels[0] . '" class="has-row-actions">' . $this->display_recipients( $entry ) . $actions . '</td>
    7878                    <td data-colname="' . $labels[1] . '">' . $entry->get_subject() . '</td>
    7979                    <td data-colname="' . $labels[2] . '"><abbr title="' . $entry->get_timestamp() . '">' . $date . '</abbr></td>
     
    223223
    224224    /**
     225     * Compiles a list of recipients (to and cc) into a single string.
     226     *
     227     * @param Log $log_item Log entry item.
     228     * @return string
     229     */
     230    private function display_recipients( $log_item ) {
     231        $recipients = [];
     232
     233        if ( ! empty( $log_item->get_recipients() ) ) {
     234            $recipients[] = esc_html__( 'To', 'simple-smtp' ) . ': ' . implode( ', ', $log_item->get_recipients() );
     235        }
     236
     237        if ( ! empty( $log_item->get_cc() ) ) {
     238            $recipients[] = esc_html__( 'CC', 'simple-smtp' ) . ': ' . implode( ', ', $log_item->get_cc() );
     239        }
     240
     241        if ( ! empty( $log_item->get_bcc() ) ) {
     242            $recipients[] = esc_html__( 'BCC', 'simple-smtp' ) . ': ' . implode( ', ', $log_item->get_bcc() );
     243        }
     244
     245        return wp_kses(
     246            implode( ', ', $recipients ),
     247            $this->allowed_table_html()
     248        );
     249    }
     250
     251    /**
    225252     * Array for kses that allows table-related HTML only.
    226253     *
  • simple-smtp/trunk/src/settings/class-quickconfig.php

    r2662417 r2792855  
    1616    /**
    1717     * Returns an array of possible SMTP configuration options.
     18     * Before contributing, please read the wiki page in the link below.
     19     *
     20     * @link https://github.com/soup-bowl/wp-simple-smtp/wiki/SMTP-Quick-Config The resources for the SMTP entries.
    1821     *
    1922     * @return array
  • simple-smtp/trunk/vendor/autoload.php

    r2728126 r2792855  
    1010require_once __DIR__ . '/composer/autoload_real.php';
    1111
    12 return ComposerAutoloaderInitfd95603baaa8a9dc86f48b57448493de::getLoader();
     12return ComposerAutoloaderInit15d01ae0d3417ce6d3202b3025ab51cd::getLoader();
  • simple-smtp/trunk/vendor/composer/InstalledVersions.php

    r2707522 r2792855  
    2929    /**
    3030     * @var mixed[]|null
    31      * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
     31     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
    3232     */
    3333    private static $installed;
     
    4040    /**
    4141     * @var array[]
    42      * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     42     * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    4343     */
    4444    private static $installedByVendor = array();
     
    244244    /**
    245245     * @return array
    246      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
     246     * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
    247247     */
    248248    public static function getRootPackage()
     
    258258     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
    259259     * @return array[]
    260      * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
     260     * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
    261261     */
    262262    public static function getRawData()
     
    281281     *
    282282     * @return array[]
    283      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     283     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    284284     */
    285285    public static function getAllRawData()
     
    304304     * @return void
    305305     *
    306      * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
     306     * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
    307307     */
    308308    public static function reload($data)
     
    314314    /**
    315315     * @return array[]
    316      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     316     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    317317     */
    318318    private static function getInstalled()
  • simple-smtp/trunk/vendor/composer/autoload_classmap.php

    r2707522 r2792855  
    1515    'wpsimplesmtp\\Mail' => $baseDir . '/src/mail/class-mail.php',
    1616    'wpsimplesmtp\\MailDisable' => $baseDir . '/src/mail/class-maildisable.php',
    17     'wpsimplesmtp\\MailView' => $baseDir . '/src/settings/class-mailview.php',
     17    'wpsimplesmtp\\MailView' => $baseDir . '/src/mail/class-mailview.php',
    1818    'wpsimplesmtp\\Mailtest' => $baseDir . '/src/mail/class-mailtest.php',
    1919    'wpsimplesmtp\\Multisite' => $baseDir . '/src/settings/class-multisite.php',
  • simple-smtp/trunk/vendor/composer/autoload_real.php

    r2728126 r2792855  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitfd95603baaa8a9dc86f48b57448493de
     5class ComposerAutoloaderInit15d01ae0d3417ce6d3202b3025ab51cd
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInitfd95603baaa8a9dc86f48b57448493de', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit15d01ae0d3417ce6d3202b3025ab51cd', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInitfd95603baaa8a9dc86f48b57448493de', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit15d01ae0d3417ce6d3202b3025ab51cd', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInitfd95603baaa8a9dc86f48b57448493de::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit15d01ae0d3417ce6d3202b3025ab51cd::getInitializer($loader));
    3131
    3232        $loader->register(true);
  • simple-smtp/trunk/vendor/composer/autoload_static.php

    r2728126 r2792855  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitfd95603baaa8a9dc86f48b57448493de
     7class ComposerStaticInit15d01ae0d3417ce6d3202b3025ab51cd
    88{
    99    public static $classMap = array (
     
    1616        'wpsimplesmtp\\Mail' => __DIR__ . '/../..' . '/src/mail/class-mail.php',
    1717        'wpsimplesmtp\\MailDisable' => __DIR__ . '/../..' . '/src/mail/class-maildisable.php',
    18         'wpsimplesmtp\\MailView' => __DIR__ . '/../..' . '/src/settings/class-mailview.php',
     18        'wpsimplesmtp\\MailView' => __DIR__ . '/../..' . '/src/mail/class-mailview.php',
    1919        'wpsimplesmtp\\Mailtest' => __DIR__ . '/../..' . '/src/mail/class-mailtest.php',
    2020        'wpsimplesmtp\\Multisite' => __DIR__ . '/../..' . '/src/settings/class-multisite.php',
     
    3131    {
    3232        return \Closure::bind(function () use ($loader) {
    33             $loader->classMap = ComposerStaticInitfd95603baaa8a9dc86f48b57448493de::$classMap;
     33            $loader->classMap = ComposerStaticInit15d01ae0d3417ce6d3202b3025ab51cd::$classMap;
    3434
    3535        }, null, ClassLoader::class);
  • simple-smtp/trunk/vendor/composer/installed.php

    r2728126 r2792855  
    11<?php return array(
    22    'root' => array(
     3        'name' => 'soup-bowl/wpsimplesmtp',
    34        'pretty_version' => '1.0.0+no-version-set',
    45        'version' => '1.0.0.0',
     6        'reference' => NULL,
    57        'type' => 'library',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => NULL,
    9         'name' => 'soup-bowl/wpsimplesmtp',
    1010        'dev' => false,
    1111    ),
     
    1414            'pretty_version' => '1.0.0+no-version-set',
    1515            'version' => '1.0.0.0',
     16            'reference' => NULL,
    1617            'type' => 'library',
    1718            'install_path' => __DIR__ . '/../../',
    1819            'aliases' => array(),
    19             'reference' => NULL,
    2020            'dev_requirement' => false,
    2121        ),
  • simple-smtp/trunk/wp-simple-smtp.php

    r2728126 r2792855  
    1111 * Description:       Adds mail configuration to WordPress in a simple, standardised plugin.
    1212 * Plugin URI:        https://github.com/soup-bowl/wp-simple-smtp
    13  * Version:           1.3.1.1
     13 * Version:           1.3.2
    1414 * Author:            soup-bowl & Contributors
    1515 * Author URI:        https://github.com/soup-bowl/wp-simple-smtp
     
    9393
    9494            if ( 'index.php' !== $page ) {
    95                 wp_enqueue_script( 'wpss_config', plugin_dir_url( __FILE__ ) . 'assets/smtp-config.js', [ 'jquery', 'wp-i18n' ], '1.3', true );
     95                wp_enqueue_script( 'wpss_config', plugin_dir_url( __FILE__ ) . 'assets/smtp-config.js', [ 'jquery', 'wp-i18n' ], '1.4', true );
    9696                wp_set_script_translations( 'wpss_config', 'simple-smtp' );
    9797
Note: See TracChangeset for help on using the changeset viewer.