Followup T49647: meta.m.wikimedia.org user login doesn't work from CommonSettings.php
// Hack for T49647 if ( $wgCentralAuthCookieDomain == 'commons.wikimedia.org' ) { $wgCentralAuthCookieDomain = 'commons.m.wikimedia.org'; } elseif ( $wgCentralAuthCookieDomain == 'meta.wikimedia.org' ) { $wgCentralAuthCookieDomain = 'meta.m.wikimedia.org'; } // Better hack for T49647 $wgHooks['WebResponseSetCookie'][] = static function ( &$name, &$value, &$expire, &$options ) { if ( isset( $options['domain'] ) ) { if ( $options['domain'] == 'commons.wikimedia.org' ) { $options['domain'] = 'commons.m.wikimedia.org'; } elseif ( $options['domain'] == 'meta.wikimedia.org' ) { $options['domain'] = 'meta.m.wikimedia.org'; } } };
Are both neeeded?