mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +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:
@@ -93,7 +93,7 @@ function find_core_auto_update() {
|
||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||
|
||||
$auto_update = false;
|
||||
$upgrader = new WP_Automatic_Updater;
|
||||
$upgrader = new WP_Automatic_Updater();
|
||||
foreach ( $updates->updates as $update ) {
|
||||
if ( 'autoupdate' !== $update->response ) {
|
||||
continue;
|
||||
@@ -235,7 +235,7 @@ function core_update_footer( $msg = '' ) {
|
||||
|
||||
$cur = get_preferred_from_update_core();
|
||||
if ( ! is_object( $cur ) ) {
|
||||
$cur = new stdClass;
|
||||
$cur = new stdClass();
|
||||
}
|
||||
|
||||
if ( ! isset( $cur->current ) ) {
|
||||
|
||||
Reference in New Issue
Block a user