Skip to content

Commit

Permalink
Fix for error "Strict standards: Declaration of Rewrite_Rules_Inspect…
Browse files Browse the repository at this point in the history
…or_List_Table::single_row() should be compatible with WP_List_Table::single_row($item) in ... /wp-content/plugins/rewrite-rules-inspector/rewrite-rules-inspector.php on line 298"
  • Loading branch information
simonhampel committed Aug 5, 2013
1 parent 75f1660 commit c1f0cc6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rewrite-rules-inspector.php
Expand Up @@ -420,17 +420,19 @@ function get_columns() {
*/
function display_rows() {
foreach ( $this->items as $rewrite_rule => $rewrite_data ) {
$this->single_row( $rewrite_rule, $rewrite_data );
$rewrite_data['rule'] = $rewrite_rule;
$this->single_row( $rewrite_data );
}
}

/**
* Display a single row of rewrite rule data
*/
function single_row( $rule, $data ) {
function single_row( $item ) {

$source = $data['source'];
$rewrite = $data['rewrite'];
$rule = $item['rule'];
$source = $item['source'];
$rewrite = $item['rewrite'];

$class = 'source-' . $source;

Expand Down

0 comments on commit c1f0cc6

Please sign in to comment.