Plugin Directory

Changeset 2267300


Ignore:
Timestamp:
03/25/2020 12:27:20 PM (6 years ago)
Author:
sweans
Message:

1.1.2

Added error notification in websites with WordPress version less than 5.0

Location:
guteblock/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guteblock/trunk/plugin.php

    r2264484 r2267300  
    66 * Author: Sweans
    77 * Author URI: https://www.sweans.com/
    8  * Version: 1.1.1
     8 * Version: 1.1.2
    99 * Text Domain: guteblock
    1010 * Tested up to: 5.3
     
    3636add_filter('block_categories', 'guteblock_categories', 10, 2);
    3737
     38
    3839function guteblock_register_block_type($block, $options = array()) {
     40   
     41    if(!function_exists('register_block_type')) return false;
     42
    3943    register_block_type(
    4044        'guteblock/'.$block,
     
    290294    delete_option('guteblock_mailchimp_success_response_do');
    291295}
     296
     297
     298function guteblock_adminalert() {
     299    ?>
     300    <div class="error notice">
     301        <p><?php _e( 'Guteblock needs WordPress 5.0 or higher to work. Please update your website to the latest version of WordPress.', 'guteblock' ); ?></p>
     302    </div>
     303    <?php
     304}
     305add_action( 'admin_notices', 'guteblock_adminalert' );
  • guteblock/trunk/readme.txt

    r2264484 r2267300  
    1 === Guteblock - Ultimate Gutenberg Blocks Plugin ===
     1=== Guteblock - Ultimate Gutenberg Blocks Plugin ===
    22Contributors: sweans
    33Tags: Guteblock, blocks, block editor, gutenberg blocks, page builder, gutenberg, block
     
    55Tested up to: 5.3
    66Requires PHP: 5.3
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    102102== Changelog ==
    103103
     104= 1.1.2 =
     105
     106Added error notification in websites with WordPress version less than 5.0
     107
    104108= 1.1.1 =
    105109
Note: See TracChangeset for help on using the changeset viewer.