Changeset 50558 for trunk/src/wp-includes/post.php
- Timestamp:
- 03/21/2021 12:39:25 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r50538 r50558 678 678 } 679 679 680 if ( OBJECT == $output ) {680 if ( OBJECT === $output ) { 681 681 return $kids; 682 } elseif ( ARRAY_A == $output ) {682 } elseif ( ARRAY_A === $output ) { 683 683 $weeuns = array(); 684 684 foreach ( (array) $kids as $kid ) { … … 686 686 } 687 687 return $weeuns; 688 } elseif ( ARRAY_N == $output ) {688 } elseif ( ARRAY_N === $output ) { 689 689 $babes = array(); 690 690 foreach ( (array) $kids as $kid ) { … … 789 789 $_post = $_post->filter( $filter ); 790 790 791 if ( ARRAY_A == $output ) {791 if ( ARRAY_A === $output ) { 792 792 return $_post->to_array(); 793 } elseif ( ARRAY_N == $output ) {793 } elseif ( ARRAY_N === $output ) { 794 794 return array_values( $_post->to_array() ); 795 795 } … … 3693 3693 3694 3694 // Backward compatibility. Prior to 3.1 expected posts to be returned in array. 3695 if ( ARRAY_A == $output ) {3695 if ( ARRAY_A === $output ) { 3696 3696 foreach ( $results as $key => $result ) { 3697 3697 $results[ $key ] = get_object_vars( $result );
Note: See TracChangeset
for help on using the changeset viewer.