Plugin Directory

Changeset 2640772


Ignore:
Timestamp:
12/07/2021 03:43:36 PM (4 years ago)
Author:
themejason
Message:

Fixed a bug with WordPress 5.9

Location:
theme-jason
Files:
23 added
3 edited

Legend:

Unmodified
Added
Removed
  • theme-jason/trunk/classes/admin/Admin.php

    r2640691 r2640772  
    6868
    6969        // Creates a \WP_Theme_JSON_Gutenberg class to use its constants.
    70         $theme_gutenberg     = new \WP_Theme_JSON_Gutenberg( $content, 'user' );
     70        if ( class_exists( '\WP_Theme_JSON_Gutenberg' ) ) {
     71            $theme_gutenberg = new \WP_Theme_JSON_Gutenberg( $content, 'user' );
     72        } else {
     73            $theme_gutenberg = new \WP_Theme_JSON( $content, 'user' );
     74        }
     75       
    7176        $valid_block_names   = array_keys( $this->get_blocks_metadata( $theme_gutenberg::ELEMENTS ) );
    7277        $valid_element_names = array_keys( $theme_gutenberg::ELEMENTS );
  • theme-jason/trunk/readme.txt

    r2640691 r2640772  
    55Tested up to: 5.8.2
    66Requires PHP: 7.0
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • theme-jason/trunk/theme-jason.php

    r2640691 r2640772  
    1010 * Requires PHP: 7.0
    1111 * Requires At Least: 5.8
    12  * Version: 1.0.0
     12 * Version: 1.0.1
    1313 * Text Domain:       theme-jason
    1414 * Domain Path:       /languages
     
    2424define( 'THEME_JASON_DIRECTORY_ROOT', __DIR__ );
    2525define( 'THEME_JASON_DIRECTORY_URL', plugin_dir_url( __FILE__ ) );
    26 define( 'THEME_JASON_PLUGIN_VERSION', '1.0.0' );
     26define( 'THEME_JASON_PLUGIN_VERSION', '1.0.1' );
    2727
    2828/**
Note: See TracChangeset for help on using the changeset viewer.