Changeset 3791 for trunk/wp-includes/query.php
- Timestamp:
- 05/22/2006 10:06:06 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r3772 r3791 156 156 157 157 return $wp_query->is_preview; 158 } 159 160 function is_robots() { 161 global $wp_query; 162 163 return $wp_query->is_robots; 158 164 } 159 165 … … 273 279 var $is_admin = false; 274 280 var $is_attachment = false; 281 var $is_robots = false; 275 282 276 283 function init_query_flags() { … … 293 300 $this->is_admin = false; 294 301 $this->is_attachment = false; 302 $this->is_robots = false; 295 303 } 296 304 … … 320 328 $this->query = $query; 321 329 $this->query_vars = $qv; 330 } 331 332 if ( ! empty($qv['robots']) ) { 333 $this->is_robots = true; 334 return; 322 335 } 323 336
Note: See TracChangeset
for help on using the changeset viewer.