Changeset 54496 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 10/11/2022 06:13:34 PM (2 years ago)
- File:
-
- 1 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 if ( ! $post_obj ) { 3967 return false; 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 if ( ! $author_obj ) { 4003 return false; 4004 } 3999 4005 4000 4006 $author = array_map( 'strval', (array) $author ); … … 4033 4039 4034 4040 $cat_obj = $this->get_queried_object(); 4041 if ( ! $cat_obj ) { 4042 return false; 4043 } 4035 4044 4036 4045 $category = array_map( 'strval', (array) $category ); … … 4069 4078 4070 4079 $tag_obj = $this->get_queried_object(); 4080 if ( ! $tag_obj ) { 4081 return false; 4082 } 4071 4083 4072 4084 $tag = array_map( 'strval', (array) $tag ); … … 4316 4328 4317 4329 $page_obj = $this->get_queried_object(); 4330 if ( ! $page_obj ) { 4331 return false; 4332 } 4318 4333 4319 4334 $page = array_map( 'strval', (array) $page ); … … 4423 4438 4424 4439 $post_obj = $this->get_queried_object(); 4440 if ( ! $post_obj ) { 4441 return false; 4442 } 4425 4443 4426 4444 $post = array_map( 'strval', (array) $post ); … … 4470 4488 4471 4489 $post_obj = $this->get_queried_object(); 4490 if ( ! $post_obj ) { 4491 return false; 4492 } 4472 4493 4473 4494 return in_array( $post_obj->post_type, (array) $post_types, true );
Note: See TracChangeset
for help on using the changeset viewer.