Ticket #13115: 13115.patch
File 13115.patch, 654 bytes (added by , 15 years ago) |
---|
-
query.php
1240 1240 $this->query_vars = $this->fill_query_vars($this->query_vars); 1241 1241 $qv = &$this->query_vars; 1242 1242 1243 if ( ! empty($qv['robots']) ) 1243 // is_robots is only true if WP is installed at the root of a domain 1244 $home_path = parse_url(home_url()); 1245 if ( ! empty($qv['robots']) && ( !isset($home_path['path']) || $home_path['path'] == '/' ) ) 1244 1246 $this->is_robots = true; 1247 else 1248 $qv['error'] = '404'; 1245 1249 1246 1250 $qv['p'] = absint($qv['p']); 1247 1251 $qv['page_id'] = absint($qv['page_id']);