File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3776,12 +3776,12 @@ public function the_post() {
37763776 $ post = $ this ->next_post ();
37773777
37783778 // Ensure a full post object is available.
3779- if ( $ post instanceof stdClass ) {
3780- // stdClass indicates that a partial post object was queried.
3781- $ post = get_post ( $ post ->ID );
3782- } elseif ( is_numeric ( $ post ) ) {
3783- // Numeric indicates that only post IDs were queried.
3779+ if ( 'ids ' === $ this ->query_vars ['fields ' ] ) {
3780+ // Post IDs queried.
37843781 $ post = get_post ( $ post );
3782+ } elseif ( 'all ' !== $ this ->query_vars ['fields ' ] ) {
3783+ // Partial object (stdClass) queried.
3784+ $ post = get_post ( $ post ->ID );
37853785 }
37863786
37873787 // Set up the global post object for the loop.
You can’t perform that action at this time.
0 commit comments