WP 3.8 compatibility

Even if SMOF development was discontinued, I decided to update it and
make compatible with WordPress 3.8
wp 3.8 update
Merge pull request #396 from syamilmj/smof-wp-3.8

Smof wp 3.8