Skip to content

Use of the InternalParseBeforeLinks hook #4727

@mwjames

Description

@mwjames

Someone pointed me towards [0] "Deprecate InternalParseBeforeLinks hook".

[1] clarifies the task that is expected to be carried out by the hook which has been an integral part of Semantic MediaWiki since the 1.0 [2] (Dec 31, 2007) release. Removing the hook will mean Semantic MediaWiki will no longer work as designed and any wiki that deploys the software will more or less break.

Aside from breaking entire wikis, I'm guessing that around 50% of the tests (~4000 tests) will break as well.

And no, the parser function #set is no equivalent replacement for the [[Foo::Bar]] syntax.

TODO: investigate whether SemanticMediaWiki can use alternatives.

I'm ears but tests are to remain untouched and have to work as before otherwise the situation remains unchanged and will mostly likely break wikis in their present form.

[0] https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/589463/
[1] 47e1af9
[2] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/1.0/includes/SMW_GlobalFunctions.php#L141

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions