diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index 953f917d27..f1168504bb 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -4208,6 +4208,17 @@ class WP_Query { $more = $elements['more']; $numpages = $elements['numpages']; + /** + * Fires once the post data has been setup. + * + * @since 2.8.0 + * @since 4.1.0 Introduced `$this` parameter. + * + * @param WP_Post $post The Post object (passed by reference). + * @param WP_Query $this The current Query object (passed by reference). + */ + do_action_ref_array( 'the_post', array( &$post, &$this ) ); + return true; } @@ -4298,17 +4309,6 @@ class WP_Query { $multipage = 0; } - /** - * Fires once the post data has been setup. - * - * @since 2.8.0 - * @since 4.1.0 Introduced `$this` parameter. - * - * @param WP_Post $post The Post object (passed by reference). - * @param WP_Query $this The current Query object (passed by reference). - */ - do_action_ref_array( 'the_post', array( &$post, &$this ) ); - $elements = compact( 'id', 'authordata', 'currentday', 'currentmonth', 'page', 'pages', 'multipage', 'more', 'numpages' ); return $elements; diff --git a/wp-includes/version.php b/wp-includes/version.php index 160f91857a..67b369dae4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-RC2-45280'; +$wp_version = '5.2-RC2-45286'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.