Page MenuHomePhabricator

Deprecate Skin::makeVariablesScript
Closed, ResolvedPublic

Description

Skin::makeVariablesScript is a wrapper for ResourceLoader::makeInlineScript
I see no reason for it to be part of the Skin when this can easily be replicated outside the Skin so let's mark as deprecated

acceptance criteria

  • SecurePoll no longer uses Skin::makeVariablesScript
  • The method is deprecated in core

Event Timeline

eprodromou subscribed.

Let us know if there's anything that we need to do here. Is SecurePoll tagged because we need to remove the deprecated call...?

Change 623838 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/extensions/SecurePoll@master] SecurePoll: Remove usage of Skin::makeVariablesScript()

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

Hope it;s okay to move this back into your inbox for review of the above patch.

holger.knust subscribed.

Moving back to later since the same method needs to be replaced in more places. See https://codesearch.wmcloud.org/search/?q=Skin%3A%3AmakeVariablesScript&i=nope&files=&repos=

Removed patch for review tag. Please re-add when other patches are ready.

Change 623838 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] SecurePoll: Remove usage of Skin::makeVariablesScript()

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

Moving back to later since the same method needs to be replaced in more places. See https://codesearch.wmcloud.org/search/?q=Skin%3A%3AmakeVariablesScript&i=nope&files=&repos= Removed patch for review tag. Please re-add when other patches are ready.

It's allowed to hard-deprecate the code while non-wikimedia-deployed extensions are still using it. So the code search should be https://codesearch.wmcloud.org/deployed/?q=Skin%3A%3AmakeVariablesScript&i=nope&files=&repos=

Change 628576 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/core@master] Deprecate Skin::makeVariablesScript()

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

Change 628576 merged by jenkins-bot:
[mediawiki/core@master] Deprecate Skin::makeVariablesScript()

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

Jdlrobson updated the task description. (Show Details)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy