Changeset 2592116
- Timestamp:
- 09/01/2021 01:31:39 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
button-visually-impaired/trunk/include/src/Core/Upgrade.php
r2592115 r2592116 47 47 foreach ( $hook_extra['plugins'] as $key => $plugin ) { 48 48 if ( $this_plugin == $plugin ) { 49 set_transient( 'bvi_update ', 1 );49 set_transient( 'bvi_updated', 1 ); 50 50 break; 51 51 } … … 60 60 */ 61 61 public function updatePlugin() { 62 if ( get_transient( 'bvi_update ' ) && current_user_can( 'administrator' ) ) {62 if ( get_transient( 'bvi_updated' ) && current_user_can( 'administrator' ) ) { 63 63 $this->setOption( Option::getInstance()->options() )->registerOption(); 64 64 }
Note: See TracChangeset
for help on using the changeset viewer.