| Addshore added a comment. |
So, I have managed to confirm that when using api.php the interwiki sorting does not happen.
Currently visible @ https://de.wikipedia.beta.wmflabs.org/wiki/Spezial:ApiSandbox#action="">
This has been caused by one of the few changed to the code when being extracted from Wikibase.
In order to make sure the InterwikiSorting hook is the last hook registered (as other hooks my add / fiddle with interwiki links) the hook is registered in the BeforeInitialize hook.
The BeforeInitialize hook is not run for entry through api.php (and possible maintenance scripts)
It would make sense that something in the api or the jobqueue (which uses maint scripts) was thus causing the issues, although hard to be 100% sure of this currently.
Cc: gerritbot, Amire80, Mathglot, TerraCodes, Jay8g, Lydia_Pintscher, Addshore, Aklapper, Nirmos, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, Maathavan, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
