Plugin Directory

Changeset 2510274


Ignore:
Timestamp:
04/06/2021 06:48:45 PM (5 years ago)
Author:
imibrar
Message:

fix shortcode render content issue

Location:
i2-azon/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • i2-azon/trunk/i2-azon.php

    r2463755 r2510274  
    66 * Author: imibrar
    77 * Author URI: https://themesfirst.com/
    8  * Version: 0.2.4
     8 * Version: 0.2.5
    99 * License: GPL2+
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
     
    2929
    3030define('I2_AZON_PLUGIN_NAME', 'i2 AZON' );
    31 define('I2_AZON_VER', '0.2.4' );
     31define('I2_AZON_VER', '0.2.5' );
    3232define('I2_AZON_DEBUG', false );
    3333define('I2_AZON_BASE_FILE', __FILE__ );
  • i2-azon/trunk/include/register-post-types.php

    r2460809 r2510274  
    147147    if (intval($atts['id']) > 0) {
    148148        $content = get_post_field('post_content', $atts['id']);
    149         return apply_filters('the_content', $content);
     149        $block_content = "";
     150        $blocks = parse_blocks($content);
     151
     152        foreach ($blocks as $block) {
     153                $block_content .=   render_block($block);
     154        }
     155     return $block_content;
    150156    }
    151157    return null;
  • i2-azon/trunk/readme.txt

    r2463755 r2510274  
    2626
    2727== Changelog ==
     28v2.5 fixed shortcode issue
    2829v2.4 fixed color clear undefined issue
    2930v2.3 image alignment fixed in small screen
Note: See TracChangeset for help on using the changeset viewer.