File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -857,33 +857,6 @@ public function list_( $_, $assoc_args ) {
857857 parent ::_list ( $ _ , $ assoc_args );
858858 }
859859
860- /**
861- * If have optional args ([<theme>...]) and an all option, then check have something to do.
862- *
863- * @param array $args Passed-in arguments.
864- * @param bool $all All flag.
865- * @return array Same as $args if not all, otherwise all slugs.
866- */
867- private function check_optional_args_and_all ( $ args , $ all , $ verb = 'install ' ) {
868- if ( $ all ) {
869- $ args = array_map (
870- function ( $ item ) {
871- return Utils \get_theme_name ( $ item );
872- },
873- array_keys ( $ this ->get_all_items () )
874- );
875- }
876-
877- if ( empty ( $ args ) ) {
878- if ( ! $ all ) {
879- WP_CLI ::error ( 'Please specify one or more themes, or use --all. ' );
880- }
881- WP_CLI ::success ( 'No themes installed. ' ); // Don't error if --all given for BC.
882- }
883-
884- return $ args ;
885- }
886-
887860 /**
888861 * Gets the template path based on installation type.
889862 */
You can’t perform that action at this time.
0 commit comments