IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
1273 | 1273 | if ( empty($this->permalink_structure) ) |
1274 | 1274 | return $rewrite; |
1275 | 1275 | |
| 1276 | /** |
| 1277 | * Fires before the rewrite rules are generated. |
| 1278 | * |
| 1279 | * @since 4.8.0 |
| 1280 | * |
| 1281 | * @param WP_Rewrite $this Current WP_Rewrite instance, passed by reference. |
| 1282 | */ |
| 1283 | do_action_ref_array( 'pre_generate_rewrite_rules', array( &$this ) ); |
| 1284 | |
1276 | 1285 | // robots.txt -only if installed at the root |
1277 | 1286 | $home_path = parse_url( home_url() ); |
1278 | 1287 | $robots_rewrite = ( empty( $home_path['path'] ) || '/' == $home_path['path'] ) ? array( 'robots\.txt$' => $this->index . '?robots=1' ) : array(); |