| @@ -15,9 +15,9 @@ | ||
| 15 | 15 | * |
| 16 | 16 | * @return void |
| 17 | 17 | */ |
| 18 | 18 | public function __construct() { |
| 19 | - add_action( '_core_updated_successfully', array( &$this, 'eventCoreUpdatedSuccessfully' ) ); | |
| 19 | + add_action( '_core_updated_successfully', [ &$this, 'eventCoreUpdatedSuccessfully' ] ); | |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * When the core version of WordPress has been updated. |
| @@ -33,13 +33,13 @@ | ||
| 33 | 33 | $object_name = 'WordPress core updated'; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | $this->insert( |
| 37 | - array( | |
| 37 | + [ | |
| 38 | 38 | 'action' => 'updated', |
| 39 | 39 | 'object' => 'core', |
| 40 | 40 | 'object_id' => 0, |
| 41 | 41 | 'object_name' => $object_name, |
| 42 | - ) | |
| 42 | + ] | |
| 43 | 43 | ); |
| 44 | 44 | } |
| 45 | 45 | } |