Fixing #597 and cleaning up admin/inc/functions_themes.php in terms of d...

...ocblocks and variable/array initialising.