Plugin Directory

Changeset 2342940


Ignore:
Timestamp:
07/19/2020 02:01:28 AM (6 years ago)
Author:
augustinfotech
Message:

Compatible with WordPress 5.4.2

Location:
multiupload-in-custom-taxonomy/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • multiupload-in-custom-taxonomy/trunk/include/ai_taxonomy_list.php

    r1051513 r2342940  
    3535                            }
    3636                            ?>
    37                             <input type="checkbox" name="ai_taxonomy_name[]" id="ai_taxonomy_name[]" value="<?php echo $value; ?>" <?php if($taxonomy){echo "checked";} ?>  />
     37                            <input type="checkbox" name="ai_taxonomy_name[]" id="ai_taxonomy_name[]" value="<?php echo $value; ?>" <?php if(isset($taxonomy) && !empty($taxonomy)){echo "checked";} ?>  />
    3838                        </td>
    3939                        <?php $value = preg_replace('/[^A-Za-z0-9\-]/', ' ', $value); ?>
  • multiupload-in-custom-taxonomy/trunk/include/class-multiupload-in-taxonomy-admin.php

    r1251916 r2342940  
    159159        $term_id = $value.'_term_id';
    160160        $$term_id = $tag->term_id;
    161         $image_ids = $value.'_image_ids';       
     161        $image_ids = $value.'_image_ids';
     162        $total = 0;
    162163        $$image_ids = get_metadata('taxonomy', $$term_id, $value.'_image', true) ;
    163 
    164         $total = (count($$image_ids)-1);
     164        if($$image_ids != '')
     165        {
     166            $total = (count($$image_ids)-1);
     167        }
     168       
    165169        $JS = "<script>totalItems=".$total.";var plugin_dir = '".get_bloginfo('template_url')."';";
    166170        $JS .="</script>";
  • multiupload-in-custom-taxonomy/trunk/readme.txt

    r1298877 r2342940  
    33Tags: multiupload in taxonomy, multiupload in custom taxonomy, multiupload,image upload,taxonomy,custom taxonomy,multiple image upload
    44Requires at least: 3.6
    5 Tested up to: 4.2.3
     5Tested up to: 5.4.2
    66Stable tag: 1.2
    77License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.