Plugin Directory

Changeset 3448511


Ignore:
Timestamp:
01/28/2026 09:36:34 AM (3 weeks ago)
Author:
blaminhor
Message:
  1. 1.3.2
Location:
blaminhor-essentials
Files:
95 added
3 edited

Legend:

Unmodified
Added
Removed
  • blaminhor-essentials/trunk/blaminhor-essentials.php

    r3448097 r3448511  
    44 * Plugin URI:        https://wp.blaminhor.com/
    55 * Description:       A modular toolkit for WordPress with activatable features. Lightweight, secure, and reliable.
    6  * Version:           1.3.1
     6 * Version:           1.3.2
    77 * Requires at least: 6.2
    88 * Requires PHP:      7.4
     
    2323
    2424// Plugin constants
    25 define('BLAMINHOR_ESSENTIALS_VERSION', '1.3.1');
     25define('BLAMINHOR_ESSENTIALS_VERSION', '1.3.2');
    2626define('BLAMINHOR_ESSENTIALS_PLUGIN_FILE', __FILE__);
    2727define('BLAMINHOR_ESSENTIALS_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • blaminhor-essentials/trunk/modules/seo-manager/class-module-seo-manager.php

    r3448097 r3448511  
    473473        // 3. If content has shortcodes and we got nothing, try to render them
    474474        if ( has_shortcode( $post->post_content, '' ) || preg_match( '/\[.+\]/', $post->post_content ) ) {
    475             // Render shortcodes to get actual content (e.g., from page builders)
     475            // Save global $post before rendering shortcodes (some shortcodes like Avada's can modify it).
     476            $saved_post = isset( $GLOBALS['post'] ) ? $GLOBALS['post'] : null;
     477
     478            // Render shortcodes to get actual content (e.g., from page builders).
    476479            $rendered = do_shortcode( $post->post_content );
     480
     481            // Restore global $post to prevent editor from loading wrong content.
     482            if ( null !== $saved_post ) {
     483                $GLOBALS['post'] = $saved_post;
     484            }
     485            wp_reset_postdata();
     486
    477487            $text = wp_trim_words( wp_strip_all_tags( $rendered ), 25, '...' );
    478488            if ( ! empty( $text ) ) {
     
    764774
    765775        $query = new WP_Query( array(
    766             'post_type'      => $post_type,
    767             'post_status'    => 'publish',
    768             'posts_per_page' => $per_page,
    769             'paged'          => $page,
    770             'orderby'        => 'modified',
    771             'order'          => 'DESC',
     776            'post_type'        => $post_type,
     777            'post_status'      => 'publish',
     778            'posts_per_page'   => $per_page,
     779            'paged'            => $page,
     780            'orderby'          => 'modified',
     781            'order'            => 'DESC',
     782            'suppress_filters' => true,
    772783        ) );
    773784
  • blaminhor-essentials/trunk/readme.txt

    r3448097 r3448511  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.3.1
     7Stable tag: 1.3.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    194194
    195195== Changelog ==
     196
     197= 1.3.2 =
     198* Fixed: SEO/GSO - Critical compatibility fix for Avada theme where editing a page would load wrong content (e.g., FAQ instead of the actual page). The issue was caused by shortcodes modifying the global $post variable.
     199* Fixed: SEO/GSO - Content overview list now correctly filters by post type when third-party themes or plugins modify WP_Query results.
    196200
    197201= 1.3.1 =
     
    282286== Upgrade Notice ==
    283287
     288= 1.3.2 =
     289Critical fix for Avada theme users: editing pages no longer loads wrong content. Fixed SEO content list filtering with third-party themes.
     290
    284291= 1.3.1 =
    285292Fixed Unicode character corruption when duplicating page builder content. Fixed XML sitemaps on subdirectory installations. Custom post types and taxonomies now enabled by default. Backup shows updated list after completion. Admin bar menu added for quick access.
Note: See TracChangeset for help on using the changeset viewer.