From cc22234893d4810c1f1b10a6483e2fd40ae60271 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 9 Feb 2016 15:55:37 -0500 Subject: [PATCH] Replacing deprecated get_page with get_post --- footer.php | 2 +- front-page.php | 5 ++++- functions.php | 2 +- header.php | 4 ++-- parts/client-info-footer.php | 2 +- parts/off-canvas-menu.php | 2 +- sidebar.php | 2 +- 7 files changed, 11 insertions(+), 8 deletions(-) diff --git a/footer.php b/footer.php index 458f472..0d3ba57 100644 --- a/footer.php +++ b/footer.php @@ -17,7 +17,7 @@ Twitter YouTube Instagram - + Blog diff --git a/front-page.php b/front-page.php index 28349ec..20969d9 100644 --- a/front-page.php +++ b/front-page.php @@ -18,7 +18,7 @@

MICHIGAN’S ANSWER TO GREAT GOLF

Whether you’re looking for classic layouts, championship challenges, or a weekend oasis of golf, Michigan’s Central Swing has it all. With 11 amazing courses and 11 relaxing retreats, Michigan’s Central Swing is the destination every golfer is looking for.

- + more info... @@ -39,3 +39,6 @@
+ + + diff --git a/functions.php b/functions.php index d421303..f742f00 100644 --- a/functions.php +++ b/functions.php @@ -335,7 +335,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 { diff --git a/header.php b/header.php index 7af0740..aaf8999 100644 --- a/header.php +++ b/header.php @@ -27,7 +27,7 @@ Note 2: 'Nb cols' parameter for Bootstrap only. Twitter YouTube Instagram - + Blog @@ -39,7 +39,7 @@ Note 2: 'Nb cols' parameter for Bootstrap only.