-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong PHP types with date/time filters (#1335)
The comment type is not `string` but `WP_Comment`. Remove default arguments, all must be given in the filter callback. Clean up obsolete code using global comment variable for older WP. Fix type signatures in qtranxf_format_* to allow `int` timestamps when format is 'U'. Add more checks in case `mysql2date` fails.
- Loading branch information
Showing
1 changed file
with
37 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters