Quantcast
Channel: WordPress.org Forums » [WordPress MU Domain Mapping] Support
Viewing all articles
Browse latest Browse all 3502

Mark Rowatt Anderson on "[Plugin: WordPress MU Domain Mapping] WP 3.6 outputs NOTICE warnings ESCAPE"

$
0
0

If you don't want to turn WP_DEBUG/WP_DEBUG_DISPLAY off, the following fix worked for me:-

Replace the line:-

$dm_domain = $wpdb->escape( $_SERVER[ 'HTTP_HOST' ] );

with:-

$dm_domain = addslashes( $_SERVER[ 'HTTP_HOST' ] );

As far as I can tell, addslashes is all that the $wpdb->escape method was doing in this case, so it should be equivalent.


Viewing all articles
Browse latest Browse all 3502

Trending Articles