Flatten directory in linux

Here is a few simple commands to flatten a directory in linux:

find . -type f -exec mv --backup=t {} . \;
find . -depth -exec rmdir {} \;

Notice: compact() [function.compact]: Undefined variable: limits in /var/www/ossisoft.dk/public_html/blog/wp-includes/class-wp-comment-query.php on line 853

Notice: compact() [function.compact]: Undefined variable: groupby in /var/www/ossisoft.dk/public_html/blog/wp-includes/class-wp-comment-query.php on line 853