Plugin Directory

Changeset 3416285


Ignore:
Timestamp:
12/10/2025 10:33:56 AM (5 weeks ago)
Author:
Litonice13
Message:

fixed custom js issue on frontend

Location:
master-addons
Files:
889 added
5 edited

Legend:

Unmodified
Added
Removed
  • master-addons/trunk/changelog.txt

    r3413363 r3416285  
    11== Changelog ==
     2= 2.0.9.9.4 (10-12-2025) =
     3* Fixed: Custom JS module issue - fixed code not showing on frontend. Thanks [@alvarogarciar](https://wordpress.org/support/topic/custom-js-only-visible-to-users-with-edit_posts-capability/) for informing about the issue.
     4
    25= 2.0.9.9.3 (07-12-2025) =
    36* Fixed: Post Types Pagination issue fixed
  • master-addons/trunk/inc/modules/custom-css/custom-css.php

    r3373484 r3416285  
    2727    {
    2828        if (!defined('ELEMENTOR_PRO_VERSION')) {
    29            
     29
    3030            // Add new controls to advanced tab globally
    3131            add_action("elementor/element/after_section_end", array($this, 'jltma_add_section_custom_css_controls'), 25, 3);
    32            
     32
    3333            // Render the custom CSS
    3434            add_action('elementor/element/parse_css', array($this, 'jltma_add_post_css'), 10, 2);
     
    4444            return;
    4545        }
     46
    4647        // if (!defined('ELEMENTOR_PRO_VERSION')) { return; }
     48
     49        if (!current_user_can('edit_posts')) {
     50            return;
     51        }
    4752
    4853            $widget->start_controls_section(
     
    9297    public function jltma_add_post_css($post_css, $element)
    9398    {
    94         if (!current_user_can('edit_posts')) {
    95             return;
    96         }
    97 
    9899        $element_settings = $element->get_settings();
    99100
  • master-addons/trunk/inc/modules/custom-js/custom-js.php

    r3412765 r3416285  
    7575            return;
    7676        }
     77
     78        if (!current_user_can('edit_posts')) {
     79            return;
     80        }
     81
    7782        $controls->start_controls_section(
    7883            'jtlma_section_custom_js',
     
    125130    {
    126131        if (!class_exists('\Elementor\Plugin') || !\Elementor\Plugin::$instance) {
    127             return;
    128         }
    129 
    130         if (!current_user_can('edit_posts')) {
    131132            return;
    132133        }
     
    186187        }
    187188
    188         if (!current_user_can('edit_posts')) {
    189             return;
    190         }
    191 
    192189        if (\Elementor\Plugin::$instance->editor->is_edit_mode() || \Elementor\Plugin::$instance->preview->is_preview_mode()) {
    193190            return;
  • master-addons/trunk/master-addons.php

    r3413363 r3416285  
    66 * Plugin URI: https://master-addons.com/all-widgets/
    77 * Author: Jewel Theme
    8  * Version: 2.0.9.9.3
     8 * Version: 2.0.9.9.4
    99 * Author URI: https://master-addons.com
    1010 * Text Domain: master-addons
  • master-addons/trunk/readme.txt

    r3413363 r3416285  
    55Tested up to: 6.9
    66Requires PHP: 7.0
    7 Stable tag: 2.0.9.9.3
     7Stable tag: 2.0.9.9.4
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    354354
    355355== Changelog ==
     356= 2.0.9.9.4 (10-12-2025) =
     357* Fixed: Custom JS module issue - fixed code not showing on frontend. Thanks [@alvarogarciar](https://wordpress.org/support/topic/custom-js-only-visible-to-users-with-edit_posts-capability/) for informing about the issue.
     358
     359= 2.0.9.9.3 (07-12-2025) =
     360* Fixed: Post Types Pagination issue fixed
    356361
    357362= 2.0.9.9.2 (06-12-2025) =
Note: See TracChangeset for help on using the changeset viewer.