In the plugin context, the Subfolders table are not consistent with the main Folders table.
There are some extra characters before the subfolder caption and name. Even more extra characters for Sub-SubFolders … and so on for sub-sub-..-subfolders.
This is how I fixed in the plugin:
Display Caption without the extra – characters:
in admin/class-eazyest-folder-list-table.php#Line521 // $pad = str_repeat( '— ', $level ); $pad = '';
Display Name without the extra – characters:
# in admin/class-eazyest-folder-editor.php # Line926 // $edit_name = str_repeat( '— ', substr_count( $gallery_path, '/' ) ) . $edit_name; $edit_name = substr_count( $gallery_path, '/' ) . $edit_name; # in admin/class-eazyest-folder-editor.php # Line891 - add line before the foreach() $current_directory = ezg_get_gallery_path( $post_id ); # Line894 // $edit_name = str_repeat( '— ', substr_count( $gallery_path, '/' ) ) . $edit_name; $edit_name = str_repeat( '— ', substr_count( $directory, '/' ) - substr_count( $current_directory, '/' ) ) . $edit_name;
The extra characters show the depth of your folder in hierarchy, just like sub-pages. So two dashes has a parent and granparent folder.
Check the above code and you will see.
In any level of subfolder page, much nicer to
– shows no dash for it’s immediate children
– 1 dash for sub-subfolder, …
Otherwise if you are in the eg.5th level subfolder than the Subfolder names gets very long and people will get confused because of the dashes …
Not yet, dashes for Subfolder’s children not relative to the Subfolder.
Please try trunk, it also fixes the error of invisible subfolders.
- The topic ‘Captions and name in subfolders table shows extra characters (in admin)’ is closed to new replies.