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

Issue #320 - Date Interval Functionality #325

Merged
merged 4 commits into from
Mar 12, 2014
Merged

Issue #320 - Date Interval Functionality #325

merged 4 commits into from
Mar 12, 2014

Conversation

lukecarbis
Copy link
Contributor

For Issue #320.

This pull request adds the WP_Stream_Date_Interval and Carbon classes so that we can leverage the Reports date interval class in core (and other plugins).

It also replaces the Stream list table nav date from / to fields with interval fields.

Adds the WP_Stream_Date_Interval and Carbon classes, and replaces the
date from / date to fields in the Stream list table nav date with the
interval fields.
return $out;
$date_predefined = isset( $_GET['date_predefined'] ) ? esc_attr( $_GET['date_predefined'] ) : '';
$date_from = isset( $_GET['date_from'] ) ? esc_attr( $_GET['date_from'] ) : '';
$date_to = isset( $_GET['date_to'] ) ? esc_attr( $_GET['date_to'] ) : '';
Copy link
Contributor

Choose a reason for hiding this comment

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

@lukecarbis We can use the new wp_stream_filter_input() family here instead.

Instead of checking isset on $_GET.
From stream-predefined-intervals to wp_stream_predefined_date_intervals.
frankiejarrett added a commit that referenced this pull request Mar 12, 2014
Issue #320 - Date Interval Functionality
@frankiejarrett frankiejarrett merged commit ed10b5f into xwp:develop Mar 12, 2014
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.

2 participants