Skip to content

Commit a0adb6a

Browse files
committed
Update param type for WP_Post constructor to be just object
1 parent 92952de commit a0adb6a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-includes/class-wp-post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public static function get_instance( $post_id ) {
260260
*
261261
* @since 3.5.0
262262
*
263-
* @param WP_Post|object $post Post object.
263+
* @param object $post Post object.
264264
*/
265265
public function __construct( $post ) {
266266
foreach ( get_object_vars( $post ) as $key => $value ) {

src/wp-includes/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ function get_extended( $post ) {
11351135
*
11361136
* @global WP_Post $post Global post object.
11371137
*
1138-
* @param int|object|null $post Optional. Post ID or post object. `null`, `false`, `0` and other PHP falsey values
1138+
* @param int|object|null $post Optional. Post ID or post object. `null`, `false`, `0` and other PHP falsey values
11391139
* return the current global post inside the loop. A numerically valid post ID that
11401140
* points to a non-existent post returns `null`. Defaults to global $post.
11411141
* @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which

0 commit comments

Comments
 (0)