Skip to content

RestrictedFunctions: Add stats_get_csv()#464

Merged
rebeccahum merged 2 commits intodevelopfrom
fix_461
Feb 6, 2020
Merged

RestrictedFunctions: Add stats_get_csv()#464
rebeccahum merged 2 commits intodevelopfrom
fix_461

Conversation

@rebeccahum
Copy link
Contributor

Fixes #461.

@rebeccahum rebeccahum requested a review from GaryJones January 31, 2020 00:18
@GaryJones
Copy link
Contributor

Needs unit tests.

@rebeccahum
Copy link
Contributor Author

@GaryJones Whoops. Done!

get_page_by_path( $page_path ); // Warning.

$popular = stats_get_csv( 'postviews', [ 'days' => 2, 'limit' => 20 ] ); // Error.
$popular = custom_stats_get_csv( 'postviews', [ 'days' => 2, 'limit' => 20 ] ); // Ok. No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a clear linespace at the end of the file.

@rebeccahum rebeccahum merged commit 478f56c into develop Feb 6, 2020
@rebeccahum rebeccahum deleted the fix_461 branch February 6, 2020 15:46
@GaryJones GaryJones added this to the 2.0.1 milestone Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add stats_get_csv to restricted functions

2 participants