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

index 7021d5a..e3d1a22 100644 (file)
@@ -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 {