Un-deprecate the ParserPreSaveTransformComplete hook
Although it's true that Parsoid doesn't (yet) support this hook, and
the $parser object referenced in the hook is likely going to be changed,
this is a hook added in 1.35 (eb6c5f70d9)
to replace use of an even worse hook. So let's keep the lesser of the
evils, at least for now.
Bug: T236809
Change-Id: I8f866c3b9f1fc51848cfe9364635112371d18e3e
This commit is contained in:
parent
54b0ad3c5f
commit
13d0ad0de6
4 changed files with 2 additions and 6 deletions
|
|
@ -789,9 +789,6 @@ because of Phabricator reports.
|
|||
Use BeforeParserFetchTemplateAndTitle
|
||||
- ParserSectionCreate
|
||||
No replacement; <section> tag wrapping will be done by core in future.
|
||||
- ParserPreSaveTransformComplete
|
||||
No replacement; Content::preSaveTransform() provides for customizable
|
||||
PreSaveTransforms
|
||||
- BeforeParserrenderImageGallery
|
||||
No replacement; MediaHandler provides for customizable media rendering
|
||||
- ParserBeforeTidy
|
||||
|
|
|
|||
|
|
@ -2671,7 +2671,7 @@ $parserOutput: The ParserOutput object.
|
|||
&$text: The text being transformed, before core transformations are done.
|
||||
&$options: The options array being used for the transformation.
|
||||
|
||||
'ParserPreSaveTransformComplete': DEPRECATED since 1.35!
|
||||
'ParserPreSaveTransformComplete':
|
||||
Called from Parser::preSaveTransform() after
|
||||
processing is complete, giving the extension a chance to further modify the
|
||||
wikitext.
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ class DeprecatedHooks {
|
|||
'ParserBeforeTidy' => [ 'deprecatedVersion' => '1.35' ],
|
||||
'ParserFetchTemplate' => [ 'deprecatedVersion' => '1.35' ],
|
||||
'ParserGetVariableValueVarCache' => [ 'deprecatedVersion' => '1.35' ],
|
||||
'ParserPreSaveTransformComplete' => [ 'deprecatedVersion' => '1.35' ],
|
||||
'ParserSectionCreate' => [ 'deprecatedVersion' => '1.35' ],
|
||||
'RevisionInsertComplete' => [ 'deprecatedVersion' => '1.31' ],
|
||||
'UndeleteShowRevision' => [ 'deprecatedVersion' => '1.35' ],
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace MediaWiki\Hook;
|
|||
use Parser;
|
||||
|
||||
/**
|
||||
* @deprecated since 1.35
|
||||
* @stable
|
||||
* @ingroup Hooks
|
||||
*/
|
||||
interface ParserPreSaveTransformCompleteHook {
|
||||
|
|
|
|||
Loading…
Reference in a new issue