From: Laury GvR Date: Tue, 9 Feb 2016 21:07:23 +0000 (-0500) Subject: Replaced deprecated get_page with get_post X-Git-Tag: v1.0.0^2~22 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=cc8654788e9c6c541dc1991ea5314967fdbfd818;p=WP-Themes%2Fshipwreckmuseum.git Replaced deprecated get_page with get_post --- diff --git a/functions.php b/functions.php index 1cb175c..21fad21 100644 --- a/functions.php +++ b/functions.php @@ -319,7 +319,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 {