Replaced deprecated get_page with get_post
authorLaury GvR <laury@gaslightmedia.com>
Tue, 9 Feb 2016 21:07:23 +0000 (16:07 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 9 Feb 2016 21:07:23 +0000 (16:07 -0500)
functions.php

index 1cb175c..21fad21 100644 (file)
@@ -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 {