Adds a supportsURLLoading method which returns false to user tokens and user options modules. This prevents them from being linked to direction which fixes an issue where in debug mode logged in users were being served anon tokens and options. This should resolve bug #34469.
This commit is contained in:
parent
3219219c29
commit
4e4e4ec143
2 changed files with 14 additions and 0 deletions
|
|
@ -79,6 +79,13 @@ class ResourceLoaderUserOptionsModule extends ResourceLoaderModule {
|
|||
array( $this->contextUserOptions( $context ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function supportsURLLoading() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -54,6 +54,13 @@ class ResourceLoaderUserTokensModule extends ResourceLoaderModule {
|
|||
array( $this->contextUserTokens( $context ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function supportsURLLoading() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue