From: Laury GvR Date: Tue, 9 Feb 2016 21:05:44 +0000 (-0500) Subject: Replaced deprecated get_page with get_post X-Git-Tag: v1.0.8^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=58a9cff469bb064bd4232f559e7bd0ccfa6dbac0;p=WP-Themes%2Fwesternup.git Replaced deprecated get_page with get_post --- diff --git a/functions.php b/functions.php index a523305..ee48839 100644 --- a/functions.php +++ b/functions.php @@ -281,7 +281,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 {