Plugin Directory

Changeset 3389829


Ignore:
Timestamp:
11/04/2025 05:05:26 PM (5 months ago)
Author:
forgesmith
Message:

1.10.4 - fix issue with blocks failing to render if viewing from a recently saved post

Location:
refoundry-blocks
Files:
3 edited
52 copied

Legend:

Unmodified
Added
Removed
  • refoundry-blocks/tags/1.10.4/Readme.md

    r3382826 r3389829  
    33Tags: gutenberg, blocks
    44Tested up to: 6.8
    5 Stable tag: 1.10.3
     5Stable tag: 1.10.4
    66License: GPLv2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    192192
    193193== Changelog ==
     194= 1.10.4 =
     195* Address issue where navigating to a post from its edit view could sometimes fail to render anything;
     196
    194197= 1.10.3 =
    195198* Improve editor performance when saving a page containing many, many RCBs.
  • refoundry-blocks/tags/1.10.4/foundry.php

    r3382826 r3389829  
    44Plugin URI: https://www.forgeandsmith.com
    55Description: A low-code, themeless visual site builder that makes Gutenberg better
    6 Version: 1.10.3
     6Version: 1.10.4
    77Requires at least: 6.6
    88Tested up to: 6.7
     
    1111Author URI: https://refoundry.io
    1212Text Domain: refoundry
    13 Stable tag: 1.10.3
     13Stable tag: 1.10.4
    1414License: GPLv2 or later
    1515License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1616*/
    1717
    18 const REFOUNDRY_PLUGIN_VERSION = '1.10.3';
     18const REFOUNDRY_PLUGIN_VERSION = '1.10.4';
    1919// Exit if accessed directly.
    2020if ( ! defined( 'ABSPATH' ) ) {
  • refoundry-blocks/tags/1.10.4/lib/FoundryBlock.php

    r3382826 r3389829  
    4545        $referer = wp_get_referer();
    4646        if (
    47             ( ! empty( $_GET['context'] ) && $_GET['context'] === 'edit' ) ||
    48             ( $referer && str_contains( $referer, 'action=edit' ) ) ||
    49             ( $referer && str_contains( $referer, 'post-new.php' ) )
     47            ( defined( 'REST_REQUEST' ) && REST_REQUEST ) &&
     48            (
     49                // this first condition is for when we're doing stuff in the editor
     50                ( ! empty( $_GET['context'] ) && $_GET['context'] === 'edit' ) ||
     51                // these last two address autosaves
     52                ( $referer && str_contains( $referer, 'action=edit' ) ) ||
     53                ( $referer && str_contains( $referer, 'post-new.php' ) )
     54            )
    5055        ) {
    5156            return;
  • refoundry-blocks/trunk/Readme.md

    r3382826 r3389829  
    33Tags: gutenberg, blocks
    44Tested up to: 6.8
    5 Stable tag: 1.10.3
     5Stable tag: 1.10.4
    66License: GPLv2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    192192
    193193== Changelog ==
     194= 1.10.4 =
     195* Address issue where navigating to a post from its edit view could sometimes fail to render anything;
     196
    194197= 1.10.3 =
    195198* Improve editor performance when saving a page containing many, many RCBs.
  • refoundry-blocks/trunk/foundry.php

    r3382826 r3389829  
    44Plugin URI: https://www.forgeandsmith.com
    55Description: A low-code, themeless visual site builder that makes Gutenberg better
    6 Version: 1.10.3
     6Version: 1.10.4
    77Requires at least: 6.6
    88Tested up to: 6.7
     
    1111Author URI: https://refoundry.io
    1212Text Domain: refoundry
    13 Stable tag: 1.10.3
     13Stable tag: 1.10.4
    1414License: GPLv2 or later
    1515License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1616*/
    1717
    18 const REFOUNDRY_PLUGIN_VERSION = '1.10.3';
     18const REFOUNDRY_PLUGIN_VERSION = '1.10.4';
    1919// Exit if accessed directly.
    2020if ( ! defined( 'ABSPATH' ) ) {
  • refoundry-blocks/trunk/lib/FoundryBlock.php

    r3382826 r3389829  
    4545        $referer = wp_get_referer();
    4646        if (
    47             ( ! empty( $_GET['context'] ) && $_GET['context'] === 'edit' ) ||
    48             ( $referer && str_contains( $referer, 'action=edit' ) ) ||
    49             ( $referer && str_contains( $referer, 'post-new.php' ) )
     47            ( defined( 'REST_REQUEST' ) && REST_REQUEST ) &&
     48            (
     49                // this first condition is for when we're doing stuff in the editor
     50                ( ! empty( $_GET['context'] ) && $_GET['context'] === 'edit' ) ||
     51                // these last two address autosaves
     52                ( $referer && str_contains( $referer, 'action=edit' ) ) ||
     53                ( $referer && str_contains( $referer, 'post-new.php' ) )
     54            )
    5055        ) {
    5156            return;
Note: See TracChangeset for help on using the changeset viewer.