Make WordPress Core


Ignore:
Timestamp:
03/11/2014 10:23:51 PM (11 years ago)
Author:
johnbillion
Message:

Avoid searching HTML tags when searching plugins and themes. Fixes #27136. Props enej.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r27356 r27507  
    178178            $term = wp_unslash( $_REQUEST['s'] );
    179179
    180         foreach ( $plugin as $value )
    181             if ( stripos( $value, $term ) !== false )
     180        foreach ( $plugin as $value ) {
     181            if ( false !== stripos( strip_tags( $value ), $term ) ) {
    182182                return true;
     183            }
     184        }
    183185
    184186        return false;
Note: See TracChangeset for help on using the changeset viewer.