Plugin Directory

Changeset 1086305


Ignore:
Timestamp:
02/10/2015 11:43:08 AM (11 years ago)
Author:
aueda
Message:

mfm dev ver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • media-file-manager/trunk/media-relocator.php

    r1021481 r1086305  
    44Plugin URI: http://tempspace.net/plugins/?page_id=111
    55Description: You can make sub-directories in the upload directory, and move files into them. At the same time, this plugin modifies the URLs/path names in the database. Also an alternative file-selector is added in the editing post/page screen, so you can pick up media files from the subfolders easily.
    6 Version: 1.3.1pre2
     6Version: 1.3.1pre3
    77Author: Atsushi Ueda
    88Author URI: http://tempspace.net/plugins/
     
    267267                    }
    268268                    $dir1[$i]['thumbnail'] = $min_child;
    269                     $dir1[$i]['thumbnail_url'] = mrelocator_path2url($dir .  $dir1[$min_child]['name']);
     269                    if ($min_child >= 0) {
     270                        $dir1[$i]['thumbnail_url'] = mrelocator_path2url($dir .  $dir1[$min_child]['name']);
     271                    } else {
     272                        $dir1[$i]['thumbnail_url'] = "";
     273                    }
    270274                    $backup_sizes = unserialize($dbres_all[$db_idx]->meta_value_c); //get_post_meta( $dbres_all[$db_idx]->post_id, '_wp_attachment_backup_sizes', true );
    271275                    //$meta = wp_get_attachment_metadata( $dbres_all[$db_idx]->post_id );
Note: See TracChangeset for help on using the changeset viewer.