WordPress.org

Plugin Directory

Changeset 628759


Ignore:
Timestamp:
11/22/12 18:29:30 (17 months ago)
Author:
pento
Message:

Rename a generic global variable name to avoid potential clashes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • automatic-updater/trunk/automatic-updater.php

    r628512 r628759  
    1515$auto_updater_running = false; 
    1616 
    17 $my_plugin_file = __FILE__; 
     17$automatic_updater_file = __FILE__; 
    1818 
    1919if ( isset( $plugin ) ) 
    20     $my_plugin_file = $plugin; 
     20    $automatic_updater_file = $plugin; 
    2121else if ( isset( $mu_plugin ) ) 
    22     $my_plugin_file = $mu_plugin; 
     22    $automatic_updater_file = $mu_plugin; 
    2323else if ( isset( $network_plugin ) ) 
    24     $my_plugin_file = $network_plugin; 
    25  
    26 define( 'AUTOMATIC_UPDATER_BASENAME', plugin_basename( $my_plugin_file ) ); 
     24    $automatic_updater_file = $network_plugin; 
     25 
     26define( 'AUTOMATIC_UPDATER_BASENAME', plugin_basename( $automatic_updater_file ) ); 
    2727 
    2828function auto_updater_requires_wordpress_version() { 
Note: See TracChangeset for help on using the changeset viewer.