Plugin Directory

Changeset 3395805


Ignore:
Timestamp:
11/14/2025 02:42:15 PM (4 months ago)
Author:
qodeinteractive
Message:
  • Fixed - Fatal error: Uncaught Error: Cannot use object of type stdClass as array
Location:
qi-blocks/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • qi-blocks/trunk/class-qi-blocks.php

    r3392969 r3395805  
    66Author URI: https://qodeinteractive.com/
    77Plugin URI: https://qodeinteractive.com/qi-blocks-for-gutenberg/
    8 Version: 1.4.5
     8Version: 1.4.6
    99Requires at least: 5.8
    1010Requires PHP: 7.4
  • qi-blocks/trunk/constants.php

    r3392969 r3395805  
    66}
    77
    8 define( 'QI_BLOCKS_VERSION', '1.4.5' );
     8define( 'QI_BLOCKS_VERSION', '1.4.6' );
    99define( 'QI_BLOCKS_ABS_PATH', __DIR__ );
    1010define( 'QI_BLOCKS_REL_PATH', dirname( plugin_basename( __FILE__ ) ) );
  • qi-blocks/trunk/inc/admin/global-styles/class-qi-blocks-framework-global-styles.php

    r3387712 r3395805  
    479479
    480480                            if ( $blocks_removed ) {
    481                                 unset( $global_styles['posts'][ $page_id ][ $block_index ] );
    482 
    483                                 $update = true;
     481                                $global_post_styles = $global_styles['posts'][ $page_id ];
     482
     483                                if ( is_object( $global_post_styles ) ) {
     484                                    unset( $global_styles['posts'][ $page_id ]->{$block_index} );
     485
     486                                    $update = true;
     487                                } elseif ( is_array( $global_post_styles ) ) {
     488                                    unset( $global_styles['posts'][ $page_id ][ $block_index ] );
     489
     490                                    $update = true;
     491                                }
    484492                            }
    485493                        }
     
    511519
    512520                    // Update global options indexes.
    513                     if ( $update ) {
     521                    if ( $update && is_array( $global_styles['posts'][ $page_id ] ) ) {
    514522                        $global_styles['posts'][ $page_id ] = array_values( $global_styles['posts'][ $page_id ] );
    515523                    }
  • qi-blocks/trunk/readme.txt

    r3395088 r3395805  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.4.5
     7Stable tag: 1.4.6
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    293293== Changelog ==
    294294
     295= 1.4.6 - 14-11-2025 =
     296- Fixed - Fatal error: Uncaught Error: Cannot use object of type stdClass as array
     297
    295298= 1.4.5 - 10-11-2025 =
    296299- Fixed the undefined filter function preventing block options from being saved
Note: See TracChangeset for help on using the changeset viewer.