Changeset 2109621
- Timestamp:
- 06/20/2019 03:21:14 PM (7 years ago)
- Location:
- genesis-widget-background/trunk
- Files:
-
- 2 edited
-
genesis-widget-background.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
genesis-widget-background/trunk/genesis-widget-background.php
r1330172 r2109621 4 4 Plugin URI: http://www.wpstud.io 5 5 Description: Adds the featured image or custom image as background of the widget. 6 Version: 1. 36 Version: 1.4 7 7 Author: Frank Schrijvers 8 8 Author URI: http://www.wpstud.io … … 10 10 License: GPLv2 11 11 12 This program is free software; you can redistribute it and/or modify13 it under the terms of the GNU General Public License, version 2, as14 published by the Free Software Foundation.12 This program is free software; you can redistribute it and/or modify 13 it under the terms of the GNU General Public License, version 2, as 14 published by the Free Software Foundation. 15 15 16 This program is distributed in the hope that it will be useful,17 but WITHOUT ANY WARRANTY; without even the implied warranty of18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the19 GNU General Public License for more details.16 This program is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License for more details. 20 20 21 You should have received a copy of the GNU General Public License22 along with this program; if not, write to the Free Software23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA21 You should have received a copy of the GNU General Public License 22 along with this program; if not, write to the Free Software 23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 24 24 */ 25 25 26 26 defined( 'WPINC' ) or die; 27 28 29 register_activation_hook( __FILE__, 'wpstudio_gwb_activation_check' );30 function wpstudio_gwb_activation_check() {31 32 $latest = '2.1.2';33 $theme_info = wp_get_theme( 'genesis' );34 35 if ( 'genesis' != basename( TEMPLATEPATH ) ) {36 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin37 wp_die( sprintf( __( 'Sorry, you can\'t activate the Genesis Widget Background unless you have installed the Genesis Framework. Go back to the Plugins Page.', 'genesis-widget-background' ), '<em>', '</em>', '<a href="http://www.studiopress.com/themes/genesis" target="_blank">', '</a>', '<a href="javascript:history.back()">' ) );38 }39 40 if ( version_compare( $theme_info['Version'], $latest, '<' ) ) {41 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin42 wp_die( sprintf( __( 'Sorry, you can\'t activate the Genesis Widget Background unless you have installed the Genesis Framework. Go back to the Plugins Page.', 'genesis-widget-background' ), '<em>', '</em>', '<a href="http://www.studiopress.com/themes/genesis" target="_blank">', $latest, '</a>', '<a href="javascript:history.back()">' ) );43 }44 45 }46 47 add_action('admin_init', 'wpstudio_gwb_deactivate_check');48 function wpstudio_gwb_deactivate_check() {49 50 if ( ! function_exists('genesis_pre') ) {51 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin52 }53 54 }55 27 56 28 /** … … 65 37 function wpstudio_gwb_register_widget() { 66 38 67 register_widget( 'Genesis_Widget_Background' );39 register_widget( 'Genesis_Widget_Background' ); 68 40 69 41 } … … 72 44 function wpstudio_gwb_load_plugin_textdomain() { 73 45 74 load_plugin_textdomain('genesis-widget-background', false, dirname(plugin_basename(__FILE__)) . '/languages/');46 load_plugin_textdomain( 'genesis-widget-background', false, dirname(plugin_basename(__FILE__)) . '/languages/' ); 75 47 76 48 } -
genesis-widget-background/trunk/readme.txt
r1598742 r2109621 3 3 Tags: featured page, genesis, widget, featured content, Genesis Framework, genesiswp, page, widget-only, widgets 4 4 Requires at least: 3.6 5 Tested up to: 4.7.26 Stable tag: 1. 35 Tested up to: 5.2.2 6 Stable tag: 1.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 50 50 == Changelog == 51 51 52 = 1.4 = 53 * Update: fix for Genesis 3.0 54 * Removed genesis_pre function check on activation 55 52 56 = 1.3 = 53 57 * Bugfix, Show only title works now.
Note: See TracChangeset
for help on using the changeset viewer.