OSDN Git Service

add back WP_CLI::out(), just to prevent fatal errors
authorscribu <mail@scribu.net>
Fri, 24 May 2013 13:29:23 +0000 (16:29 +0300)
committerscribu <mail@scribu.net>
Fri, 24 May 2013 13:29:23 +0000 (16:29 +0300)
php/class-wp-cli.php

index 0cc024c..d30f56a 100644 (file)
@@ -266,6 +266,11 @@ class WP_CLI {
        }
 
        // back-compat
+       static function out( $str ) {
+               echo $str;
+       }
+
+       // back-compat
        static function addCommand( $name, $class ) {
                trigger_error( sprintf( 'wp %s: %s is deprecated. use WP_CLI::add_command() instead.',
                        $name, __FUNCTION__ ), E_USER_WARNING );