diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 48ed2326a..9015186a3 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1338,6 +1338,7 @@ function rewrite_rules($matches = '', $permalink_structure = '') { $rewrite = $rewrite + $post_rewrite; + $rewrite = apply_filters('rewrite_rules_array', $rewrite); return $rewrite; }