Plugin Directory

Changeset 1789918


Ignore:
Timestamp:
12/20/2017 08:53:31 AM (8 years ago)
Author:
Binternet
Message:

Bugfix (Thanks Paul Tero)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • categories-multiple-images/trunk/categories-multiple-images.php

    r1375150 r1789918  
    44 * Plugin Name: Categories Multiple Images
    55 * Description: Categories Multiple Images Plugin allows you to add multiple images to categories or any other custom taxonomy.
    6  * Version: 1.0.2
     6 * Version: 1.0.3
    77 * Author: Lior Broshi, Binternet
    88 * Author URI: http://www.binternet.co.il
     
    271271       
    272272        for ( $i = 1, $n = $this->settings['total_images']; $i <= $n; $i++ ) {
    273             update_option( "cmi_taxonomy_image{$i}_{$term_id}", $_POST["cmi_taxonomy_image{$i}"] );
     273            $post_field = "cmi_taxonomy_image{$i}";
     274            if ( isset( $_POST[ $post_field ] ) ) {
     275              update_option( $post_field . "_{$term_id}", $_POST[ $post_field ] ); 
     276            }
    274277        }
    275278    }
Note: See TracChangeset for help on using the changeset viewer.