Plugin Directory

Changeset 2993727


Ignore:
Timestamp:
11/10/2023 07:39:09 AM (2 years ago)
Author:
sendsmaily
Message:

Release 3.1.2, see readme.txt for the changelog.

Location:
smaily-for-wp
Files:
26 edited
1 copied

Legend:

Unmodified
Added
Removed
  • smaily-for-wp/tags/3.1.2/admin/class-smaily-for-wp-admin.php

    r2873649 r2993727  
    6868        wp_register_script( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/js/smaily-for-wp-admin.js', array( 'jquery' ), $this->version, false );
    6969        wp_enqueue_script( $this->plugin_name );
    70         wp_localize_script( $this->plugin_name, 'smaily_for_wp', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
     70        wp_add_inline_script( $this->plugin_name, 'var smaily_for_wp = ' . json_encode( array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ) . ';' );
    7171    }
    7272
     
    121121        );
    122122
    123         wp_localize_script(
    124             $this->plugin_name,
    125             'autoresponders',
    126             json_encode( $autoresponders )
    127         );
     123        wp_add_inline_script( $this->plugin_name, 'var autoresponders = ' . json_encode( $autoresponders ) . ';' );
    128124    }
    129125
  • smaily-for-wp/tags/3.1.2/includes/class-smaily-for-wp-block.php

    r2873649 r2993727  
    5353
    5454    /**
     55     * Register block.
     56     *
     57     * @since  3.1.2
     58     * @access public
     59     */
     60    public function init() {
     61        register_block_type(
     62            SMLY4WP_PLUGIN_PATH . '/blocks',
     63            array(
     64                'render_callback' => array( $this, 'render' ),
     65            )
     66        );
     67    }
     68
     69    /**
    5570     * Render Gutenberg block using the widget shortcode renderer.
    5671     *
  • smaily-for-wp/tags/3.1.2/includes/class-smaily-for-wp.php

    r2873649 r2993727  
    6666        $this->version     = SMLY4WP_PLUGIN_VERSION;
    6767        $this->plugin_name = 'smaily-for-wp';
     68
    6869        $this->load_dependencies();
    6970        $this->set_locale();
    7071        $this->define_lifecycle_hooks();
    71         $this->init_blocks();
     72        $this->register_blocks();
    7273        $this->define_admin_hooks();
    7374        $this->define_public_hooks();
     
    130131     * @access private
    131132     */
    132     private function init_blocks() {
     133    private function register_blocks() {
    133134        $plugin_block = new Smaily_For_WP_Block( $this->options, $this->get_plugin_name(), $this->get_version() );
    134 
    135         register_block_type(
    136             SMLY4WP_PLUGIN_PATH . '/blocks',
    137             array(
    138                 'render_callback' => array( $plugin_block, 'render' ),
    139             )
    140         );
     135        $this->loader->add_action( 'init', $plugin_block, 'init' );
    141136    }
    142137
  • smaily-for-wp/tags/3.1.2/lang/smaily-for-wp-et.po

    r2887377 r2993727  
    22msgstr ""
    33"Project-Id-Version: Smaily for WP\n"
    4 "POT-Creation-Date: 2023-03-27 10:00+0300\n"
    5 "PO-Revision-Date: 2023-03-27 10:00+0300\n"
     4"POT-Creation-Date: 2023-11-10 09:31+0200\n"
     5"PO-Revision-Date: 2023-11-10 09:31+0200\n"
    66"Last-Translator: Smaily <[email protected]>\n"
    77"Language-Team: Smaily <[email protected]>\n"
     
    1111"Content-Transfer-Encoding: 8bit\n"
    1212"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    13 "X-Generator: Poedit 3.2.2\n"
     13"X-Generator: Poedit 3.4.1\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-KeywordsList: __;_e;_n:1,2;_n_noop:1,2;_x:1,2c;_nx:4c,1,2;"
     
    2323msgstr "Ilma automaatvastajata vorm"
    2424
    25 #: admin/class-smaily-for-wp-admin.php:221
     25#: admin/class-smaily-for-wp-admin.php:217
    2626msgid "Please enter subdomain!"
    2727msgstr "Palun sisesta alamdomeen!"
    2828
    29 #: admin/class-smaily-for-wp-admin.php:225
     29#: admin/class-smaily-for-wp-admin.php:221
    3030msgid "Please enter username!"
    3131msgstr "Palun sisesta kasutajatunnus!"
    3232
    33 #: admin/class-smaily-for-wp-admin.php:229
     33#: admin/class-smaily-for-wp-admin.php:225
    3434msgid "Please enter password!"
    3535msgstr "Palun sisesta parool!"
    3636
    37 #: admin/class-smaily-for-wp-admin.php:245
     37#: admin/class-smaily-for-wp-admin.php:241
    3838msgid "Wrong credentials"
    3939msgstr "Valed autentimise tunnused"
    4040
    41 #: admin/class-smaily-for-wp-admin.php:250
     41#: admin/class-smaily-for-wp-admin.php:246
    4242msgid "Error in subdomain"
    4343msgstr "Viga alamdomeenis"
    4444
    45 #: admin/class-smaily-for-wp-admin.php:260
     45#: admin/class-smaily-for-wp-admin.php:256
    4646msgid "Something went wrong with request to Smaily"
    4747msgstr "Ilmnes probleem Smaily-ga ühendamisel"
    4848
    49 #: admin/class-smaily-for-wp-admin.php:269
     49#: admin/class-smaily-for-wp-admin.php:265
    5050msgid "Credentials validated."
    5151msgstr "Autentimise tunnused valideeritud."
    5252
    53 #: admin/class-smaily-for-wp-admin.php:286
     53#: admin/class-smaily-for-wp-admin.php:282
    5454msgid "Credentials removed."
    5555msgstr "Autentimise tunnused eemaldatud."
    5656
    57 #: admin/class-smaily-for-wp-admin.php:303
     57#: admin/class-smaily-for-wp-admin.php:299
    5858msgid "Newsletter subscription form reset to default."
    5959msgstr "Liitumisvormi kood taasloodud."
    6060
    61 #: admin/class-smaily-for-wp-admin.php:342
     61#: admin/class-smaily-for-wp-admin.php:338
    6262msgid "Changes saved."
    6363msgstr "Salvestatud."
  • smaily-for-wp/tags/3.1.2/migrations/upgrade-3-0-0.php

    r2873649 r2993727  
    1616    global $wpdb;
    1717
    18     if ( $wpdb->get_var( "SHOW TABLES LIKE {$wpdb->prefix}smaily_config" ) === $wpdb->prefix . 'smaily_config' ) {
     18    if ( $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->prefix . 'smaily_config' ) ) === $wpdb->prefix . 'smaily_config' ) {
    1919        $config = $wpdb->get_row( "SELECT * FROM {$wpdb->prefix}smaily_config LIMIT 1", ARRAY_A );
    2020        // Get saved autoresponder ID.
  • smaily-for-wp/tags/3.1.2/readme.txt

    r2887377 r2993727  
    44Requires PHP: 5.6
    55Requires at least: 4.0
    6 Stable tag: 3.1.1
     6Stable tag: 3.1.2
    77Tags: widget, plugin, sidebar, api, mail, email, marketing, smaily
    8 Tested up to: 6.2
     8Tested up to: 6.4
    99
    1010Smaily newsletter subscription plugin for WordPress
     
    7676
    7777== Changelog ==
     78
     79= 3.1.2 =
     80- Resolve plugin notices on plugin activation and page editing
    7881
    7982= 3.1.1 =
  • smaily-for-wp/tags/3.1.2/smaily-for-wp.php

    r2887377 r2993727  
    1010 * Text Domain:       smaily-for-wp
    1111 * Description:       Smaily newsletter subscription form.
    12  * Version:           3.1.1
     12 * Version:           3.1.2
    1313 * Author:            Sendsmaily LLC
    1414 * Author URI:        https://smaily.com
     
    2525 * Current plugin version.
    2626 */
    27 define( 'SMLY4WP_PLUGIN_VERSION', '3.1.1' );
     27define( 'SMLY4WP_PLUGIN_VERSION', '3.1.2' );
    2828
    2929/**
  • smaily-for-wp/tags/3.1.2/vendor/autoload.php

    r2887377 r2993727  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit51647f8c02733dabf2b3c873ad223d64::getLoader();
     25return ComposerAutoloaderInit185d16ccea71d6c4feacf865d40f5b9a::getLoader();
  • smaily-for-wp/tags/3.1.2/vendor/composer/ClassLoader.php

    r2873649 r2993727  
    4646    private static $includeFile;
    4747
    48     /** @var ?string */
     48    /** @var string|null */
    4949    private $vendorDir;
    5050
    5151    // PSR-4
    5252    /**
    53      * @var array[]
    54      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5554     */
    5655    private $prefixLengthsPsr4 = array();
    5756    /**
    58      * @var array[]
    59      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    6058     */
    6159    private $prefixDirsPsr4 = array();
    6260    /**
    63      * @var array[]
    64      * @psalm-var array<string, string>
     61     * @var list<string>
    6562     */
    6663    private $fallbackDirsPsr4 = array();
     
    6865    // PSR-0
    6966    /**
    70      * @var array[]
    71      * @psalm-var array<string, array<string, string[]>>
     67     * List of PSR-0 prefixes
     68     *
     69     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
     70     *
     71     * @var array<string, array<string, list<string>>>
    7272     */
    7373    private $prefixesPsr0 = array();
    7474    /**
    75      * @var array[]
    76      * @psalm-var array<string, string>
     75     * @var list<string>
    7776     */
    7877    private $fallbackDirsPsr0 = array();
     
    8281
    8382    /**
    84      * @var string[]
    85      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8684     */
    8785    private $classMap = array();
     
    9189
    9290    /**
    93      * @var bool[]
    94      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9592     */
    9693    private $missingClasses = array();
    9794
    98     /** @var ?string */
     95    /** @var string|null */
    9996    private $apcuPrefix;
    10097
    10198    /**
    102      * @var self[]
     99     * @var array<string, self>
    103100     */
    104101    private static $registeredLoaders = array();
    105102
    106103    /**
    107      * @param ?string $vendorDir
     104     * @param string|null $vendorDir
    108105     */
    109106    public function __construct($vendorDir = null)
     
    114111
    115112    /**
    116      * @return string[]
     113     * @return array<string, list<string>>
    117114     */
    118115    public function getPrefixes()
     
    126123
    127124    /**
    128      * @return array[]
    129      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    130126     */
    131127    public function getPrefixesPsr4()
     
    135131
    136132    /**
    137      * @return array[]
    138      * @psalm-return array<string, string>
     133     * @return list<string>
    139134     */
    140135    public function getFallbackDirs()
     
    144139
    145140    /**
    146      * @return array[]
    147      * @psalm-return array<string, string>
     141     * @return list<string>
    148142     */
    149143    public function getFallbackDirsPsr4()
     
    153147
    154148    /**
    155      * @return string[] Array of classname => path
    156      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    157150     */
    158151    public function getClassMap()
     
    162155
    163156    /**
    164      * @param string[] $classMap Class to filename map
    165      * @psalm-param array<string, string> $classMap
     157     * @param array<string, string> $classMap Class to filename map
    166158     *
    167159     * @return void
     
    180172     * appending or prepending to the ones previously set for this prefix.
    181173     *
    182      * @param string          $prefix  The prefix
    183      * @param string[]|string $paths   The PSR-0 root directories
    184      * @param bool            $prepend Whether to prepend the directories
     174     * @param string              $prefix  The prefix
     175     * @param list<string>|string $paths   The PSR-0 root directories
     176     * @param bool                $prepend Whether to prepend the directories
    185177     *
    186178     * @return void
     
    188180    public function add($prefix, $paths, $prepend = false)
    189181    {
     182        $paths = (array) $paths;
    190183        if (!$prefix) {
    191184            if ($prepend) {
    192185                $this->fallbackDirsPsr0 = array_merge(
    193                     (array) $paths,
     186                    $paths,
    194187                    $this->fallbackDirsPsr0
    195188                );
     
    197190                $this->fallbackDirsPsr0 = array_merge(
    198191                    $this->fallbackDirsPsr0,
    199                     (array) $paths
     192                    $paths
    200193                );
    201194            }
     
    206199        $first = $prefix[0];
    207200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    208             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    209202
    210203            return;
     
    212205        if ($prepend) {
    213206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    214                 (array) $paths,
     207                $paths,
    215208                $this->prefixesPsr0[$first][$prefix]
    216209            );
     
    218211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    219212                $this->prefixesPsr0[$first][$prefix],
    220                 (array) $paths
     213                $paths
    221214            );
    222215        }
     
    227220     * appending or prepending to the ones previously set for this namespace.
    228221     *
    229      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    230      * @param string[]|string $paths   The PSR-4 base directories
    231      * @param bool            $prepend Whether to prepend the directories
     222     * @param string              $prefix  The prefix/namespace, with trailing '\\'
     223     * @param list<string>|string $paths   The PSR-4 base directories
     224     * @param bool                $prepend Whether to prepend the directories
    232225     *
    233226     * @throws \InvalidArgumentException
     
    237230    public function addPsr4($prefix, $paths, $prepend = false)
    238231    {
     232        $paths = (array) $paths;
    239233        if (!$prefix) {
    240234            // Register directories for the root namespace.
    241235            if ($prepend) {
    242236                $this->fallbackDirsPsr4 = array_merge(
    243                     (array) $paths,
     237                    $paths,
    244238                    $this->fallbackDirsPsr4
    245239                );
     
    247241                $this->fallbackDirsPsr4 = array_merge(
    248242                    $this->fallbackDirsPsr4,
    249                     (array) $paths
     243                    $paths
    250244                );
    251245            }
     
    257251            }
    258252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    259             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    260254        } elseif ($prepend) {
    261255            // Prepend directories for an already registered namespace.
    262256            $this->prefixDirsPsr4[$prefix] = array_merge(
    263                 (array) $paths,
     257                $paths,
    264258                $this->prefixDirsPsr4[$prefix]
    265259            );
     
    268262            $this->prefixDirsPsr4[$prefix] = array_merge(
    269263                $this->prefixDirsPsr4[$prefix],
    270                 (array) $paths
     264                $paths
    271265            );
    272266        }
     
    277271     * replacing any others previously set for this prefix.
    278272     *
    279      * @param string          $prefix The prefix
    280      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string              $prefix The prefix
     274     * @param list<string>|string $paths  The PSR-0 base directories
    281275     *
    282276     * @return void
     
    295289     * replacing any others previously set for this namespace.
    296290     *
    297      * @param string          $prefix The prefix/namespace, with trailing '\\'
    298      * @param string[]|string $paths  The PSR-4 base directories
     291     * @param string              $prefix The prefix/namespace, with trailing '\\'
     292     * @param list<string>|string $paths  The PSR-4 base directories
    299293     *
    300294     * @throws \InvalidArgumentException
     
    482476
    483477    /**
    484      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    485      *
    486      * @return self[]
     478     * Returns the currently registered loaders keyed by their corresponding vendor directories.
     479     *
     480     * @return array<string, self>
    487481     */
    488482    public static function getRegisteredLoaders()
  • smaily-for-wp/tags/3.1.2/vendor/composer/autoload_real.php

    r2887377 r2993727  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit51647f8c02733dabf2b3c873ad223d64
     5class ComposerAutoloaderInit185d16ccea71d6c4feacf865d40f5b9a
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit51647f8c02733dabf2b3c873ad223d64', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit185d16ccea71d6c4feacf865d40f5b9a', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit51647f8c02733dabf2b3c873ad223d64', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit185d16ccea71d6c4feacf865d40f5b9a', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInit51647f8c02733dabf2b3c873ad223d64::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit185d16ccea71d6c4feacf865d40f5b9a::getInitializer($loader));
    3131
    3232        $loader->register(true);
  • smaily-for-wp/tags/3.1.2/vendor/composer/autoload_static.php

    r2887377 r2993727  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit51647f8c02733dabf2b3c873ad223d64
     7class ComposerStaticInit185d16ccea71d6c4feacf865d40f5b9a
    88{
    99    public static $classMap = array (
     
    1414    {
    1515        return \Closure::bind(function () use ($loader) {
    16             $loader->classMap = ComposerStaticInit51647f8c02733dabf2b3c873ad223d64::$classMap;
     16            $loader->classMap = ComposerStaticInit185d16ccea71d6c4feacf865d40f5b9a::$classMap;
    1717
    1818        }, null, ClassLoader::class);
  • smaily-for-wp/tags/3.1.2/vendor/composer/installed.php

    r2887377 r2993727  
    22    'root' => array(
    33        'name' => 'smaily/smaily_for_wp',
    4         'pretty_version' => '3.1.1',
    5         'version' => '3.1.1.0',
    6         'reference' => '79692cc8c8cf433a89e432f81da233b2463a9317',
     4        'pretty_version' => '3.1.2',
     5        'version' => '3.1.2.0',
     6        'reference' => '1f468101c333fae4d27b7f79f08fde4de3f35a09',
    77        'type' => 'plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'smaily/smaily_for_wp' => array(
    14             'pretty_version' => '3.1.1',
    15             'version' => '3.1.1.0',
    16             'reference' => '79692cc8c8cf433a89e432f81da233b2463a9317',
     14            'pretty_version' => '3.1.2',
     15            'version' => '3.1.2.0',
     16            'reference' => '1f468101c333fae4d27b7f79f08fde4de3f35a09',
    1717            'type' => 'plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • smaily-for-wp/trunk/admin/class-smaily-for-wp-admin.php

    r2873649 r2993727  
    6868        wp_register_script( $this->plugin_name, SMLY4WP_PLUGIN_URL . '/admin/js/smaily-for-wp-admin.js', array( 'jquery' ), $this->version, false );
    6969        wp_enqueue_script( $this->plugin_name );
    70         wp_localize_script( $this->plugin_name, 'smaily_for_wp', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
     70        wp_add_inline_script( $this->plugin_name, 'var smaily_for_wp = ' . json_encode( array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ) . ';' );
    7171    }
    7272
     
    121121        );
    122122
    123         wp_localize_script(
    124             $this->plugin_name,
    125             'autoresponders',
    126             json_encode( $autoresponders )
    127         );
     123        wp_add_inline_script( $this->plugin_name, 'var autoresponders = ' . json_encode( $autoresponders ) . ';' );
    128124    }
    129125
  • smaily-for-wp/trunk/includes/class-smaily-for-wp-block.php

    r2873649 r2993727  
    5353
    5454    /**
     55     * Register block.
     56     *
     57     * @since  3.1.2
     58     * @access public
     59     */
     60    public function init() {
     61        register_block_type(
     62            SMLY4WP_PLUGIN_PATH . '/blocks',
     63            array(
     64                'render_callback' => array( $this, 'render' ),
     65            )
     66        );
     67    }
     68
     69    /**
    5570     * Render Gutenberg block using the widget shortcode renderer.
    5671     *
  • smaily-for-wp/trunk/includes/class-smaily-for-wp.php

    r2873649 r2993727  
    6666        $this->version     = SMLY4WP_PLUGIN_VERSION;
    6767        $this->plugin_name = 'smaily-for-wp';
     68
    6869        $this->load_dependencies();
    6970        $this->set_locale();
    7071        $this->define_lifecycle_hooks();
    71         $this->init_blocks();
     72        $this->register_blocks();
    7273        $this->define_admin_hooks();
    7374        $this->define_public_hooks();
     
    130131     * @access private
    131132     */
    132     private function init_blocks() {
     133    private function register_blocks() {
    133134        $plugin_block = new Smaily_For_WP_Block( $this->options, $this->get_plugin_name(), $this->get_version() );
    134 
    135         register_block_type(
    136             SMLY4WP_PLUGIN_PATH . '/blocks',
    137             array(
    138                 'render_callback' => array( $plugin_block, 'render' ),
    139             )
    140         );
     135        $this->loader->add_action( 'init', $plugin_block, 'init' );
    141136    }
    142137
  • smaily-for-wp/trunk/lang/smaily-for-wp-et.po

    r2887377 r2993727  
    22msgstr ""
    33"Project-Id-Version: Smaily for WP\n"
    4 "POT-Creation-Date: 2023-03-27 10:00+0300\n"
    5 "PO-Revision-Date: 2023-03-27 10:00+0300\n"
     4"POT-Creation-Date: 2023-11-10 09:31+0200\n"
     5"PO-Revision-Date: 2023-11-10 09:31+0200\n"
    66"Last-Translator: Smaily <[email protected]>\n"
    77"Language-Team: Smaily <[email protected]>\n"
     
    1111"Content-Transfer-Encoding: 8bit\n"
    1212"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    13 "X-Generator: Poedit 3.2.2\n"
     13"X-Generator: Poedit 3.4.1\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-KeywordsList: __;_e;_n:1,2;_n_noop:1,2;_x:1,2c;_nx:4c,1,2;"
     
    2323msgstr "Ilma automaatvastajata vorm"
    2424
    25 #: admin/class-smaily-for-wp-admin.php:221
     25#: admin/class-smaily-for-wp-admin.php:217
    2626msgid "Please enter subdomain!"
    2727msgstr "Palun sisesta alamdomeen!"
    2828
    29 #: admin/class-smaily-for-wp-admin.php:225
     29#: admin/class-smaily-for-wp-admin.php:221
    3030msgid "Please enter username!"
    3131msgstr "Palun sisesta kasutajatunnus!"
    3232
    33 #: admin/class-smaily-for-wp-admin.php:229
     33#: admin/class-smaily-for-wp-admin.php:225
    3434msgid "Please enter password!"
    3535msgstr "Palun sisesta parool!"
    3636
    37 #: admin/class-smaily-for-wp-admin.php:245
     37#: admin/class-smaily-for-wp-admin.php:241
    3838msgid "Wrong credentials"
    3939msgstr "Valed autentimise tunnused"
    4040
    41 #: admin/class-smaily-for-wp-admin.php:250
     41#: admin/class-smaily-for-wp-admin.php:246
    4242msgid "Error in subdomain"
    4343msgstr "Viga alamdomeenis"
    4444
    45 #: admin/class-smaily-for-wp-admin.php:260
     45#: admin/class-smaily-for-wp-admin.php:256
    4646msgid "Something went wrong with request to Smaily"
    4747msgstr "Ilmnes probleem Smaily-ga ühendamisel"
    4848
    49 #: admin/class-smaily-for-wp-admin.php:269
     49#: admin/class-smaily-for-wp-admin.php:265
    5050msgid "Credentials validated."
    5151msgstr "Autentimise tunnused valideeritud."
    5252
    53 #: admin/class-smaily-for-wp-admin.php:286
     53#: admin/class-smaily-for-wp-admin.php:282
    5454msgid "Credentials removed."
    5555msgstr "Autentimise tunnused eemaldatud."
    5656
    57 #: admin/class-smaily-for-wp-admin.php:303
     57#: admin/class-smaily-for-wp-admin.php:299
    5858msgid "Newsletter subscription form reset to default."
    5959msgstr "Liitumisvormi kood taasloodud."
    6060
    61 #: admin/class-smaily-for-wp-admin.php:342
     61#: admin/class-smaily-for-wp-admin.php:338
    6262msgid "Changes saved."
    6363msgstr "Salvestatud."
  • smaily-for-wp/trunk/migrations/upgrade-3-0-0.php

    r2873649 r2993727  
    1616    global $wpdb;
    1717
    18     if ( $wpdb->get_var( "SHOW TABLES LIKE {$wpdb->prefix}smaily_config" ) === $wpdb->prefix . 'smaily_config' ) {
     18    if ( $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->prefix . 'smaily_config' ) ) === $wpdb->prefix . 'smaily_config' ) {
    1919        $config = $wpdb->get_row( "SELECT * FROM {$wpdb->prefix}smaily_config LIMIT 1", ARRAY_A );
    2020        // Get saved autoresponder ID.
  • smaily-for-wp/trunk/readme.txt

    r2887377 r2993727  
    44Requires PHP: 5.6
    55Requires at least: 4.0
    6 Stable tag: 3.1.1
     6Stable tag: 3.1.2
    77Tags: widget, plugin, sidebar, api, mail, email, marketing, smaily
    8 Tested up to: 6.2
     8Tested up to: 6.4
    99
    1010Smaily newsletter subscription plugin for WordPress
     
    7676
    7777== Changelog ==
     78
     79= 3.1.2 =
     80- Resolve plugin notices on plugin activation and page editing
    7881
    7982= 3.1.1 =
  • smaily-for-wp/trunk/smaily-for-wp.php

    r2887377 r2993727  
    1010 * Text Domain:       smaily-for-wp
    1111 * Description:       Smaily newsletter subscription form.
    12  * Version:           3.1.1
     12 * Version:           3.1.2
    1313 * Author:            Sendsmaily LLC
    1414 * Author URI:        https://smaily.com
     
    2525 * Current plugin version.
    2626 */
    27 define( 'SMLY4WP_PLUGIN_VERSION', '3.1.1' );
     27define( 'SMLY4WP_PLUGIN_VERSION', '3.1.2' );
    2828
    2929/**
  • smaily-for-wp/trunk/vendor/autoload.php

    r2887377 r2993727  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit51647f8c02733dabf2b3c873ad223d64::getLoader();
     25return ComposerAutoloaderInit185d16ccea71d6c4feacf865d40f5b9a::getLoader();
  • smaily-for-wp/trunk/vendor/composer/ClassLoader.php

    r2873649 r2993727  
    4646    private static $includeFile;
    4747
    48     /** @var ?string */
     48    /** @var string|null */
    4949    private $vendorDir;
    5050
    5151    // PSR-4
    5252    /**
    53      * @var array[]
    54      * @psalm-var array<string, array<string, int>>
     53     * @var array<string, array<string, int>>
    5554     */
    5655    private $prefixLengthsPsr4 = array();
    5756    /**
    58      * @var array[]
    59      * @psalm-var array<string, array<int, string>>
     57     * @var array<string, list<string>>
    6058     */
    6159    private $prefixDirsPsr4 = array();
    6260    /**
    63      * @var array[]
    64      * @psalm-var array<string, string>
     61     * @var list<string>
    6562     */
    6663    private $fallbackDirsPsr4 = array();
     
    6865    // PSR-0
    6966    /**
    70      * @var array[]
    71      * @psalm-var array<string, array<string, string[]>>
     67     * List of PSR-0 prefixes
     68     *
     69     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
     70     *
     71     * @var array<string, array<string, list<string>>>
    7272     */
    7373    private $prefixesPsr0 = array();
    7474    /**
    75      * @var array[]
    76      * @psalm-var array<string, string>
     75     * @var list<string>
    7776     */
    7877    private $fallbackDirsPsr0 = array();
     
    8281
    8382    /**
    84      * @var string[]
    85      * @psalm-var array<string, string>
     83     * @var array<string, string>
    8684     */
    8785    private $classMap = array();
     
    9189
    9290    /**
    93      * @var bool[]
    94      * @psalm-var array<string, bool>
     91     * @var array<string, bool>
    9592     */
    9693    private $missingClasses = array();
    9794
    98     /** @var ?string */
     95    /** @var string|null */
    9996    private $apcuPrefix;
    10097
    10198    /**
    102      * @var self[]
     99     * @var array<string, self>
    103100     */
    104101    private static $registeredLoaders = array();
    105102
    106103    /**
    107      * @param ?string $vendorDir
     104     * @param string|null $vendorDir
    108105     */
    109106    public function __construct($vendorDir = null)
     
    114111
    115112    /**
    116      * @return string[]
     113     * @return array<string, list<string>>
    117114     */
    118115    public function getPrefixes()
     
    126123
    127124    /**
    128      * @return array[]
    129      * @psalm-return array<string, array<int, string>>
     125     * @return array<string, list<string>>
    130126     */
    131127    public function getPrefixesPsr4()
     
    135131
    136132    /**
    137      * @return array[]
    138      * @psalm-return array<string, string>
     133     * @return list<string>
    139134     */
    140135    public function getFallbackDirs()
     
    144139
    145140    /**
    146      * @return array[]
    147      * @psalm-return array<string, string>
     141     * @return list<string>
    148142     */
    149143    public function getFallbackDirsPsr4()
     
    153147
    154148    /**
    155      * @return string[] Array of classname => path
    156      * @psalm-return array<string, string>
     149     * @return array<string, string> Array of classname => path
    157150     */
    158151    public function getClassMap()
     
    162155
    163156    /**
    164      * @param string[] $classMap Class to filename map
    165      * @psalm-param array<string, string> $classMap
     157     * @param array<string, string> $classMap Class to filename map
    166158     *
    167159     * @return void
     
    180172     * appending or prepending to the ones previously set for this prefix.
    181173     *
    182      * @param string          $prefix  The prefix
    183      * @param string[]|string $paths   The PSR-0 root directories
    184      * @param bool            $prepend Whether to prepend the directories
     174     * @param string              $prefix  The prefix
     175     * @param list<string>|string $paths   The PSR-0 root directories
     176     * @param bool                $prepend Whether to prepend the directories
    185177     *
    186178     * @return void
     
    188180    public function add($prefix, $paths, $prepend = false)
    189181    {
     182        $paths = (array) $paths;
    190183        if (!$prefix) {
    191184            if ($prepend) {
    192185                $this->fallbackDirsPsr0 = array_merge(
    193                     (array) $paths,
     186                    $paths,
    194187                    $this->fallbackDirsPsr0
    195188                );
     
    197190                $this->fallbackDirsPsr0 = array_merge(
    198191                    $this->fallbackDirsPsr0,
    199                     (array) $paths
     192                    $paths
    200193                );
    201194            }
     
    206199        $first = $prefix[0];
    207200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    208             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    209202
    210203            return;
     
    212205        if ($prepend) {
    213206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    214                 (array) $paths,
     207                $paths,
    215208                $this->prefixesPsr0[$first][$prefix]
    216209            );
     
    218211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    219212                $this->prefixesPsr0[$first][$prefix],
    220                 (array) $paths
     213                $paths
    221214            );
    222215        }
     
    227220     * appending or prepending to the ones previously set for this namespace.
    228221     *
    229      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    230      * @param string[]|string $paths   The PSR-4 base directories
    231      * @param bool            $prepend Whether to prepend the directories
     222     * @param string              $prefix  The prefix/namespace, with trailing '\\'
     223     * @param list<string>|string $paths   The PSR-4 base directories
     224     * @param bool                $prepend Whether to prepend the directories
    232225     *
    233226     * @throws \InvalidArgumentException
     
    237230    public function addPsr4($prefix, $paths, $prepend = false)
    238231    {
     232        $paths = (array) $paths;
    239233        if (!$prefix) {
    240234            // Register directories for the root namespace.
    241235            if ($prepend) {
    242236                $this->fallbackDirsPsr4 = array_merge(
    243                     (array) $paths,
     237                    $paths,
    244238                    $this->fallbackDirsPsr4
    245239                );
     
    247241                $this->fallbackDirsPsr4 = array_merge(
    248242                    $this->fallbackDirsPsr4,
    249                     (array) $paths
     243                    $paths
    250244                );
    251245            }
     
    257251            }
    258252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    259             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    260254        } elseif ($prepend) {
    261255            // Prepend directories for an already registered namespace.
    262256            $this->prefixDirsPsr4[$prefix] = array_merge(
    263                 (array) $paths,
     257                $paths,
    264258                $this->prefixDirsPsr4[$prefix]
    265259            );
     
    268262            $this->prefixDirsPsr4[$prefix] = array_merge(
    269263                $this->prefixDirsPsr4[$prefix],
    270                 (array) $paths
     264                $paths
    271265            );
    272266        }
     
    277271     * replacing any others previously set for this prefix.
    278272     *
    279      * @param string          $prefix The prefix
    280      * @param string[]|string $paths  The PSR-0 base directories
     273     * @param string              $prefix The prefix
     274     * @param list<string>|string $paths  The PSR-0 base directories
    281275     *
    282276     * @return void
     
    295289     * replacing any others previously set for this namespace.
    296290     *
    297      * @param string          $prefix The prefix/namespace, with trailing '\\'
    298      * @param string[]|string $paths  The PSR-4 base directories
     291     * @param string              $prefix The prefix/namespace, with trailing '\\'
     292     * @param list<string>|string $paths  The PSR-4 base directories
    299293     *
    300294     * @throws \InvalidArgumentException
     
    482476
    483477    /**
    484      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    485      *
    486      * @return self[]
     478     * Returns the currently registered loaders keyed by their corresponding vendor directories.
     479     *
     480     * @return array<string, self>
    487481     */
    488482    public static function getRegisteredLoaders()
  • smaily-for-wp/trunk/vendor/composer/autoload_real.php

    r2887377 r2993727  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit51647f8c02733dabf2b3c873ad223d64
     5class ComposerAutoloaderInit185d16ccea71d6c4feacf865d40f5b9a
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit51647f8c02733dabf2b3c873ad223d64', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit185d16ccea71d6c4feacf865d40f5b9a', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit51647f8c02733dabf2b3c873ad223d64', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit185d16ccea71d6c4feacf865d40f5b9a', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInit51647f8c02733dabf2b3c873ad223d64::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit185d16ccea71d6c4feacf865d40f5b9a::getInitializer($loader));
    3131
    3232        $loader->register(true);
  • smaily-for-wp/trunk/vendor/composer/autoload_static.php

    r2887377 r2993727  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit51647f8c02733dabf2b3c873ad223d64
     7class ComposerStaticInit185d16ccea71d6c4feacf865d40f5b9a
    88{
    99    public static $classMap = array (
     
    1414    {
    1515        return \Closure::bind(function () use ($loader) {
    16             $loader->classMap = ComposerStaticInit51647f8c02733dabf2b3c873ad223d64::$classMap;
     16            $loader->classMap = ComposerStaticInit185d16ccea71d6c4feacf865d40f5b9a::$classMap;
    1717
    1818        }, null, ClassLoader::class);
  • smaily-for-wp/trunk/vendor/composer/installed.php

    r2887377 r2993727  
    22    'root' => array(
    33        'name' => 'smaily/smaily_for_wp',
    4         'pretty_version' => '3.1.1',
    5         'version' => '3.1.1.0',
    6         'reference' => '79692cc8c8cf433a89e432f81da233b2463a9317',
     4        'pretty_version' => '3.1.2',
     5        'version' => '3.1.2.0',
     6        'reference' => '1f468101c333fae4d27b7f79f08fde4de3f35a09',
    77        'type' => 'plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'smaily/smaily_for_wp' => array(
    14             'pretty_version' => '3.1.1',
    15             'version' => '3.1.1.0',
    16             'reference' => '79692cc8c8cf433a89e432f81da233b2463a9317',
     14            'pretty_version' => '3.1.2',
     15            'version' => '3.1.2.0',
     16            'reference' => '1f468101c333fae4d27b7f79f08fde4de3f35a09',
    1717            'type' => 'plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.