Ticket #44171: 44171.diff
File 44171.diff, 479 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/rewrite.php
273 273 */ 274 274 function flush_rewrite_rules( $hard = true ) { 275 275 global $wp_rewrite; 276 277 if ( ! is_admin() ) { 278 _doing_it_wrong( __FUNCTION__, __( 'Rewrite rules should only be updated in wp-admin context.' ), '5.0' ); 279 } 280 276 281 $wp_rewrite->flush_rules( $hard ); 277 282 } 278 283