+ if ( isset( $data->url ) && is_string( $data->url ) ) {
+ $parsed = wfParseUrl( $data->url );
+ $mwoUrl = false;
+ if ( $parsed['host'] === 'www.mediawiki.org' ) {
+ $mwoUrl = true;
+ } elseif ( $parsed['host'] === 'mediawiki.org' ) {
+ $mwoUrl = true;
+ $extraErrors[] = '[url] Should use www.mediawiki.org domain';
+ }
+
+ if ( $mwoUrl && $parsed['scheme'] !== 'https' ) {
+ $extraErrors[] = '[url] Should use HTTPS for www.mediawiki.org URLs';
+ }
+ }