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

use time() instead of current_datetime() for WP 4.x compatibility #6

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

stklcode
Copy link
Owner

Fixes regression from #3 (use GMT timestamp for dynamic update)

The function current_datetime() has been introduced in WP 5.3, but the Plugin should maintain compatibility with 4.x for now. No idea why this has not been caught by PHPCS, but that's what manual testing is for...

We now simply use PHP's time() instead of reverting to current_time( 'timestamp' ) which is rather misleading.

The function current_datetime() has been introduced in WP 5.3, but
the Plugin should maintain compatibility with 4.x for now.
@stklcode stklcode added the bug Something isn't working label Apr 27, 2020
@stklcode stklcode added this to the 1.1 milestone Apr 27, 2020
@stklcode stklcode merged commit cb8cbbf into develop Apr 28, 2020
@stklcode stklcode deleted the fix/no-current_datetime branch April 28, 2020 15:37
@stklcode stklcode self-assigned this Apr 28, 2020
stklcode added a commit that referenced this pull request May 2, 2020
The function current_datetime() has been introduced in WP 5.3, but
the Plugin should maintain compatibility with 4.x for now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant