Skip to content

Commit 4930c7a

Browse files
authored
Merge pull request #400 from ernilambar/fix-doc-parse-theme-trait
Correct param type in Parse Theme Name trait
2 parents 8071370 + c47fd69 commit 4930c7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/WP_CLI/ParseThemeNameInput.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ protected function is_theme_version_valid( $slug, $version ) {
139139
/**
140140
* Get the status for a given theme.
141141
*
142-
* @param string $theme Theme to get the status for.
142+
* @param WP_Theme $theme Theme to get the status for.
143143
*
144144
* @return string Status of the theme.
145145
*/
@@ -158,7 +158,7 @@ protected function get_status( $theme ) {
158158
/**
159159
* Check whether a given theme is the active theme.
160160
*
161-
* @param string $theme Theme to check.
161+
* @param WP_Theme $theme Theme to check.
162162
*
163163
* @return bool Whether the provided theme is the active theme.
164164
*/
@@ -169,7 +169,7 @@ protected function is_active_theme( $theme ) {
169169
/**
170170
* Check whether a given theme is the active theme parent.
171171
*
172-
* @param string $theme Theme to check.
172+
* @param WP_Theme $theme Theme to check.
173173
*
174174
* @return bool Whether the provided theme is the active theme.
175175
*/

0 commit comments

Comments
 (0)