diff --git a/includes/Description2.php b/includes/Description2.php index 29e0e7d..c14e74d 100644 --- a/includes/Description2.php +++ b/includes/Description2.php @@ -81,11 +81,6 @@ class Description2 { [ static::class, 'parserFunctionCallback' ], Parser::SFH_OBJECT_ARGS ); - $parser->setFunctionTagHook( - 'metadesc', - [ static::class, 'tagCallback' ], - Parser::SFH_OBJECT_ARGS - ); return true; } @@ -101,22 +96,6 @@ class Description2 { return ''; } - /** - * @param Parser $parser The parser. - * @param PPFrame $frame Not used. - * @param string $content The contents of the tag (if any). - * @param string[] $attributes The tag attributes (if any). - * @return string - */ - public static function tagCallback( Parser $parser, PPFrame $frame, $content, $attributes ) { - $contentAttr = isset( $attributes['content'] ) ? $attributes['content'] : null; - $desc = isset( $content ) ? $content : $contentAttr; - if ( isset( $desc ) ) { - self::setDescription( $parser, $desc ); - } - return ''; - } - /** * @param OutputPage &$out The output page to add the meta element to. * @param ParserOutput $parserOutput The parser output to get the description from.