Plugin Directory

Changeset 3497900


Ignore:
Timestamp:
04/03/2026 12:50:38 AM (18 hours ago)
Author:
wp.insider
Message:

PHP warning fix for the case when nothing has been set in the addon's settings yet.

Location:
simple-membership-after-login-redirection/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simple-membership-after-login-redirection/trunk/readme.txt

    r3431912 r3497900  
    44Tags: login, redirection, member, members, membership, login redirection, access, level
    55Requires at least: 4.5
    6 Tested up to: 6.9
    7 Stable tag: 2.0
     6Tested up to: 7.0
     7Stable tag: 2.1
    88License: GPLv2 or later
    99
     
    3333== Changelog ==
    3434
     35= 2.1 =
     36- PHP warning fix for the case when nothing has been set in the addon's settings yet.
     37
    3538= 2.0 =
    3639* Support added for the [Social Login Addon](https://simple-membership-plugin.com/simple-membership-social-login-addon/) - now the after login redirection will also work when the member logs in using social login.
    3740
    3841= 1.9 =
    39 * Fixed a minior version number formatting issue which was causing the addon to show an update notification even when there is no update.
     42* Fixed a minor version number formatting issue which was causing the addon to show an update notification even when there is no update.
    4043
    4144= 1.8 =
  • simple-membership-after-login-redirection/trunk/swpm-after-login-redirection.php

    r3374724 r3497900  
    22/*
    33Plugin Name: Simple Membership After Login Redirection
    4 Version: 2.0
     4Version: 2.1
    55Plugin URI: https://simple-membership-plugin.com/
    66Author: smp7, wp.insider
     
    1313}
    1414
    15 define( 'SWPM_ALR_VERSION', '2.0' );
     15define( 'SWPM_ALR_VERSION', '2.1' );
    1616define( 'SWPM_ALR_CONTEXT', 'swpm_alr');
    1717
     
    187187    //Check if the redirect to last page settings is enabled.
    188188    $swpm_alr_settings = get_option('swpm_alr_settings');
     189    if(!is_array($swpm_alr_settings)){
     190        $swpm_alr_settings = array();
     191    }
    189192    if(empty($swpm_alr_settings['redirect_to_last_page_enabled'])){
    190193        $swpm_alr_settings['redirect_to_last_page_enabled'] = '';
     
    215218    //Check if the option 'allow_custom_redirections' is enabled or not.
    216219    $swpm_alr_settings = get_option('swpm_alr_settings');
     220    if(!is_array($swpm_alr_settings)){
     221        $swpm_alr_settings = array();
     222    }
    217223    if(empty($swpm_alr_settings['allow_custom_redirections'])){
    218224        $swpm_alr_settings['allow_custom_redirections'] = '';
     
    243249    //Check if the option 'allow_custom_redirections' is enabled or not.
    244250    $swpm_alr_settings = get_option('swpm_alr_settings');
     251    if(!is_array($swpm_alr_settings)){
     252        $swpm_alr_settings = array();
     253    }
    245254    if(empty($swpm_alr_settings['allow_custom_redirections'])){
    246255        $swpm_alr_settings['allow_custom_redirections'] = '';
Note: See TracChangeset for help on using the changeset viewer.