Plugin Directory

Changeset 1741739


Ignore:
Timestamp:
10/05/2017 04:29:57 PM (8 years ago)
Author:
dineshc
Message:

Shortcodes notice removed for older version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bkc-wp-shortcodes/trunk/classes/class-bkc-wp-shortcodes.php

    r1741737 r1741739  
    6363         */
    6464        public function init() {
    65 
    66             if ( version_compare( PHP_VERSION, '5.6', '<' ) ) {
    67                 add_action( 'admin_notices', array( $this, 'php_version_notice' ) );
    68                 return;
    69             }
    7065
    7166            add_shortcode( 'wp_get_option',    array( $this, 'get_option' ) );
     
    751746
    752747        /**
    753          * Admin Notice
    754          *
    755          * @since 1.0.0
    756          * @return void
    757          */
    758         public function php_version_notice() {
    759             echo '<div class="error"><p>' . __( 'Shortcodes plugin requires PHP 5.6 to function properly. Please upgrade PHP or deactivate Plugin Name.', 'bkc-wp-shortcodes' ) . '</p></div>';
    760         }
    761 
    762         /**
    763748         * Initalize WP Shortcodes
    764749         *
Note: See TracChangeset for help on using the changeset viewer.