From cb529d4bcaad725f0f356475cd673d11b029f3fc Mon Sep 17 00:00:00 2001 From: Graziano Vincini Date: Wed, 25 Feb 2015 16:45:35 +0100 Subject: [PATCH] Aeria Post Raw Fix extends Signed-off-by: Graziano Vincini --- classes/AeriaPostRaw.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/AeriaPostRaw.php b/classes/AeriaPostRaw.php index 8786785..5972c40 100644 --- a/classes/AeriaPostRaw.php +++ b/classes/AeriaPostRaw.php @@ -2,7 +2,7 @@ if( false === defined('AERIA') ) exit; -class AeriaPostRaw { +class AeriaPostRaw extends AeriaPost { public function __construct($id,$type=null){ if($id){ if(is_a($id,'WP_Post')){ @@ -25,7 +25,7 @@ public function __construct($id,$type=null){ $this->parent = ($t_post->post_parent)?new self($t_post->post_parent):null; } } - + public function loadAsPage($id){ if($id){ if(is_a($id,'WP_Post')){ @@ -33,7 +33,7 @@ public function loadAsPage($id){ } else { $t_post = is_numeric($id)?get_page($id):get_page_by_path($id); } - + $this->id = $t_post->ID; $this->title = $t_post->post_title; $this->content = $t_post->post_content;