title: WP-CLI Error for Slider Revolution Plugin
body: <p>When running commands for WP-CLI I see the following error message related to the Revolution Slider Plugin. Does anyone know a way to resolve this issue or go around it?</p>
  <p><strong>Slider Revolution Plugin Version:</strong> 5.4.5</p>
  <p><strong>Error Message:</strong></p>
  <pre><code>PHP Fatal error:  Uncaught Error: Call to undefined function create_function() in /var/www/html/test/wp-content/plugins/revslider/includes/framework/functions-wordpress.class.php:258
  </code></pre>
  <p><strong>WP Info:</strong></p>
  <pre><code>-bash-4.2$ wp --info
  OS: Linux 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64
  Shell:  /bin/bash
  PHP binary: /usr/bin/php
  PHP version:    8.0.2
  php.ini used:   /etc/php.ini
  WP-CLI root dir:    phar://wp-cli.phar/vendor/wp-cli/wp-cli
  WP-CLI vendor dir:  phar://wp-cli.phar/vendor
  WP_CLI phar path:   /var/www/html/test
  WP-CLI packages dir:
  WP-CLI global config:
  WP-CLI project config:
  WP-CLI version: 2.4.0
  -bash-4.2$
  </code></pre>
  <p><strong>Stack Trace:</strong></p>
  <pre><code>PHP Fatal error:  Uncaught Error: Call to undefined function create_function() in /var/www/html/test/wp-content/plugins/revslider/includes/framework/functions-wordpress.class.php:258
  Stack trace:
  #0 /var/www/html/test/wp-content/plugins/revslider/revslider.php(87): RevSliderFunctionsWP::registerWidget('RevSliderWidget')
  #1 /var/www/html/test/wp-settings.php(391): include_once('/var/www/html/i...')
  #2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1237): require('/var/www/html/i...')
  #3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner-&gt;load_wordpress()
  #4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner-&gt;start()
  #5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner-&gt;process(Object(WP_CLI\Bootstrap\BootstrapState))
  #6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
  #7 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
  #8 /usr/local/bin/wp(4): include('phar:///usr/loc...')
  #9 {main}
    thrown in /var/www/html/test/wp-content/plugins/revslider/includes/framework/functions-wordpress.class.php on line 258
  Fatal error: Uncaught Error: Call to undefined function create_function() in 
  
  /var/www/html/test/wp-content/plugins/revslider/includes/framework/functions-wordpress.class.php:258
  Stack trace:
  #0 /var/www/html/test/wp-content/plugins/revslider/revslider.php(87): RevSliderFunctionsWP::registerWidget('RevSliderWidget')
  #1 /var/www/html/test/wp-settings.php(391): include_once('/var/www/html/i...')
  #2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1237): require('/var/www/html/i...')
  #3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner-&gt;load_wordpress()
  #4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner-&gt;start()
  #5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner-&gt;process(Object(WP_CLI\Bootstrap\BootstrapState))
  #6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
  #7 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
  #8 /usr/local/bin/wp(4): include('phar:///usr/loc...')
  #9 {main}
    thrown in /var/www/html/test/wp-content/plugins/revslider/includes/framework/functions-wordpress.class.php on line 258
  </code></pre>