mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
WP_Date_Query was only missing one access modifier.
Add access modifier (`public`) to all default widgets' class methods. See #27881, #22234. git-svn-id: https://develop.svn.wordpress.org/trunk@28532 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -105,7 +105,7 @@ class WP_Date_Query {
|
||||
* Accepts 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt',
|
||||
* 'comment_date', 'comment_date_gmt'.
|
||||
*/
|
||||
function __construct( $date_query, $default_column = 'post_date' ) {
|
||||
public function __construct( $date_query, $default_column = 'post_date' ) {
|
||||
if ( empty( $date_query ) || ! is_array( $date_query ) )
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user