Make WordPress Core


Ignore:
Timestamp:
01/16/2015 09:18:52 PM (10 years ago)
Author:
wonderboymusic
Message:

Remove unused local vars in delete_plugins(), delete_theme(), WP_Date_Query->validate_date_values(), global_terms(), and WP_Text_Diff_Renderer_Table->_changed().

This will clear out the "Unused Code" label in the next Scrutinizer report.

See #30799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/wp-diff.php

    r31135 r31217  
    274274
    275275                // If they're too different, don't include any <ins> or <dels>
    276                 if ( $diff_count = preg_match_all( '!(<ins>.*?</ins>|<del>.*?</del>)!', $diff, $diff_matches ) ) {
     276                if ( preg_match_all( '!(<ins>.*?</ins>|<del>.*?</del>)!', $diff, $diff_matches ) ) {
    277277                    // length of all text between <ins> or <del>
    278278                    $stripped_matches = strlen(strip_tags( join(' ', $diff_matches[0]) ));
Note: See TracChangeset for help on using the changeset viewer.