Ticket #47087: 47087.diff
File 47087.diff, 455 bytes (added by , 6 years ago) |
---|
-
src/wp-includes/rewrite.php
diff --git a/src/wp-includes/rewrite.php b/src/wp-includes/rewrite.php index a03754f272..8041f221f3 100644
a b function add_feed( $feedname, $function ) { 273 273 */ 274 274 function flush_rewrite_rules( $hard = true ) { 275 275 global $wp_rewrite; 276 $wp_rewrite->flush_rules( $hard ); 276 if ( is_callable ( $wp_rewrite->flush_rules ) ) { 277 $wp_rewrite->flush_rules( $hard ); 278 } 277 279 } 278 280 279 281 /**