We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ba40cc commit 0a29f25Copy full SHA for 0a29f25
1 file changed
src/Profiler.php
@@ -79,10 +79,10 @@ public function get_loggers() {
79
* Run the profiler against WordPress
80
*/
81
public function run() {
82
- $url = WP_CLI::get_runner()->config['url'];
83
- $path = '';
+ $url = WP_CLI::get_runner()->config['url'];
+ $path = '';
84
if ( ! empty( $url ) ) {
85
- $parsed_url = @parse_url( $url );
+ $parsed_url = wp_parse_url( $url );
86
if ( false !== $parsed_url && isset( $parsed_url['path'] ) ) {
87
$path = $parsed_url['path'];
88
} else {
0 commit comments