Skip to content

Commit

Permalink
minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieHuizing committed Jun 21, 2019
1 parent abdd554 commit 2eccda3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Tags: woocommerce, connect, exact, exact globe, xcore, d4d, dealer4dealer, globe
Requires at least: 4.7.5
Tested up to: 4.9.8
Stable tag: 1.0.1
Stable tag: 1.0.2
License: The MIT License (MIT)

This module extends the api of Woocommerce and is needed for our Globe connector. For more information or support see http://www.dealer4dealer.nl.
Expand Down
2 changes: 1 addition & 1 deletion globe.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: globe Rest API extension
Plugin URI: http://www.dealer4dealer.nl
description: Extend WC Rest API to support globe requests
@Version: 1.0.1
@Version: 1.0.2
@Author: Dealer4Dealer
Author URI: http://www.dealer4dealer.nl
Requires at least: 4.7.5
Expand Down
2 changes: 1 addition & 1 deletion includes/class-globe-customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function init()

public function get_items($request)
{
$date_modified = $request['date_modified'] ?? 0;
$date_modified = $request['date_modified'] ?: 0;

$prepared_args = array();
$prepared_args['exclude'] = $request['exclude'];
Expand Down
5 changes: 3 additions & 2 deletions includes/class-globe-user-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function query() {
INNER JOIN (
SELECT user_id, meta_key, meta_value
FROM wp_usermeta AS meta1
FROM {$wpdb->usermeta} AS meta1
WHERE meta1.meta_key = %s
) as meta1 on users.ID = meta1.user_id
Expand All @@ -48,7 +48,7 @@ public function query() {
ORDER BY %s ASC
";

$cap = $wpdb->get_blog_prefix( $blog_id ) . 'capabilities';
$cap = $wpdb->get_blog_prefix() . 'capabilities';
$key = 'date_modified';


Expand All @@ -61,6 +61,7 @@ public function query() {
$this->results = $wpdb->get_col( $this->request );
}

return $this->results;
if ( isset( $qv['count_total'] ) && $qv['count_total'] )
$this->total_users = (int) $wpdb->get_var( apply_filters( 'found_users_query', 'SELECT FOUND_ROWS()' ) );

Expand Down
2 changes: 1 addition & 1 deletion includes/class-globe.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class Globe
{
private $_version = '1.0.1';
private $_version = '1.0.2';
protected static $_instance = null;
protected static $_productInstance = null;

Expand Down

0 comments on commit 2eccda3

Please sign in to comment.