Changeset 2109594
- Timestamp:
- 06/20/2019 02:53:15 PM (7 years ago)
- Location:
- wpstudio-countdown/trunk
- Files:
-
- 2 edited
-
genesis-countdown.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpstudio-countdown/trunk/genesis-countdown.php
r1835120 r2109594 4 4 * Plugin URI: http://wpstud.io/plugins 5 5 * Description: The Genesis Countdown is a simple-to-use plugin for adding a Countdown to your Genesis Theme, using a widget. 6 * Version: 1. 1.46 * Version: 1.2 7 7 * Author: Frank Schrijvers 8 8 * Author URI: http://www.wpstud.io … … 46 46 require_once ABSPATH . 'wp-admin/includes/plugin.php'; 47 47 48 register_activation_hook( __FILE__, 'wps_gcd_activation_check' );49 /**50 * This function runs on plugin activation. It checks to make sure the required51 * minimum Genesis version is installed. If not, it deactivates itself.52 */53 function wps_gcd_activation_check() {54 55 $latest = '2.0';56 $theme_info = wp_get_theme( 'genesis' );57 58 if ( ! function_exists( 'genesis_pre' ) ) {59 60 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin.61 /* translators: Genesis Framework version check. */62 wp_die( sprintf( __( 'Sorry, you can\'t activate %1$sGenesis Countdown unless you have installed the %3$sGenesis Framework%4$s. Go back to the %5$sPlugins Page%4$s.', 'wpstudio-countdown' ), '<em>', '</em>', '<a href="http://www.studiopress.com/themes/genesis" target="_blank">', '</a>', '<a href="javascript:history.back()">' ) );63 64 }65 66 if ( version_compare( $theme_info['Version'], $latest, '<' ) ) {67 68 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin.69 /* translators: Genesis Framework version check. */70 wp_die( sprintf( __( 'Sorry, you can\'t activate %1$sGenesis Countdown unless you have installed the %3$sGenesis %4$s%5$s. Go back to the %6$sPlugins Page%5$s.', 'wpstudio-countdown' ), '<em>', '</em>', '<a href="http://www.studiopress.com/themes/genesis" target="_blank">', $latest, '</a>', '<a href="javascript:history.back()">' ) );71 72 }73 74 }75 76 /**77 * This function runs on plugin deactivation.78 */79 function wps_gcd_deactivate_check() {80 81 if ( ! function_exists( 'genesis_pre' ) ) {82 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin.83 }84 85 }86 add_action( 'after_switch_theme', 'wps_gcd_deactivate_check' );87 48 88 49 /** … … 118 79 119 80 } 120 add_action( ' after_setup_theme', 'wps_gcd_init' );81 add_action( 'genesis_setup', 'wps_gcd_init' ); 121 82 122 83 /** -
wpstudio-countdown/trunk/readme.txt
r1835120 r2109594 3 3 Tags: countdown, clock, counter, timer, genesis, ticker, widget, Genesis Framework, genesiswp 4 4 Requires at least: 3.6 5 Tested up to: 4.9.46 Stable tag: 1. 1.45 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 … … 45 45 46 46 == Changelog == 47 = 1.2 = 48 * Update: fix for Genesis 3.0 49 * Removed genesis_pre function check on activation 50 47 51 = 1.1.4 = 48 52 * Update: fix for Genesis 2.6
Note: See TracChangeset
for help on using the changeset viewer.