IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
1442 | 1442 | * @since 1.5.0 |
1443 | 1443 | * @access public |
1444 | 1444 | * |
| 1445 | * @param boolean $refresh whether to force a refresh or not (used by flush_rules()) |
1445 | 1446 | * @return array Rewrite rules. |
1446 | 1447 | */ |
1447 | | public function wp_rewrite_rules() { |
1448 | | $this->rules = get_option('rewrite_rules'); |
| 1448 | public function wp_rewrite_rules($refresh = false) { |
| 1449 | $this->rules = $refresh ? false : get_option('rewrite_rules'); |
1449 | 1450 | if ( empty($this->rules) ) { |
1450 | 1451 | $this->matches = 'matches'; |
1451 | 1452 | $this->rewrite_rules(); |
… |
… |
|
1770 | 1771 | unset( $do_hard_later ); |
1771 | 1772 | } |
1772 | 1773 | |
1773 | | delete_option('rewrite_rules'); |
1774 | | $this->wp_rewrite_rules(); |
| 1774 | if ( $hard ) |
| 1775 | delete_option('rewrite_rules'); |
| 1776 | $this->wp_rewrite_rules(true); |
1775 | 1777 | |
1776 | 1778 | /** |
1777 | 1779 | * Filter whether a "hard" rewrite rule flush should be performed when requested. |