Changeset 2592108
- Timestamp:
- 09/01/2021 01:20:01 PM (5 years ago)
- Location:
- button-visually-impaired/trunk/include/src/Core
- Files:
-
- 3 edited
-
Activate.php (modified) (1 diff)
-
Option.php (modified) (1 diff)
-
Upgrade.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
button-visually-impaired/trunk/include/src/Core/Activate.php
r2592107 r2592108 39 39 */ 40 40 public function register() { 41 $this->setOption( Option::getInstance()-> getOption() )->register();41 $this->setOption( Option::getInstance()->options() )->register(); 42 42 } 43 43 } -
button-visually-impaired/trunk/include/src/Core/Option.php
r2592107 r2592108 38 38 * Default option. 39 39 */ 40 public function getOption(): array {40 public function options(): array { 41 41 return [ 42 42 'bviActive' => 'false', -
button-visually-impaired/trunk/include/src/Core/Upgrade.php
r2592104 r2592108 61 61 public function updatePlugin() { 62 62 if ( get_transient( 'bvi_update' ) && current_user_can( 'administrator' ) ) { 63 $this->setOption( Option::getInstance()-> get() )->register();63 $this->setOption( Option::getInstance()->options() )->register(); 64 64 } 65 65 }
Note: See TracChangeset
for help on using the changeset viewer.