Viewing Media in Gallery theme error

When I use the View option in my media library I get the following error…

Fatal error: Call to undefined function wp_get_the_attachment_link() in …/wp-content/themes/gallery/library/functions/loop-functions.php on line 324

Running current version of Gallery and WP.

Thanks!