Make WordPress Core

Changeset 14215


Ignore:
Timestamp:
04/24/2010 04:15:00 AM (16 years ago)
Author:
wpmuguru
Message:

escape the trailing underscore in SHOW TABLES LIKE in delete_blog, fixes #13099

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r14206 r14215  
    7878
    7979        if ( $drop ) {
     80                if ( substr( $blog_prefix, -1 ) == '_' )
     81                        $blog_prefix =  substr( $blog_prefix, 0, -1 ) . '\_';
     82
    8083                $drop_tables = $wpdb->get_results( "SHOW TABLES LIKE '{$blog_prefix}%'", ARRAY_A );
    8184                $drop_tables = apply_filters( 'wpmu_drop_tables', $drop_tables );
Note: See TracChangeset for help on using the changeset viewer.