Unused vars

This commit is contained in:
Mike Jolley 2017-08-23 14:40:34 +01:00
parent 2beddc59a7
commit 9d877a3b34
3 changed files with 2 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -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,
) );