Changeset 54496
- Timestamp:
- 10/11/2022 06:13:34 PM (22 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r54464 r54496 3964 3964 3965 3965 $post_obj = $this->get_queried_object(); 3966 3967 3968 3966 3969 3967 3970 if ( in_array( (string) $post_obj->ID, $attachment, true ) ) { … … 3997 4000 3998 4001 $author_obj = $this->get_queried_object(); 4002 4003 4004 3999 4005 4000 4006 $author = array_map( 'strval', (array) $author ); … … 4033 4039 4034 4040 $cat_obj = $this->get_queried_object(); 4041 4042 4043 4035 4044 4036 4045 $category = array_map( 'strval', (array) $category ); … … 4069 4078 4070 4079 $tag_obj = $this->get_queried_object(); 4080 4081 4082 4071 4083 4072 4084 $tag = array_map( 'strval', (array) $tag ); … … 4316 4328 4317 4329 $page_obj = $this->get_queried_object(); 4330 4331 4332 4318 4333 4319 4334 $page = array_map( 'strval', (array) $page ); … … 4423 4438 4424 4439 $post_obj = $this->get_queried_object(); 4440 4441 4442 4425 4443 4426 4444 $post = array_map( 'strval', (array) $post ); … … 4470 4488 4471 4489 $post_obj = $this->get_queried_object(); 4490 4491 4492 4472 4493 4473 4494 return in_array( $post_obj->post_type, (array) $post_types, true ); -
trunk/tests/phpunit/tests/query.php
r54464 r54496 789 789 $this->assertFalse( is_post_type_archive( $post_type ) ); 790 790 } 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 791 900 }
Note: See TracChangeset
for help on using the changeset viewer.