mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Assume WP_DEBUG is defined in wpdb. Remove unnecessary constant() calls. Ensure DB_COLLATE defined as empty string doesn't override default Multisite collation. fixes #12041, see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13209 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1274,8 +1274,7 @@ function signup_nonce_check( $result ) {
|
||||
|
||||
function maybe_redirect_404() {
|
||||
global $current_site;
|
||||
if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && constant( 'NOBLOGREDIRECT' ) != '' ) {
|
||||
$destination = constant( 'NOBLOGREDIRECT' );
|
||||
if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = NOBLOGREDIRECT ) ) {
|
||||
if ( $destination == '%siteurl%' )
|
||||
$destination = $current_site->domain . $current_site->path;
|
||||
wp_redirect( $destination );
|
||||
|
||||
Reference in New Issue
Block a user