Skip to content

Commit

Permalink
loadPost() set private
Browse files Browse the repository at this point in the history
  • Loading branch information
hokoo committed Aug 21, 2021
1 parent dc94bc0 commit 3271cf5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion wpPostAble.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
interface wpPostAble{
public function getPost(): WP_Post;
public function savePost();
public function loadPost( int $post_id );
public function getPostType();
public function getTitle();
public function setTitle( string $title );
Expand Down
2 changes: 1 addition & 1 deletion wpPostAbleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function savePost(): self {
* @return $this
* @throws wppaLoadPostException
*/
public function loadPost( int $post_id ): self {
private function loadPost( int $post_id ): self {

if (
empty( $post_id ) ||
Expand Down

0 comments on commit 3271cf5

Please sign in to comment.