diff --git src/wp-includes/query.php src/wp-includes/query.php
index 2a77cc4..a9009ea 100644
|
|
class WP_Query { |
1230 | 1230 | public $is_embed = false; |
1231 | 1231 | |
1232 | 1232 | /** |
| 1233 | * True if query is within the context of a REST request. |
| 1234 | * |
| 1235 | * @since 4.4.0 |
| 1236 | * @access public |
| 1237 | * @var bool |
| 1238 | */ |
| 1239 | public $is_rest = false; |
| 1240 | |
| 1241 | /** |
1233 | 1242 | * Set if query is within comments popup window. |
1234 | 1243 | * |
1235 | 1244 | * @since 1.5.0 |
… |
… |
class WP_Query { |
4702 | 4711 | } |
4703 | 4712 | |
4704 | 4713 | /** |
| 4714 | * Is the query within the context of a REST request? |
| 4715 | * |
| 4716 | * @since 4.4.0 |
| 4717 | * |
| 4718 | * @return bool |
| 4719 | */ |
| 4720 | public function is_rest() { |
| 4721 | return (bool) $this->is_rest; |
| 4722 | } |
| 4723 | |
| 4724 | /** |
4705 | 4725 | * Is the query the main query? |
4706 | 4726 | * |
4707 | 4727 | * @since 3.3.0 |