Plugin Directory

Changeset 3357762


Ignore:
Timestamp:
09/08/2025 09:55:02 AM (6 months ago)
Author:
sendsmaily
Message:

Release 1.3.1, see readme.txt for the changelog.

Location:
smaily-connect
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • smaily-connect/tags/1.3.1/admin/css/smaily-admin.css

    r3280976 r3357762  
    44  color: #1d2327;
    55  letter-spacing: 2%;
     6}
     7
     8.smaily-connect-admin-notice {
     9  background-color: #fff3f6;
     10  padding: 10px 20px;
     11  margin-bottom: 20px;
     12}
     13
     14.smaily-connect-admin-notice.notice-error {
     15  border-left: 4px solid #e91e63;
    616}
    717
  • smaily-connect/tags/1.3.1/admin/smaily-admin-renderer.class.php

    r3283436 r3357762  
    3333        ?>
    3434        <?php if ( ! $this->are_credentials_valid() ) : ?>
    35             <div class="error smaily-notice is-dismissible">
     35            <div class="smaily-connect-admin-notice notice-error">
    3636                <p>
    3737                    <?php
  • smaily-connect/tags/1.3.1/includes/smaily-api.class.php

    r3280976 r3357762  
    109109     * @param string $methods  Methods accepted by the endpoint.
    110110     * @param string $callback Function name for the endpoint logic.
    111      * @param array $args      Extra arguments for register_rest_route.
     111     * @param array  $args      Extra arguments for register_rest_route.
    112112     */
    113113    private function register_endpoint( $version, $path, $methods, $callback, $args = array() ) {
  • smaily-connect/tags/1.3.1/includes/smaily-helper.class.php

    r3283436 r3357762  
    2222        $result  = $request->list_autoresponders();
    2323
    24         if ( empty( $result['body'] ) ) {
     24        if ( ! isset( $result['body'] ) || empty( $result['body'] ) ) {
    2525            return array();
    2626        }
     
    2828        $autoresponder_list = array();
    2929        foreach ( $result['body'] as $autoresponder ) {
     30            if ( ! is_array( $autoresponder ) ) {
     31                continue;
     32            }
     33
     34            if ( ! isset( $autoresponder['id'] ) || ! isset( $autoresponder['title'] ) ) {
     35                continue;
     36            }
     37
     38            if ( empty( $autoresponder['id'] ) || empty( $autoresponder['title'] ) ) {
     39                continue;
     40            }
     41
    3042            $id                        = $autoresponder['id'];
    3143            $title                     = $autoresponder['title'];
    3244            $autoresponder_list[ $id ] = $title;
    3345        }
     46
    3447        return $autoresponder_list;
    3548    }
  • smaily-connect/tags/1.3.1/readme.txt

    r3356475 r3357762  
    66Tested up to: 6.8
    77WC tested up to: 9.6.1
    8 Stable tag: 1.3.0
     8Stable tag: 1.3.1
    99License: GPLv3 or later
    1010
     
    6161== Changelog ==
    6262
     63= 1.3.1 =
     64
     65- Improved the admin notice when the Smaily API credentials are invalid. Now the notice is rendered closer to the credentials input fields for better visibility.
     66- Improved autoresponder listing function validation to handle edge cases and ensure robust performance.
     67
    6368= 1.3.0 =
    6469
  • smaily-connect/tags/1.3.1/smaily-connect.php

    r3356475 r3357762  
    1212 * Plugin URI:        https://smaily.com/help/user-manual/smaily-connect-for-wordpress/
    1313 * Text Domain:       smaily-connect
    14  * Version:           1.3.0
     14 * Version:           1.3.1
    1515*/
    1616
     
    2323 * Current plugin version.
    2424 */
    25 define( 'SMAILY_CONNECT_PLUGIN_VERSION', '1.3.0' );
     25define( 'SMAILY_CONNECT_PLUGIN_VERSION', '1.3.1' );
    2626
    2727/**
  • smaily-connect/trunk/admin/css/smaily-admin.css

    r3280976 r3357762  
    44  color: #1d2327;
    55  letter-spacing: 2%;
     6}
     7
     8.smaily-connect-admin-notice {
     9  background-color: #fff3f6;
     10  padding: 10px 20px;
     11  margin-bottom: 20px;
     12}
     13
     14.smaily-connect-admin-notice.notice-error {
     15  border-left: 4px solid #e91e63;
    616}
    717
  • smaily-connect/trunk/admin/smaily-admin-renderer.class.php

    r3283436 r3357762  
    3333        ?>
    3434        <?php if ( ! $this->are_credentials_valid() ) : ?>
    35             <div class="error smaily-notice is-dismissible">
     35            <div class="smaily-connect-admin-notice notice-error">
    3636                <p>
    3737                    <?php
  • smaily-connect/trunk/includes/smaily-api.class.php

    r3280976 r3357762  
    109109     * @param string $methods  Methods accepted by the endpoint.
    110110     * @param string $callback Function name for the endpoint logic.
    111      * @param array $args      Extra arguments for register_rest_route.
     111     * @param array  $args      Extra arguments for register_rest_route.
    112112     */
    113113    private function register_endpoint( $version, $path, $methods, $callback, $args = array() ) {
  • smaily-connect/trunk/includes/smaily-helper.class.php

    r3283436 r3357762  
    2222        $result  = $request->list_autoresponders();
    2323
    24         if ( empty( $result['body'] ) ) {
     24        if ( ! isset( $result['body'] ) || empty( $result['body'] ) ) {
    2525            return array();
    2626        }
     
    2828        $autoresponder_list = array();
    2929        foreach ( $result['body'] as $autoresponder ) {
     30            if ( ! is_array( $autoresponder ) ) {
     31                continue;
     32            }
     33
     34            if ( ! isset( $autoresponder['id'] ) || ! isset( $autoresponder['title'] ) ) {
     35                continue;
     36            }
     37
     38            if ( empty( $autoresponder['id'] ) || empty( $autoresponder['title'] ) ) {
     39                continue;
     40            }
     41
    3042            $id                        = $autoresponder['id'];
    3143            $title                     = $autoresponder['title'];
    3244            $autoresponder_list[ $id ] = $title;
    3345        }
     46
    3447        return $autoresponder_list;
    3548    }
  • smaily-connect/trunk/readme.txt

    r3356475 r3357762  
    66Tested up to: 6.8
    77WC tested up to: 9.6.1
    8 Stable tag: 1.3.0
     8Stable tag: 1.3.1
    99License: GPLv3 or later
    1010
     
    6161== Changelog ==
    6262
     63= 1.3.1 =
     64
     65- Improved the admin notice when the Smaily API credentials are invalid. Now the notice is rendered closer to the credentials input fields for better visibility.
     66- Improved autoresponder listing function validation to handle edge cases and ensure robust performance.
     67
    6368= 1.3.0 =
    6469
  • smaily-connect/trunk/smaily-connect.php

    r3356475 r3357762  
    1212 * Plugin URI:        https://smaily.com/help/user-manual/smaily-connect-for-wordpress/
    1313 * Text Domain:       smaily-connect
    14  * Version:           1.3.0
     14 * Version:           1.3.1
    1515*/
    1616
     
    2323 * Current plugin version.
    2424 */
    25 define( 'SMAILY_CONNECT_PLUGIN_VERSION', '1.3.0' );
     25define( 'SMAILY_CONNECT_PLUGIN_VERSION', '1.3.1' );
    2626
    2727/**
Note: See TracChangeset for help on using the changeset viewer.