UrlToQueryItem.php
private function maybeAdmin() {
        if ( empty( $this->request ) || strpos( $this->request, 'wp-admin/' ) !== FALSE ) {
            $this->error = NULL;
            if (
                ! is_null( $this->perma_q_vars )
                && strpos( $this->request, 'wp-admin/' ) !== FALSE
            ) {
                $this->perma_q_vars = NULL;
            }
        }
    }
private function maybeAdmin() {
        if ( empty( $this->request ) || strpos( $this->request, 'wp-admin/' ) !== FALSE ) {
            $this->error = NULL;
            if (
                ! is_null( $this->perma_q_vars )
                && strpos( $this->request, 'wp-admin/' ) !== FALSE
            ) {
                $this->perma_q_vars = NULL;
            }
        }
    }
private function maybeAdmin ( ) { if ( empty ( $ this -> request ) || strpos ( $ this -> request , 'wp-admin/' ) !== FALSE ) { $ this -> error = NULL ; if ( ! is_null ( $ this -> perma_q_vars ) && strpos ( $ this -> request , 'wp-admin/' ) !== FALSE ) { $ this -> perma_q_vars = NULL ; } } }
Check if the url is for admin, in that case unset all the frontend query variables
Check if the url is for admin in that case unset all the frontend query variables