Plugin Directory

Changeset 3253175


Ignore:
Timestamp:
03/10/2025 09:02:26 AM (13 months ago)
Author:
yehi
Message:

Version 1.2.9

Location:
advanced-notifications/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • advanced-notifications/trunk/advanced-notifications.php

    r3216887 r3253175  
    44 * Plugin URI: https://advanced-notifications.com
    55 * Description: Advanced Notifications allows you to create beautiful custom notifications
    6  * Version: 1.2.8
     6 * Version: 1.2.9
    77 * Author: Yehi
    88 * Author URI: https://profiles.wordpress.org/yehi/
  • advanced-notifications/trunk/plugins/easy-interface-settings/easy-interface-settings.php

    r3220243 r3253175  
    22/*
    33*
    4 *   Easy Interface Settings V 1.0.9
     4*   Easy Interface Settings V 1.1.0
    55*   ------------------------------------------------
    66*   Copyright Linker  - https://linker.co.il
  • advanced-notifications/trunk/plugins/easy-interface-settings/includes/eis-admin-functions.php

    r3220243 r3253175  
    143143    $input_type = $option['input_type'];
    144144    $placeholder = $option['placeholder'];
    145     $current_val = (strpos($input_id, '_eis_encrypt') !== false && !empty($option['value']) && !is_array($option['value'])) ? eis_openssl_decrypt($option['value']) : $option['value'];
    146     $current_val = ($current_val == null && $option['default'] != null) ? $option['default'] : $current_val;
     145    $current_val = (strpos($input_id ?? '', '_eis_encrypt') !== false && !empty($option['value']) && !is_array($option['value'])) ? eis_openssl_decrypt($option['value']) : $option['value'];
     146    $current_val = (!$current_val && $option['default']) ? $option['default'] : $current_val;
    147147    $current_val = (is_array($current_val)) ? array_map("esc_attr", $current_val) : esc_attr($current_val);
    148148    if (is_array($current_val)) {
    149149        $current_val = array_map("esc_attr", $current_val);
    150         if (strpos($input_id, '_eis_encrypt') !== false) {
     150        if (strpos($input_id ?? '', '_eis_encrypt') !== false) {
    151151            $current_val = array_map("eis_openssl_decrypt", $current_val);
    152152        }
     
    690690
    691691function is_eis_option_hidden($current_interface_id, $current_input_id) {
    692     $current_input_id = str_replace('_eis_html', '', $current_input_id);
     692    $current_input_id = str_replace('_eis_html', '', $current_input_id ?? '');
    693693    global $post;
    694694    $post_id = (isset($post->ID)) ? $post->ID : null;
Note: See TracChangeset for help on using the changeset viewer.