Skip to content

Commit

Permalink
*reorder_rewrite_rules method not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Jan 2, 2017
1 parent bdffa29 commit f06f782
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/class-criticalcss.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,23 +141,6 @@ public static function parse_request( WP &$wp ) {
unset( $wp->query_vars['nocache'] );
}
}

/**
* @param array $rules
*
* @return array
*/
public static function reorder_rewrite_rules( array $rules ) {
$top_rules = array_filter( $rules, function ( $rule ) {
return false !== strpos( $rule, 'nocache' );
} );
$bottom_rules = array_filter( $rules, function ( $rule ) {
return false === strpos( $rule, 'nocache' );
} );

return array_merge( $top_rules, $bottom_rules );
}

/**
* @param $vars
*
Expand Down

0 comments on commit f06f782

Please sign in to comment.