Can you explain a bit more please?
Does upgrade delete all files and folder then upgrade.
Or it deletes only core files and not some alien files in core folders.
You could think I am asking because of putting malware in websites, but not, want only to put TinyMCE plugins in core folder. Difficult to call them from theme folder, anything i tried failed.
If upgrade doesnt touch them, put theme in TinyMCE core folder and forget about them, simply.
I’m not sure but I would guess it deletes everything. Easy to test I imagine. Create a folder and do an update. I know it’s not the best way though and I’m sure we could get help on pathing to the Plugins or Themes folder.
http://codex.wordpress.org/Function_Reference/get_template_directory
http://codex.wordpress.org/Function_Reference/plugin_dir_path
Thanks @radices.
Small typo above, “put them” not “put theme”, one character big difference.