PluginProbe
Patchstack – WordPress & Plugins Security / 2.2.7
Patchstack – WordPress & Plugins Security v2.2.7
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
← All changes | includes/events/core.php +3 -3 2.1.212.2.7 View file →
@@ -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 }