Commit f95d86ef authored by Everaldo Matias's avatar Everaldo Matias
Browse files

Replaces '%' characters in the with spaces.

parent e786173f
......@@ -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
......
......@@ -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
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment