Plugin Directory

Changeset 2430798


Ignore:
Timestamp:
12/03/2020 10:06:33 AM (5 years ago)
Author:
gutengeek
Message:

new version

Location:
gtg-advanced-blocks
Files:
340 added
7 edited

Legend:

Unmodified
Added
Removed
  • gtg-advanced-blocks/tags/1.1.2/inc/Admin.php

    r2428030 r2430798  
    212212         */
    213213        public static function add_display_post_states( $post_states, $post ) {
    214             if ( metadata_exists( 'post', $post->ID, '_gutengeek_kit_name_imported' ) ) {
     214            if ( $post && metadata_exists( 'post', $post->ID, '_gutengeek_kit_name_imported' ) ) {
    215215                $post_states['gutengeek_kit_name_imported'] = get_post_meta( $post->ID, '_gutengeek_kit_name_imported', true );
    216216            }
  • gtg-advanced-blocks/trunk/changelog.txt

    r2430707 r2430798  
    11== Changelog ==
    22
    3 = 1.1.2 =
     3= 1.1.3 =
    44## Bug Fixes
    55- Allow upload custom icon as a zip file collection svg files
  • gtg-advanced-blocks/trunk/inc/Admin.php

    r2428030 r2430798  
    212212         */
    213213        public static function add_display_post_states( $post_states, $post ) {
    214             if ( metadata_exists( 'post', $post->ID, '_gutengeek_kit_name_imported' ) ) {
     214            if ( $post && metadata_exists( 'post', $post->ID, '_gutengeek_kit_name_imported' ) ) {
    215215                $post_states['gutengeek_kit_name_imported'] = get_post_meta( $post->ID, '_gutengeek_kit_name_imported', true );
    216216            }
  • gtg-advanced-blocks/trunk/inc/Modules/CustomIcons.php

    r2430707 r2430798  
    699699            $icon_id = $exist;
    700700        } else {
     701
     702            $data = array(
     703                'icon_dir_name' => $json_data['key_name'],
     704                'icon_name' => $json_data['icon_set_name'],
     705                'icon_user_id' => 1,
     706                'icon_status' => 'publish'
     707            );
    701708            $status = $wpdb->insert(
    702709                $wpdb->prefix . 'gtg_block_icons',
     
    717724        }
    718725
    719         $data = array(
    720             'icon_dir_name' => $json_data['key_name'],
    721             'icon_name' => $json_data['icon_set_name'],
    722             'icon_user_id' => 1,
    723             'icon_status' => 'publish'
    724         );
    725 
    726726        if ( $icon_id ) {
    727727            $custom_icons = self::get_options();
  • gtg-advanced-blocks/trunk/inc/Plugin.php

    r2430707 r2430798  
    2323    private static $instance;
    2424
    25     private $version = '1.1.2';
     25    private $version = '1.1.3';
    2626
    2727    /**
  • gtg-advanced-blocks/trunk/plugin.php

    r2430707 r2430798  
    66 * Author: GutenGeek
    77 * Author URI: https://gutengeek.com/
    8  * Version: 1.1.2
     8 * Version: 1.1.3
    99 * License: GPL2+
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
  • gtg-advanced-blocks/trunk/readme.txt

    r2428030 r2430798  
    44Requires at least: 5.0
    55Tested up to: 5.5.3
    6 Stable tag: 1.1.2
     6Stable tag: 1.1.3
    77Requires PHP: 7.2
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.