From: Laury GvR Date: Tue, 9 Feb 2016 21:09:07 +0000 (-0500) Subject: Replace deprecated get_page with get_post X-Git-Tag: v1.0.0^2~8 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=41f9a7eca0758120ace33a9e68ce806771bb71fd;p=WP-Themes%2Flittlefieldtownship.git Replace deprecated get_page with get_post --- diff --git a/functions.php b/functions.php index 7021d5a..e3d1a22 100644 --- a/functions.php +++ b/functions.php @@ -259,7 +259,7 @@ function glm_side_menu() { global $post; $parents = get_post_ancestors($post->ID); $id = ($parents) ? $parents[count($parents)-1]: $post->ID; - $parent = get_page( $id ); + $parent = get_post( $id ); if ($id == 0) { $ID = $post->ID; } else {