Changeset 400640
- Timestamp:
- 06/23/2011 11:20:46 PM (15 years ago)
- Location:
- gecka-terms-thumbnails
- Files:
-
- 2 edited
- 7 copied
-
tags/1.0-beta2 (copied) (copied from gecka-terms-thumbnails/trunk)
-
tags/1.0-beta2/gecka-terms-thumbnails.php (copied) (copied from gecka-terms-thumbnails/trunk/gecka-terms-thumbnails.php) (3 diffs)
-
tags/1.0-beta2/languages (copied) (copied from gecka-terms-thumbnails/trunk/languages)
-
tags/1.0-beta2/readme.txt (copied) (copied from gecka-terms-thumbnails/trunk/readme.txt) (2 diffs)
-
tags/1.0-beta2/screenshot-1.png (copied) (copied from gecka-terms-thumbnails/trunk/screenshot-1.png)
-
tags/1.0-beta2/screenshot-2.png (copied) (copied from gecka-terms-thumbnails/trunk/screenshot-2.png)
-
tags/1.0-beta2/settings.php (copied) (copied from gecka-terms-thumbnails/trunk/settings.php)
-
trunk/gecka-terms-thumbnails.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gecka-terms-thumbnails/tags/1.0-beta2/gecka-terms-thumbnails.php
r399408 r400640 4 4 Plugin URI: http://gecka-apps.com 5 5 Description: Add thumbnails support to categories and any choosen taxonomies. 6 Version: 1.0-beta 16 Version: 1.0-beta2 7 7 Author: Gecka Apps 8 8 Author URI: http://gecka.nc … … 374 374 * Actions and filters hooks 375 375 **************************************************************************/ 376 public function activation_hook () { 377 378 if (version_compare(PHP_VERSION, '5.0.0', '<')) { 379 deactivate_plugins( basename(dirname(__FILE__)) . '/' . basename(__FILE__) ); // Deactivate ourself 380 wp_die("Sorry, the Gecka Terms Ordering plugin requires PHP 5 or higher."); 381 } 382 383 global $wpdb; 384 385 $collate = ''; 386 if($wpdb->supports_collation()) { 387 if(!empty($wpdb->charset)) $collate = "DEFAULT CHARACTER SET $wpdb->charset"; 388 if(!empty($wpdb->collate)) $collate .= " COLLATE $wpdb->collate"; 389 } 390 391 $sql = "CREATE TABLE IF NOT EXISTS ". $wpdb->prefix . "termmeta" ." ( 392 `meta_id` bigint(20) unsigned NOT NULL auto_increment, 393 `term_id` bigint(20) unsigned NOT NULL default '0', 394 `meta_key` varchar(255) default NULL, 395 `meta_value` longtext, 396 PRIMARY KEY (meta_id), 397 KEY term_id (term_id), 398 KEY meta_key (meta_key) ) $collate;"; 399 $wpdb->query($sql); 400 401 } 376 402 377 403 public function plugins_loaded () { … … 757 783 } 758 784 785 if ( ! function_exists('wp_list_terms') ) { 786 787 function wp_list_terms ( $args ) { 788 789 wp_parse_args($args); 790 if( ! isset($args['walker']) || ! is_a( $args['walker'], 'Walker') ) $args['walker'] = new Walker_Term(); 791 792 return wp_list_categories( $args ); 793 } 794 } 795 759 796 /** 760 797 * Create HTML list of categories. -
gecka-terms-thumbnails/tags/1.0-beta2/readme.txt
r399408 r400640 4 4 Requires at least: 3.0 5 5 Tested up to: 3.2 6 Stable tag: 1.0-beta 16 Stable tag: 1.0-beta2 7 7 Manage tumbnails for categories, tags or any other taxonomy's terms of your Wordpress website. 8 8 … … 33 33 == Changelog == 34 34 35 = 1.0-beta2 = 36 * Fix activation hook 37 35 38 = 1.0-beta1 = 36 39 * First release. -
gecka-terms-thumbnails/trunk/gecka-terms-thumbnails.php
r399408 r400640 4 4 Plugin URI: http://gecka-apps.com 5 5 Description: Add thumbnails support to categories and any choosen taxonomies. 6 Version: 1.0-beta 16 Version: 1.0-beta2 7 7 Author: Gecka Apps 8 8 Author URI: http://gecka.nc … … 374 374 * Actions and filters hooks 375 375 **************************************************************************/ 376 public function activation_hook () { 377 378 if (version_compare(PHP_VERSION, '5.0.0', '<')) { 379 deactivate_plugins( basename(dirname(__FILE__)) . '/' . basename(__FILE__) ); // Deactivate ourself 380 wp_die("Sorry, the Gecka Terms Ordering plugin requires PHP 5 or higher."); 381 } 382 383 global $wpdb; 384 385 $collate = ''; 386 if($wpdb->supports_collation()) { 387 if(!empty($wpdb->charset)) $collate = "DEFAULT CHARACTER SET $wpdb->charset"; 388 if(!empty($wpdb->collate)) $collate .= " COLLATE $wpdb->collate"; 389 } 390 391 $sql = "CREATE TABLE IF NOT EXISTS ". $wpdb->prefix . "termmeta" ." ( 392 `meta_id` bigint(20) unsigned NOT NULL auto_increment, 393 `term_id` bigint(20) unsigned NOT NULL default '0', 394 `meta_key` varchar(255) default NULL, 395 `meta_value` longtext, 396 PRIMARY KEY (meta_id), 397 KEY term_id (term_id), 398 KEY meta_key (meta_key) ) $collate;"; 399 $wpdb->query($sql); 400 401 } 376 402 377 403 public function plugins_loaded () { … … 757 783 } 758 784 785 if ( ! function_exists('wp_list_terms') ) { 786 787 function wp_list_terms ( $args ) { 788 789 wp_parse_args($args); 790 if( ! isset($args['walker']) || ! is_a( $args['walker'], 'Walker') ) $args['walker'] = new Walker_Term(); 791 792 return wp_list_categories( $args ); 793 } 794 } 795 759 796 /** 760 797 * Create HTML list of categories. -
gecka-terms-thumbnails/trunk/readme.txt
r399408 r400640 4 4 Requires at least: 3.0 5 5 Tested up to: 3.2 6 Stable tag: 1.0-beta 16 Stable tag: 1.0-beta2 7 7 Manage tumbnails for categories, tags or any other taxonomy's terms of your Wordpress website. 8 8 … … 33 33 == Changelog == 34 34 35 = 1.0-beta2 = 36 * Fix activation hook 37 35 38 = 1.0-beta1 = 36 39 * First release.
Note: See TracChangeset
for help on using the changeset viewer.