/** * See the status of one or all themes. * * ## OPTIONS * * [<theme>] * : A particular theme to show the status for. * * ## EXAMPLES * * $ wp theme status twentysixteen * Theme twentysixteen details: * Name: Twenty Sixteen * Status: Inactive * Version: 1.2 * Author: the WordPress team */ function status($args) { if (isset($args[0])) { $theme = $this->fetcher->get_check($args[0]); $errors = $theme->errors(); if (is_wp_error($errors)) { $message = $errors->get_error_message(); WP_CLI::error($message); } } parent::status($args); }
/** * See the status of one or all themes. * * ## OPTIONS * * [<theme>] * : A particular theme to show the status for. */ function status($args) { parent::status($args); }