| @@ -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 | |