Plugin Directory

Changeset 3222032


Ignore:
Timestamp:
01/14/2025 07:37:44 AM (14 months ago)
Author:
hookandhook
Message:

3.2.24: Fix modules opened bug

Location:
wp-courses
Files:
230 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-courses/trunk/README.md

    r3216073 r3222032  
    55Requires at least: 5.0
    66Tested up to: 6.7
    7 Stable tag: 3.2.23
     7Stable tag: 3.2.24
    88License: GPLv2 or later license
    99
     
    124124== Changelog ===
    125125
     1263.2.24: Fix modules opened bug
    1261273.2.23: Fix Sticky Header Effects for Elementor conflict
    1271283.2.22: Fix vulnerability (user meta)
  • wp-courses/trunk/functions/render-ajax-components.php

    r3090566 r3222032  
    232232                // Find out opened module
    233233                $open = get_option('wpc_modules_opened') === 'true' ? true : false;
     234
    234235                $opened_module_id = 0;
    235236                if (!$open) {
     
    259260                    }
    260261
     262                    $open_module = false;
    261263                    // Open module which includes highlighted lesson
    262                     if ($opened_module_id == $post_id) {
    263                         $open = true;
     264                    if ($opened_module_id == $post_id && !$open) {
     265                        $open_module = true;
    264266                    }
    265267
     
    269271
    270272                    // Close / open modules
    271                     $angle = $open ? 'fa fa-angle-down' : 'fa fa-angle-up';
    272                     $status = $open ? 'true' : 'false';
    273                     $style = $open ? '' : 'height: 0px;';
     273                    $angle = $open || $open_module ? 'fa fa-angle-down' : 'fa fa-angle-up';
     274                    $status = $open || $open_module ? 'true' : 'false';
     275                    $style = $open || $open_module ? '' : 'height: 0px;';
    274276                    $data_height = 'null';
    275277
  • wp-courses/trunk/wp-courses.php

    r3216073 r3222032  
    44 * Plugin Name: WP Courses LMS
    55 * Description: Create unlimited online courses on your WordPress website with WP Courses LMS.
    6  * Version: 3.2.23
     6 * Version: 3.2.24
    77 * Author: WP Courses
    88 * Plugin URI: https://wpcoursesplugin.com
Note: See TracChangeset for help on using the changeset viewer.