*/ private static $formattingFunctions = array( 'antispambot' => true, 'array_fill' => true, 'ent2ncr' => true, 'implode' => true, 'join' => true, 'nl2br' => true, 'sprintf' => true, 'vsprintf' => true, 'wp_sprintf' => true, ); /** * Check if a particular function is regarded as a formatting function. * * @since 3.0.0 * * @param string $functionName The name of the function to check. * * @return bool */ public static function is_formatting_function( $functionName ) { return isset( self::$formattingFunctions[ strtolower( $functionName ) ] ); } }