Plugin Directory

Changeset 1095051


Ignore:
Timestamp:
02/20/2015 10:48:33 AM (11 years ago)
Author:
pyro3x
Message:

bugfixes - problem when we try to add new category with image

Location:
wpcustom-category-image/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wpcustom-category-image/trunk/README.txt

    r1041678 r1095051  
    33Requires at least: 3.5
    44Tested up to: 3.6 beta 3
    5 Stable tag: 1.1.0
     5Stable tag: 1.1.2
    66
    77The WPCustom Category Image plugin allow users to upload their very own custom category image
     
    4343== Changelog ==
    4444
     45v1.1.2 Bug fixes; Thanks: Thiago Otaviani;
    4546v1.1.0 Bug fixes; Display current image (admin);
    4647v1.0.1 Bug fixes
  • wpcustom-category-image/trunk/WPCustomCategoryImage.php

    r1041674 r1095051  
    88    protected $taxonomies;
    99
    10     public static function install(){
     10    public static function activate(){
    1111
    1212        if( ! ( WP_VERSION >= WP_MIN_VERSION ) )
     
    198198
    199199
    200         if( $this->has_image($taxonomy->term_id) )
     200        if( isset($taxonomy->term_id) && $this->has_image($taxonomy->term_id) )
    201201        {
    202202
  • wpcustom-category-image/trunk/load.php

    r1041674 r1095051  
    44 * Plugin URI: http://eduardostuart.com.br/
    55 * Description: "Customization is a good thing." The Category Image plugin allow users to upload their very own custom category (taxonomy) image to obtain a much more personalized look and feel.
    6  * Version: 1.1.0
     6 * Version: 1.1.2
    77 * Author: Eduardo Stuart
    88 * Author URI: http://eduardostuart.com.br
     
    2828require_once 'WPCustomCategoryImage.php';
    2929
    30 add_action( 'init' , function()
    31 {
    32     WPCustomCategoryImage::initialize();
    33 });
     30add_action( 'init' , array('WPCustomCategoryImage','initialize') );
    3431
    35 
    36 register_activation_hook( __FILE__ , array('WPCustomCategoryImage','install') );
     32register_activation_hook( __FILE__ , array('WPCustomCategoryImage','activate') );
Note: See TracChangeset for help on using the changeset viewer.