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/options.php +5 -5 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( 'updated_option', array( &$this, 'updatedOption' ), 10, 3 );
19 + add_action( 'updated_option', [ &$this, 'updatedOption' ], 10, 3 );
20 20 }
21 21
22 22 /**
23 23 * When an option is updated, determine which option is updated and log the action.
@@ -43,9 +43,9 @@
43 43
44 44 // Options that will be logged.
45 45 if ( in_array(
46 46 $option,
47 - array(
47 + [
48 48 // General
49 49 'blogname',
50 50 'blogdescription',
51 51 'siteurl',
@@ -119,16 +119,16 @@
119 119 'tag_base',
120 120
121 121 // Widgets
122 122 'sidebars_widgets',
123 - )
123 + ]
124 124 ) ) {
125 125 $this->insert(
126 - array(
126 + [
127 127 'action' => 'updated',
128 128 'object' => 'option',
129 129 'object_name' => $option . ' from "' . $old_value . '" to "' . $new_value . '"',
130 - )
130 + ]
131 131 );
132 132 }
133 133 }
134 134