Plugin Directory

Changeset 2592116


Ignore:
Timestamp:
09/01/2021 01:31:39 PM (5 years ago)
Author:
veks
Message:

обновление 2.3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • button-visually-impaired/trunk/include/src/Core/Upgrade.php

    r2592115 r2592116  
    4747                    foreach ( $hook_extra['plugins'] as $key => $plugin ) {
    4848                        if ( $this_plugin == $plugin ) {
    49                             set_transient( 'bvi_update', 1 );
     49                            set_transient( 'bvi_updated', 1 );
    5050                            break;
    5151                        }
     
    6060         */
    6161        public function updatePlugin() {
    62             if ( get_transient( 'bvi_update' ) && current_user_can( 'administrator' ) ) {
     62            if ( get_transient( 'bvi_updated' ) && current_user_can( 'administrator' ) ) {
    6363                $this->setOption( Option::getInstance()->options() )->registerOption();
    6464            }
Note: See TracChangeset for help on using the changeset viewer.