Changeset 1741739
- Timestamp:
- 10/05/2017 04:29:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bkc-wp-shortcodes/trunk/classes/class-bkc-wp-shortcodes.php
r1741737 r1741739 63 63 */ 64 64 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 }70 65 71 66 add_shortcode( 'wp_get_option', array( $this, 'get_option' ) ); … … 751 746 752 747 /** 753 * Admin Notice754 *755 * @since 1.0.0756 * @return void757 */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 /**763 748 * Initalize WP Shortcodes 764 749 *
Note: See TracChangeset
for help on using the changeset viewer.