diff --git a/hacklab-dev.php b/hacklab-dev.php index c740e8e697fff9ee8aa4ff9c7521b6e173fc4a10..731c559ed124f36e50bd30e9458fd8120cd75a96 100644 --- a/hacklab-dev.php +++ b/hacklab-dev.php @@ -2,7 +2,7 @@ /* Plugin Name: hacklab/ dev utils Description: Utilidades para o desenvolvimento -Version: 1.0.5 +Version: 1.0.6 Author: hacklab/ Author URI: https://hacklab.com.br/ Text Domain: hacklab-dev-utils diff --git a/lib/cli-utils.php b/lib/cli-utils.php index 5ca37ba07dc1fa8650ac25e0b26b8195eba7d320..65bb20ed3448fd6737bf2f3f97b01749b990673d 100644 --- a/lib/cli-utils.php +++ b/lib/cli-utils.php @@ -80,6 +80,13 @@ class Commands { if( substr( $argument_name, 0, 2 ) == 'q:' ){ $query_key = substr( $argument_name, 2 ); + /** + * Replaces '%' characters in the `$argument_value` with spaces. + */ + if ( $query_key === 's' ) { + $argument_value = str_replace( '%', ' ', $argument_value ); + } + /** * @see https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters *