Unused vars
This commit is contained in:
parent
2beddc59a7
commit
9d877a3b34
|
@ -66,7 +66,7 @@ class WC_Helper_API {
|
|||
$request_uri = parse_url( $url, PHP_URL_PATH );
|
||||
$query_string = parse_url( $url, PHP_URL_QUERY );
|
||||
|
||||
if ( $query_string ) {
|
||||
if ( is_string( $query_string ) ) {
|
||||
$request_uri .= '?' . $query_string;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ class WC_Helper_Plugin_Info {
|
|||
|
||||
// Look through local Woo plugins by slugs.
|
||||
foreach ( WC_Helper::get_local_woo_plugins() as $plugin ) {
|
||||
$slug = dirname( $plugin['_filename'] );
|
||||
if ( dirname( $plugin['_filename'] ) === $args->slug ) {
|
||||
$plugin['_slug'] = $args->slug;
|
||||
$found_plugin = $plugin;
|
||||
|
|
|
@ -615,7 +615,7 @@ class WC_Helper {
|
|||
'wc-helper-status' => 'helper-disconnected',
|
||||
), admin_url( 'admin.php' ) );
|
||||
|
||||
$result = WC_Helper_API::post( 'oauth/invalidate_token', array(
|
||||
WC_Helper_API::post( 'oauth/invalidate_token', array(
|
||||
'authenticated' => true,
|
||||
) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue