Page MenuHomePhabricator

[Legal Footer] Create config and logic for adding legal footer
Open, HighPublic5 Estimated Story Points

Description

Add a new config in mediawiki-config named $wmgUseFooterLegalContactLink. Set this to false and add logic in CommonSettings.php, alongside the logic for $wmgUseFooterContactLink, for adding the legal footer.

Requirements

  • $wmgUseFooterLegalContactLink config made with default value false
  • $wmgUseFooterLegalContactLink is turned on for beta, so we can test it
  • logic is added to CommonSettings.php for adding the legal footer

Event Timeline

Change #1205513 had a related patch set uploaded (by Pushpit; author: Pushpit):

[operations/mediawiki-config@master] Add wmgUseLegalFooterContactLink configuration

https://gerrit.wikimedia.org/r/1205513

Change #1205513 abandoned by Pushpit:

[operations/mediawiki-config@master] Add wmgUseLegalFooterContactLink configuration

Reason:

issue being solved by the author.

https://gerrit.wikimedia.org/r/1205513

LMora-WMF set the point value for this task to 5.
LMora-WMF moved this task from Incoming to Ready for sprint on the Reader Experience Team board.

Change #1208380 had a related patch set uploaded (by LorenMora; author: LorenMora):

[operations/mediawiki-config@master] [Legal Footer] Create config for adding legal footer

https://gerrit.wikimedia.org/r/1208380

I tested this locally by add to my LocalSettings:

$wgHooks['SkinAddFooterLinks'][] = function ( $sk, $key, &$footerlinks ) {
	if ( $key !== 'places' ) {
		return;
	}

	$footerlinks['legal-safety-contacts'] = \MediaWiki\Html\Html::element(
		'a',
		[ 'href' => \MediaWiki\Skin\Skin::makeInternalOrExternalUrl( $sk->msg( 'wikimedia-legal-safety-contacts-url' )->escaped() ) ],
		$sk->msg( 'wikimedia-legal-safety-contacts' )->text()
	);
};

@aude to backport on Tuesday, December 2nd (with @LMora-WMF and potentially @Volker_E shadowing)

^ different deployment, but we can probably leave this in signoff instead of moving it and then moving it back in two hours

Change #1208380 merged by jenkins-bot:

[operations/mediawiki-config@master] [Legal Footer] Create config for adding legal footer

https://gerrit.wikimedia.org/r/1208380

Mentioned in SAL (#wikimedia-operations) [2025-12-03T21:05:34Z] <aude@deploy2002> Started scap sync-world: Backport for [[gerrit:1208380|[Legal Footer] Create config for adding legal footer (T410163)]]

Mentioned in SAL (#wikimedia-operations) [2025-12-03T21:08:11Z] <aude@deploy2002> aude, lmora: Backport for [[gerrit:1208380|[Legal Footer] Create config for adding legal footer (T410163)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-03T21:14:13Z] <aude@deploy2002> Finished scap sync-world: Backport for [[gerrit:1208380|[Legal Footer] Create config for adding legal footer (T410163)]] (duration: 08m 38s)