mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-08 19:20:03 +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:
@@ -37,7 +37,7 @@ class Tests_AdminBar extends WP_UnitTestCase {
|
||||
|
||||
register_post_type( 'content', array( 'show_in_admin_bar' => true ) );
|
||||
|
||||
$admin_bar = new WP_Admin_Bar;
|
||||
$admin_bar = new WP_Admin_Bar();
|
||||
|
||||
wp_admin_bar_new_content_menu( $admin_bar );
|
||||
|
||||
@@ -54,7 +54,7 @@ class Tests_AdminBar extends WP_UnitTestCase {
|
||||
public function test_merging_existing_meta_values() {
|
||||
wp_set_current_user( self::$editor_id );
|
||||
|
||||
$admin_bar = new WP_Admin_Bar;
|
||||
$admin_bar = new WP_Admin_Bar();
|
||||
|
||||
$admin_bar->add_node(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user