better instancing
This commit is contained in:
parent
eed43355b3
commit
1269cc6248
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class Post {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function transform( WP_Post $wp_post ) {
|
public static function transform( WP_Post $wp_post ) {
|
||||||
return new self( $wp_post );
|
return new static( $wp_post );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue