Plugin Directory

Changeset 3751986


Ignore:
Timestamp:
10/17/2026 01:59:44 PM (3 hours ago)
Author:
appsfruit
Message:

Latest Version

Location:
appsfruit-embed-for-elementor
Files:
36 added
2 edited

Legend:

Unmodified
Added
Removed
  • appsfruit-embed-for-elementor/trunk/appsfruit-elementor-embed.php

    r3745549 r3751986  
    44 * Plugin URI: https://appsfruit.com/elementor-embed
    55 * Description: Embed Elementor pages, templates, and global sections anywhere using shortcodes or Gutenberg blocks with advanced conditional display options.
    6  * Version: 1.0.9
     6 * Version: 1.0.10
    77 * Author: AppsFruit
    88 * Author URI: https://appsfruit.com
    … …  
    1212 * Domain Path: /languages
    1313 * Requires at least: 6.0
    14  * Requires PHP: 7.4
     14 * Requires PHP: 7.5
    1515 * Requires Plugins: elementor
    1616 * Elementor tested up to: 4.3.5
    … …  
    3333
    3434// Define plugin constants
    35 define( 'AEFE_VERSION', '1.0.9' );
     35define( 'AEFE_VERSION', '1.0.10' );
    3636define( 'AEFE_PLUGIN_FILE', __FILE__ );
    3737define( 'AEFE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    … …  
    8989                // Initialize plugin components even if Elementor is temporarily inactive so
    9090                // shortcodes and admin UX continue to degrade gracefully.
    91                 add_action( 'plugins_loaded', array( $this, 'init' ), 20 );
    92 
    93                 // Separate late plugins_loaded check to show admin notice when Elementor is missing.
    94                 add_action( 'plugins_loaded', array( $this, 'maybe_show_elementor_notice' ), 20 );
     91                // Register the shortcode as soon as the plugin file loads, independent of
     92                // any later hook, so [aefe_embed] can never be left unregistered and print
     93                // as plain text. The singleton makes the later init() call a no-op for it.
     94                AEFE_Shortcode::instance();
     95
     96                // If this file is loaded after plugins_loaded has already fired (mu-plugin
     97                // loaders, deferred activation, some hosting setups), the hook below would
     98                // never run and the [aefe_embed] shortcode would never be registered, so it
     99                // would print as plain text. Initialise immediately in that case.
     100                if ( did_action( 'plugins_loaded' ) ) {
     101                        $this->init();
     102                        $this->maybe_show_elementor_notice();
     103                } else {
     104                        add_action( 'plugins_loaded', array( $this, 'init' ), 20 );
     105
     106                        // Separate late plugins_loaded check to show admin notice when Elementor is missing.
     107                        add_action( 'plugins_loaded', array( $this, 'maybe_show_elementor_notice' ), 20 );
     108                }
    95109
    96110                add_action( 'init', array( $this, 'load_textdomain' ) );
  • appsfruit-embed-for-elementor/trunk/readme.txt

    r3745549 r3751986  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.8
     7Stable tag: 1.0.10
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    108108== Changelog ==
    109109
     110= 1.0.10 =
     111* Fixed fatal error caused by Elementor's frontend being initialised twice on every page.
     112* Fixed fatal memory error when a template embedded itself.
     113* Fixed fatal error on PHP 8 when public visitors opened a template URL on themes without a 404.php file.
     114* Fixed fatal error when two copies of the plugin were active.
     115* Elementor rendering errors are now caught instead of breaking the page.
     116* Fixed site search returning no results.
     117* Fixed Elementor editor preview not loading for AEFE templates.
     118* Fixed Gutenberg block errors in the widgets and site editors (removed deprecated wp-editor dependency).
     119* AEFE templates now support Elementor automatically, no settings change needed.
     120* Security: removed the elementor-preview URL bypass that exposed published templates to public visitors.
     121
    110122= 1.0.8 =
    111123* Fixed fatal error caused by Elementor's frontend being initialised twice on every page.
Note: See TracChangeset for help on using the changeset viewer.