escape the trailing underscore in SHOW TABLES LIKE in delete_blog, fixes #13099
git-svn-id: http://svn.automattic.com/wordpress/trunk@14215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
63de1db1e9
commit
821db5b0b0
|
@ -77,6 +77,9 @@ function wpmu_delete_blog( $blog_id, $drop = false ) {
|
|||
update_blog_status( $blog_id, 'deleted', 1 );
|
||||
|
||||
if ( $drop ) {
|
||||
if ( substr( $blog_prefix, -1 ) == '_' )
|
||||
$blog_prefix = substr( $blog_prefix, 0, -1 ) . '\_';
|
||||
|
||||
$drop_tables = $wpdb->get_results( "SHOW TABLES LIKE '{$blog_prefix}%'", ARRAY_A );
|
||||
$drop_tables = apply_filters( 'wpmu_drop_tables', $drop_tables );
|
||||
|
||||
|
|
Loading…
Reference in New Issue