Plugin Directory

Changeset 2592171


Ignore:
Timestamp:
09/01/2021 02:51:30 PM (5 years ago)
Author:
veks
Message:

update v2.3.0

File:
1 edited

Legend:

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

    r2592128 r2592171  
    4444            if ( is_array( $hook_extra ) && array_key_exists( 'action', $hook_extra ) && array_key_exists( 'type', $hook_extra ) && array_key_exists( 'plugins', $hook_extra ) ) {
    4545                if ( $hook_extra['action'] == 'update' && $hook_extra['type'] == 'plugin' && is_array( $hook_extra['plugins'] ) && ! empty( $hook_extra['plugins'] ) ) {
    46                     $this_plugin = plugin_basename( BVI_FILE );
     46                    $this_plugin = plugin_basename( __FILE__ );
    4747                    foreach ( $hook_extra['plugins'] as $key => $plugin ) {
    4848                        if ( $this_plugin == $plugin ) {
     
    6262            if ( get_transient( 'bvi_updated' ) && current_user_can( 'administrator' ) ) {
    6363                Activate::getInstance()->activation();
    64                 ?>
    65                 <script>
    66                     alert('asfasfasf');
    67                     console.log('sadasdasdasdsasdasd')
    68                 </script>
    69                 <?php
    7064            }
    7165        }
Note: See TracChangeset for help on using the changeset viewer.