OSDN Git Service

use wp_get_theme() instead of get_theme_data()
authorscribu <mail@scribu.net>
Fri, 8 Mar 2013 13:45:41 +0000 (15:45 +0200)
committerscribu <mail@scribu.net>
Fri, 8 Mar 2013 19:09:39 +0000 (21:09 +0200)
php/commands/theme.php

index 9ba7c79..ee087bb 100644 (file)
@@ -41,7 +41,7 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
        }
 
        protected function get_details( $stylesheet ) {
-               return get_theme_data( $stylesheet );
+               return wp_get_theme( $stylesheet );
        }
 
        /**
@@ -52,7 +52,7 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade {
        public function activate( $args = array() ) {
                list( $stylesheet, $child ) = $this->parse_name( $args );
 
-               $details = get_theme_data( $stylesheet );
+               $details = wp_get_theme( $stylesheet );
 
                $parent = $details['Template'];