Making WordPress.org


Ignore:
Timestamp:
01/22/2015 04:03:34 AM (10 years ago)
Author:
nacin
Message:

Remove incorrect usage of wpdb::prepare().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php

    r906 r1162  
    345345        $component_unreplied = wp_cache_get( 'trac_tickets_by_component_unreplied' );
    346346        if ( ! $component_unreplied ) {
    347             $rows = $this->trac->get_results( $this->trac->prepare( "SELECT id, component FROM ticket t
     347            $rows = $this->trac->get_results( "SELECT id, component FROM ticket t
    348348                WHERE id NOT IN (SELECT ticket FROM ticket_change WHERE ticket = t.id AND t.reporter <> author AND field = 'comment' AND newvalue <> '')
    349                 AND status <> 'closed'" ) );
     349                AND status <> 'closed'" );
    350350            $component_unreplied = array();
    351351            foreach ( $rows as $row ) {
Note: See TracChangeset for help on using the changeset viewer.