Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
open-source
Utilidades para desenvolvimento
Commits
f95d86ef
Commit
f95d86ef
authored
8 months ago
by
Everaldo Matias
Browse files
Options
Download
Email Patches
Plain Diff
Replaces '%' characters in the with spaces.
parent
e786173f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
hacklab-dev.php
hacklab-dev.php
+1
-1
lib/cli-utils.php
lib/cli-utils.php
+7
-0
No files found.
hacklab-dev.php
View file @
f95d86ef
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
lib/cli-utils.php
View file @
f95d86ef
...
...
@@ -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
*
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment