Changeset 2109598
- Timestamp:
- 06/20/2019 03:01:51 PM (7 years ago)
- Location:
- genesis-widget-overlay/trunk
- Files:
-
- 2 edited
-
genesis-overlay-widget.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
genesis-widget-overlay/trunk/genesis-overlay-widget.php
r1835201 r2109598 4 4 * Plugin URI: http://wpstud.io 5 5 * Description: This plugin allows you to create a full screen overlay widget-area 6 * Version: 1. 1.26 * Version: 1.2 7 7 * Author: Frank Schrijvers 8 8 * Author URI: http://www.frankschrijvers.nl … … 29 29 } 30 30 31 register_activation_hook( __FILE__, 'wpstudio_gow_activation_check' );32 /**33 * This function runs on plugin activation. It checks to make sure the required34 * minimum Genesis version is installed. If not, it deactivates itself.35 */36 function wpstudio_gow_activation_check() {37 38 $latest = '2.0';39 $theme_info = wp_get_theme( 'genesis' );40 41 if ( ! function_exists( 'genesis_pre' ) ) {42 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin.43 /* translators: Genesis Framework version check. */44 wp_die( sprintf( __( 'Sorry, you can\'t activate %1$sGenesis Overlay Widget unless you have installed the %3$sGenesis Framework%4$s. Go back to the %5$sPlugins Page%4$s.', 'genesis-overlay-widget' ), '<em>', '</em>', '<a href="http://www.studiopress.com/themes/genesis" target="_blank">', '</a>', '<a href="javascript:history.back()">' ) );45 }46 47 if ( version_compare( $theme_info['Version'], $latest, '<' ) ) {48 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin.49 /* translators: Genesis Framework version check. */50 wp_die( sprintf( __( 'Sorry, you can\'t activate %1$sGenesis Overlay Widget unless you have installed the %3$sGenesis %4$s%5$s. Go back to the %6$sPlugins Page%5$s.', 'genesis-overlay-widget' ), '<em>', '</em>', '<a href="http://www.studiopress.com/themes/genesis" target="_blank">', $latest, '</a>', '<a href="javascript:history.back()">' ) );51 }52 53 }54 55 add_action( 'admin_init', 'wpstudio_gow_deactivate_check' );56 function wpstudio_gow_deactivate_check() {57 58 if ( ! function_exists( 'genesis_pre' ) ) {59 60 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin.61 62 }63 64 }65 31 66 32 add_action( 'wp_enqueue_scripts', 'wpstudio_gow_load_scripts' ); … … 76 42 } 77 43 78 add_action( ' after_setup_theme', 'wpstudio_gow_init' );44 add_action( 'genesis_setup', 'wpstudio_gow_init' ); 79 45 /** 80 46 * Load required files. -
genesis-widget-overlay/trunk/readme.txt
r1835201 r2109598 3 3 Tags: overlay, genesis, widget, featured content, Genesis Framework, genesiswp, page, widget-only, widgets 4 4 Requires at least: 3.6 5 Tested up to: 4.9.46 Stable tag: 1. 1.25 Tested up to: 5.2.2 6 Stable tag: 1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 1.2 = 52 * Update: fix for Genesis 3.0 53 * Removed genesis_pre function check on activation 54 51 55 = 1.1.2 = 52 56 * Update: fix for Genesis 2.6
Note: See TracChangeset
for help on using the changeset viewer.