mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
Coding Standards: Always use parentheses when instantiating an object.
Note: This will be enforced by WPCS 3.0.0. Props jrf. See #56791. git-svn-id: https://develop.svn.wordpress.org/trunk@54891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2410,7 +2410,7 @@ function get_posts( $args = null ) {
|
||||
$parsed_args['ignore_sticky_posts'] = true;
|
||||
$parsed_args['no_found_rows'] = true;
|
||||
|
||||
$get_posts = new WP_Query;
|
||||
$get_posts = new WP_Query();
|
||||
return $get_posts->query( $parsed_args );
|
||||
|
||||
}
|
||||
@@ -3013,7 +3013,7 @@ function wp_count_posts( $type = 'post', $perm = '' ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( ! post_type_exists( $type ) ) {
|
||||
return new stdClass;
|
||||
return new stdClass();
|
||||
}
|
||||
|
||||
$cache_key = _count_posts_cache_key( $type, $perm );
|
||||
|
||||
Reference in New Issue
Block a user