OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a718da7
)
use wp_get_theme() instead of get_theme_data()
author
scribu
<mail@scribu.net>
Fri, 8 Mar 2013 13:45:41 +0000
(15:45 +0200)
committer
scribu
<mail@scribu.net>
Fri, 8 Mar 2013 19:09:39 +0000
(21:09 +0200)
php/commands/theme.php
patch
|
blob
|
history
diff --git
a/php/commands/theme.php
b/php/commands/theme.php
index
9ba7c79
..
ee087bb
100644
(file)
--- a/
php/commands/theme.php
+++ b/
php/commands/theme.php
@@
-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'];