milohuang / reverie

Reverie is a versatile HTML5 responsive WordPress framework based on ZURB's Foundation.
http://theakiba.com/reverie/
MIT License
916 stars 196 forks source link

Changes to presstrends function #98

Closed osiux closed 11 years ago

osiux commented 12 years ago

Just some little changes .I apologize for all the "remove white spaces" change, i have my editor configured to do that.

Updated to use wp_get_theme() function since the old one (get_theme_data) is deprecated since WP 3.4

Initialized $plugin_name to avoid an undefined variable notice.

milohuang commented 12 years ago

wp_get_theme() is not supported for WP under 3.4 and causes error, thus not a good idea at this point.

osiux commented 12 years ago

I think we should update our WP versions all the time, but you are right. How about this? Use version_compare to choose what function we use :)

mindctrl commented 12 years ago

WP 3.4.1 and 3.4.2 both included security updates. I think support for anything older than 3.4.* should be dropped.