We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f1213 commit 680797cCopy full SHA for 680797c
src/PostTypes/Post.php
@@ -134,7 +134,7 @@ public function withModifiedDate()
134
135
public function withParent()
136
{
137
- $this->parent = new self($this->WP_Post->post_parent);
+ // $this->parent = new self($this->WP_Post->post_parent ?: 0);
138
139
return $this;
140
}
src/Terms/Term.php
@@ -2,6 +2,8 @@
2
3
namespace OOPWP\Terms;
4
5
+use WP_Term;
6
+
7
class Term
8
9
public int $id;
@@ -66,7 +68,7 @@ public function withUrl()
66
68
67
69
70
- $this->parent = new self($this->WP_Term->parent, $this->taxonomy);
71
+ // $this->parent = new Term($this->WP_Term->parent, $this->taxonomy);
72
73
74
0 commit comments