diff --git a/includes/content/TextContentHandler.php b/includes/content/TextContentHandler.php index b9f99e6dd71..ca980ecc385 100644 --- a/includes/content/TextContentHandler.php +++ b/includes/content/TextContentHandler.php @@ -231,7 +231,7 @@ class TextContentHandler extends ContentHandler { if ( $cpoParams->getGenerateHtml() ) { // Temporary changes as getHtml() is deprecated, we are working on removing usage of it. if ( method_exists( $content, 'getHtml' ) ) { - $method = new ReflectionMethod( 'TextContent', 'getHtml' ); + $method = new ReflectionMethod( $content, 'getHtml' ); $method->setAccessible( true ); $html = $method->invoke( $content ); } else {