Plugin Directory

Changeset 2834401


Ignore:
Timestamp:
12/15/2022 12:17:12 PM (3 years ago)
Author:
vandestouwe
Message:

Version 2.7.4 Fixed some PHP warnings

Location:
subscribe-to-category
Files:
661 added
3 edited

Legend:

Unmodified
Added
Removed
  • subscribe-to-category/trunk/classes/class-stc-settings.php

    r2653307 r2834401  
    568568        }
    569569
    570                 if ($input['daily_time'] ) {
     570                if ( isset( $input['daily_time'] )) {
    571571                        $val = strtotime("1-1-1970" . $input['daily_time']);
    572572                        if (!$val && $val >= 0 && $val < 86400) {
  • subscribe-to-category/trunk/readme.txt

    r2816198 r2834401  
    55Tested up to: 6.1
    66Requires PHP: 7.0
    7 Stable tag: 2.7.3
     7Stable tag: 2.7.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    155155
    156156== Changelog ==
     157= 2.7.4.
     158* fixed some php warnings that popped up using the latest PHP versions
     159
    157160= 2.7.3.
    158161* added add_filter feature for users that want to send bulk emails
  • subscribe-to-category/trunk/subscribe-to-category.php

    r2816198 r2834401  
    44  Plugin URI: https://vandestouwe.com/stcmanual
    55  Description: Lets your visitor subscribe to posts for one or several categories.
    6   Version: 2.7.3
     6  Version: 2.7.4
    77  Author: Daniel Söderström / Sidney van de Stouwe
    88  Author URI: https://vandestouwe.com
     
    1919}
    2020
    21 define( 'STC_VERSION', '2.7.2' );
     21define( 'STC_VERSION', '2.7.4' );
    2222define( 'STC_SLUG', 'stc' );
    2323define( 'STC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
     
    2626
    2727// pickup the cron reschedule time if it was set by the user else set it to 1 hour
    28 $cron_time = get_option( 'stc_settings' )['cron_time'];
    29 if (!isset($cron_time)) $cron_time = 3600;
     28$options = get_option( 'stc_settings' );
     29$cron_time = $options['cron_time'] ?? null;
     30if (!isset($cron_time)) {$cron_time = 3600;}
    3031
    3132require_once( 'classes/class-stc-main.php' );
Note: See TracChangeset for help on using the changeset viewer.