Changeset 50558
- Timestamp:
- 03/21/2021 12:39:25 PM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/bookmark.php
r48591 r50558 54 54 $_bookmark = sanitize_bookmark( $_bookmark, $filter ); 55 55 56 if ( OBJECT == $output ) {56 if ( OBJECT === $output ) { 57 57 return $_bookmark; 58 } elseif ( ARRAY_A == $output ) {58 } elseif ( ARRAY_A === $output ) { 59 59 return get_object_vars( $_bookmark ); 60 } elseif ( ARRAY_N == $output ) {60 } elseif ( ARRAY_N === $output ) { 61 61 return array_values( get_object_vars( $_bookmark ) ); 62 62 } else { -
trunk/src/wp-includes/comment.php
r50533 r50558 219 219 $_comment = apply_filters( 'get_comment', $_comment ); 220 220 221 if ( OBJECT == $output ) {221 if ( OBJECT === $output ) { 222 222 return $_comment; 223 } elseif ( ARRAY_A == $output ) {223 } elseif ( ARRAY_A === $output ) { 224 224 return $_comment->to_array(); 225 } elseif ( ARRAY_N == $output ) {225 } elseif ( ARRAY_N === $output ) { 226 226 return array_values( $_comment->to_array() ); 227 227 } -
trunk/src/wp-includes/nav-menu.php
r50013 r50558 759 759 } 760 760 761 if ( ARRAY_A == $args['output'] ) {761 if ( ARRAY_A === $args['output'] ) { 762 762 $items = wp_list_sort( 763 763 $items, … … 766 766 ) 767 767 ); 768 $i = 1; 768 769 $i = 1; 770 769 771 foreach ( $items as $k => $item ) { 770 772 $items[ $k ]->{$args['output_key']} = $i++; -
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 ); -
trunk/src/wp-includes/revision.php
r49108 r50558 372 372 } 373 373 374 if ( OBJECT == $output ) {374 if ( OBJECT === $output ) { 375 375 return $revision; 376 } elseif ( ARRAY_A == $output ) {376 } elseif ( ARRAY_A === $output ) { 377 377 $_revision = get_object_vars( $revision ); 378 378 return $_revision; 379 } elseif ( ARRAY_N == $output ) {379 } elseif ( ARRAY_N === $output ) { 380 380 $_revision = array_values( get_object_vars( $revision ) ); 381 381 return $_revision;
Note: See TracChangeset
for help on using the changeset viewer.