Plugin Directory

Changeset 3118269


Ignore:
Timestamp:
07/15/2024 11:49:22 AM (21 months ago)
Author:
expresstechsoftware
Message:

Update to version 1.0.11 - Enhancement: Added validation to ensure \ is set and is a valid LLMS_Quiz_Attempt object.- Enhancement: Added validation to ensure \ is set and is a valid LLMS_Student object.

Location:
connect-lifterlms-to-discord
Files:
163 added
5 edited

Legend:

Unmodified
Added
Removed
  • connect-lifterlms-to-discord/trunk/CHANGELOG.txt

    r3072501 r3118269  
     1= 1.0.11 =
     2- **Enhancement:** Added validation to ensure `$attempt` is set and is a valid `LLMS_Quiz_Attempt` object.
     3- **Enhancement:** Added validation to ensure `$student` is set and is a valid `LLMS_Student` object.
     4
    15= 1.0.10 =
    26- Updated plugin to support WordPress version 6.5
  • connect-lifterlms-to-discord/trunk/README.txt

    r3072501 r3118269  
    88Tested up to: 6.5
    99Requires PHP: 7.0
    10 Stable tag: 1.0.10
     10Stable tag: 1.0.11
    1111License: GPLv2
    1212License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • connect-lifterlms-to-discord/trunk/includes/class-lifterlms-discord-addon.php

    r3072501 r3118269  
    7171            $this->version = LIFTERLMS_DISCORD_ADDON_VERSION;
    7272        } else {
    73             $this->version = '1.0.10';
     73            $this->version = '1.0.11';
    7474        }
    7575        $this->plugin_name = 'lifterlms-discord-addon';
  • connect-lifterlms-to-discord/trunk/lifterlms-discord-addon.php

    r3072501 r3118269  
    1717 * Plugin URI:        https://www.expresstechsoftwares.com/?page_id=18295&preview=true
    1818 * Description:       Create an engaging community/forum of your LifterLMS online courses, sell private content. Discord is the #1 tool for students to learn in groups, chat and video.
    19  * Version:           1.0.10
     19 * Version:           1.0.11
    2020 * Author:            ExpressTech Softwares Solutions Pvt Ltd
    2121 * Author URI:        https://www.expresstechsoftwares.com
  • connect-lifterlms-to-discord/trunk/public/class-lifterlms-discord-addon-public.php

    r3019781 r3118269  
    10021002    public function ets_lifterlms_quiz_attempt_results( $attempt ) {
    10031003
    1004         $student       = $attempt->get_student();
     1004        // Ensure $attempt is set and a valid LLMS_Quiz_Attempt object
     1005        if ( ! $attempt || ! $attempt instanceof LLMS_Quiz_Attempt ) {
     1006            return;
     1007        }
     1008
     1009        $student = $attempt->get_student();
     1010
     1011        // Ensure $student is set and a valid LLMS_Student object
     1012        if ( ! $student || ! $student instanceof LLMS_Student ) {
     1013            return;
     1014        }
     1015
    10051016        $user_id       = $student->get( 'id' );
    10061017        $access_token  = sanitize_text_field( trim( get_user_meta( $user_id, '_ets_lifterlms_discord_access_token', true ) ) );
Note: See TracChangeset for help on using the changeset viewer.