Skip to content

Commit

Permalink
Use the root post ID in the tag class
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc Princen committed Dec 9, 2015
1 parent b1b7370 commit 47018a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Front/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public function notify(){
* @param mixed $default
* @return mixed
*/
private function getSetting( $name, $default = false ){
public function getSetting( $name, $default = false ){

if( isset( $this->settings[ $name ] ) )
return $this->settings[ $name ];
Expand Down
3 changes: 2 additions & 1 deletion Classes/Front/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ public static function postData( $tag ){

if( !isset( $post ) || !isset( $post->ID ) ){

$p = get_post( Session::postId() );
//ensure we always take the root post id:
$p = get_post( Session::rootPostId() );

}else{

Expand Down

0 comments on commit 47018a9

Please sign in to comment.