replace anonymous functions, http://wordpress.org/support/topic/wordpress-39-issue