close

Plugin Directory

Changeset 3515711


Ignore:
Timestamp:
04/26/2026 10:04:21 AM (3 weeks ago)
Author:
devitemsllc
Message:

Update to version 3.0.9 from GitHub

Location:
ht-mega-for-elementor
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ht-mega-for-elementor/tags/3.0.9/htmega_addons_elementor.php

    r3501420 r3515711  
    66 * Author:      HasThemes
    77 * Author URI:  https://hasthemes.com/
    8  * Version:     3.0.8
     8 * Version:     3.0.9
    99 * License:     GPL2
    1010 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     
    1616
    1717if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
    18 define( 'HTMEGA_VERSION', '3.0.8' );
     18define( 'HTMEGA_VERSION', '3.0.9' );
    1919define( 'HTMEGA_ADDONS_PL_ROOT', __FILE__ );
    2020define( 'HTMEGA_ADDONS_PL_URL', plugins_url( '/', HTMEGA_ADDONS_PL_ROOT ) );
  • ht-mega-for-elementor/tags/3.0.9/includes/helper-function.php

    r3501420 r3515711  
    11841184if ( !function_exists('htmega_get_template_content_by_id') ) {
    11851185    function htmega_get_template_content_by_id($template_id) {
    1186         // Static cache for same request (e.g., same template used in multiple slides)
    11871186        static $template_cache = [];
    11881187
    1189         if ( isset( $template_cache[ $template_id ] ) ) {
    1190             return $template_cache[ $template_id ];
     1188        $current_post_id = (int) get_the_ID();
     1189        $cache_key = $template_id . '_' . $current_post_id;
     1190
     1191        if ( isset( $template_cache[ $cache_key ] ) ) {
     1192            return $template_cache[ $cache_key ];
    11911193        }
    11921194
    11931195        $template_post = get_post( $template_id );
    11941196
    1195         // Check if the post exists and its status is 'publish'
    11961197        if ( $template_post && $template_post->post_status === 'publish' ) {
    11971198
    1198             // Transient cache: persists across requests, invalidated on template save
    1199             $transient_key = 'htmega_tmpl_' . $template_id . '_' . $template_post->post_modified;
     1199            $current_post  = $current_post_id ? get_post( $current_post_id ) : null;
     1200            $post_modified = $current_post ? $current_post->post_modified : '';
     1201            $transient_key = 'htmega_tmpl_' . $template_id . '_' . $current_post_id . '_' . $template_post->post_modified . '_' . $post_modified;
    12001202            $content = get_transient( $transient_key );
    12011203
     
    12101212        }
    12111213
    1212         $template_cache[ $template_id ] = $content;
     1214        $template_cache[ $cache_key ] = $content;
    12131215
    12141216        return $content;
  • ht-mega-for-elementor/tags/3.0.9/readme.txt

    r3501420 r3515711  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 3.0.8
     6Stable tag: 3.0.9
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    238238== Changelog ==
    239239
     240= Version 3.0.9 - Date: 2026-04-26 =
     241* Fixed: Theme builder single post template showing incorrect content.
     242
    240243= Version 3.0.8 - Date: 2026-04-08 =
    241244* Added: [Political Campaign (Modern) Template Kit](https://library.wphtmega.com/political-campaign-home-modern/) (Pro).
  • ht-mega-for-elementor/trunk/htmega_addons_elementor.php

    r3501420 r3515711  
    66 * Author:      HasThemes
    77 * Author URI:  https://hasthemes.com/
    8  * Version:     3.0.8
     8 * Version:     3.0.9
    99 * License:     GPL2
    1010 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     
    1616
    1717if( ! defined( 'ABSPATH' ) ) exit(); // Exit if accessed directly
    18 define( 'HTMEGA_VERSION', '3.0.8' );
     18define( 'HTMEGA_VERSION', '3.0.9' );
    1919define( 'HTMEGA_ADDONS_PL_ROOT', __FILE__ );
    2020define( 'HTMEGA_ADDONS_PL_URL', plugins_url( '/', HTMEGA_ADDONS_PL_ROOT ) );
  • ht-mega-for-elementor/trunk/includes/helper-function.php

    r3501420 r3515711  
    11841184if ( !function_exists('htmega_get_template_content_by_id') ) {
    11851185    function htmega_get_template_content_by_id($template_id) {
    1186         // Static cache for same request (e.g., same template used in multiple slides)
    11871186        static $template_cache = [];
    11881187
    1189         if ( isset( $template_cache[ $template_id ] ) ) {
    1190             return $template_cache[ $template_id ];
     1188        $current_post_id = (int) get_the_ID();
     1189        $cache_key = $template_id . '_' . $current_post_id;
     1190
     1191        if ( isset( $template_cache[ $cache_key ] ) ) {
     1192            return $template_cache[ $cache_key ];
    11911193        }
    11921194
    11931195        $template_post = get_post( $template_id );
    11941196
    1195         // Check if the post exists and its status is 'publish'
    11961197        if ( $template_post && $template_post->post_status === 'publish' ) {
    11971198
    1198             // Transient cache: persists across requests, invalidated on template save
    1199             $transient_key = 'htmega_tmpl_' . $template_id . '_' . $template_post->post_modified;
     1199            $current_post  = $current_post_id ? get_post( $current_post_id ) : null;
     1200            $post_modified = $current_post ? $current_post->post_modified : '';
     1201            $transient_key = 'htmega_tmpl_' . $template_id . '_' . $current_post_id . '_' . $template_post->post_modified . '_' . $post_modified;
    12001202            $content = get_transient( $transient_key );
    12011203
     
    12101212        }
    12111213
    1212         $template_cache[ $template_id ] = $content;
     1214        $template_cache[ $cache_key ] = $content;
    12131215
    12141216        return $content;
  • ht-mega-for-elementor/trunk/readme.txt

    r3501420 r3515711  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 3.0.8
     6Stable tag: 3.0.9
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    238238== Changelog ==
    239239
     240= Version 3.0.9 - Date: 2026-04-26 =
     241* Fixed: Theme builder single post template showing incorrect content.
     242
    240243= Version 3.0.8 - Date: 2026-04-08 =
    241244* Added: [Political Campaign (Modern) Template Kit](https://library.wphtmega.com/political-campaign-home-modern/) (Pro).
Note: See TracChangeset for help on using the changeset viewer.