| @@ -1,5 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | +// If this file is called directly, abort. | |
| 3 | +if ( ! defined( 'WPINC' ) ) { | |
| 4 | + die; | |
| 5 | +} | |
| 2 | 6 | |
| 3 | 7 | /** |
| 4 | 8 | * Fired when the plugin is uninstalled. |
| 5 | 9 | * |
| @@ -34,13 +38,13 @@ | ||
| 34 | 38 | |
| 35 | 39 | /** |
| 36 | 40 | * The code that runs during plugin uninstall. |
| 37 | 41 | */ |
| 38 | -function uninstall_cbxgooglemap() { | |
| 42 | +function cbxgooglemap_uninstall() { | |
| 39 | 43 | require_once plugin_dir_path( __FILE__ ) . 'includes/CBXGoogleMapUninstall.php'; |
| 40 | 44 | |
| 41 | 45 | CBXGoogleMapUninstall::uninstall(); |
| 42 | -}//end function uninstall_cbxgooglemap | |
| 46 | +}//end function cbxgooglemap_uninstall | |
| 43 | 47 | |
| 44 | 48 | if ( ! defined( 'CBXGOOGLEMAP_PLUGIN_NAME' ) ) { |
| 45 | - uninstall_cbxgooglemap(); | |
| 49 | + cbxgooglemap_uninstall(); | |
| 46 | 50 | } |