Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix inconsistency between number of total visits and first date #150

Merged
merged 2 commits into from
May 17, 2020

Conversation

stklcode
Copy link
Contributor

Initially reported in WP support forums (German): https://wordpress.org/support/topic/zeige-gesamtzahlen-dashboard/

Date has been taken from the first data point of the output range while the total number of hits is directly requested from the database.

Apparently the shortcut of simply copying the first date in the output array ($stats['visits'][0]['date']) was correct when #134 has been opened, but has become incorrect when #72 has finally been merged which split the display and storage range.

Now the first date is also qeueried along with the total count.

@stklcode stklcode added the bug label May 12, 2020
@stklcode stklcode added this to the 1.7.1 milestone May 12, 2020
Date has been taken from the first data point of the output range while
the total number of hits is directly requested from the database.
Now the first date is also qeueried along with the taotal count.
@stklcode stklcode force-pushed the fix/totals-date-consistency branch from e402be2 to 14fe501 Compare May 16, 2020 08:08
@patrickrobrecht patrickrobrecht merged commit e237ce2 into master May 17, 2020
@patrickrobrecht patrickrobrecht deleted the fix/totals-date-consistency branch May 17, 2020 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants