Page MenuHomePhabricator

When the fields svg, icon and wordmark are defined in $wgLogos, Timeless outputs invalid srcset descriptors
Open, Needs TriagePublicBUG REPORT

Description

Reported on mediawiki.org.

The cause is https://phabricator.wikimedia.org/source/Timeless/browse/master/includes/TimelessTemplate.php$1237, where only the keys 1x, width and height are unset. width and height aren't properties of $wgLogos either. The code should probably just fetch all it needs instead of unsetting things it doesn't need.

Event Timeline

Not exactly; Timeless shouldn't output invalid srcset descriptors in either case, but it should fix this bug regardless.