Head and Footer Scripts Inserter - Version 4.20

Version Description

  • Fixed a bug due to which the plugin data that stored in the database to not be deleted during the uninstallation of the plugin.
  • The contents of the file 'uninstall.php is moved to the file 'core.php'. The file 'uninstall.php' is deleted.
Download this release

Release Info

Developer Arthur Gareginyan
Plugin Icon 128x128 Head and Footer Scripts Inserter
Version 4.20
Comparing to
See all releases

Code changes from version 4.19 to 4.20

header-and-footer-scripts-inserter.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Easily add your scripts to the WordPress website's head and footer sections. This is a must have tool for authors and website's owners.
6
  * Author: Space X-Chimp
7
  * Author URI: https://www.spacexchimp.com
8
- * Version: 4.19
9
  * License: GPL3
10
  * Text Domain: header-and-footer-scripts-inserter
11
  * Domain Path: /languages/
@@ -77,4 +77,3 @@ require_once( SPACEXCHIMP_P006_PATH . 'inc/php/enqueue.php' );
77
  require_once( SPACEXCHIMP_P006_PATH . 'inc/php/functional.php' );
78
  require_once( SPACEXCHIMP_P006_PATH . 'inc/php/page.php' );
79
  require_once( SPACEXCHIMP_P006_PATH . 'inc/php/messages.php' );
80
- require_once( SPACEXCHIMP_P006_PATH . 'inc/php/uninstall.php' );
5
  * Description: Easily add your scripts to the WordPress website's head and footer sections. This is a must have tool for authors and website's owners.
6
  * Author: Space X-Chimp
7
  * Author URI: https://www.spacexchimp.com
8
+ * Version: 4.20
9
  * License: GPL3
10
  * Text Domain: header-and-footer-scripts-inserter
11
  * Domain Path: /languages/
77
  require_once( SPACEXCHIMP_P006_PATH . 'inc/php/functional.php' );
78
  require_once( SPACEXCHIMP_P006_PATH . 'inc/php/page.php' );
79
  require_once( SPACEXCHIMP_P006_PATH . 'inc/php/messages.php' );
 
inc/php/core.php CHANGED
@@ -108,3 +108,11 @@ function spacexchimp_p006_activation() {
108
  }
109
  }
110
  register_activation_hook( SPACEXCHIMP_P006_FILE, 'spacexchimp_p006_activation' );
 
 
 
 
 
 
 
 
108
  }
109
  }
110
  register_activation_hook( SPACEXCHIMP_P006_FILE, 'spacexchimp_p006_activation' );
111
+
112
+ /**
113
+ * Delete options on uninstall
114
+ */
115
+ function spacexchimp_p006_uninstall() {
116
+ delete_option( SPACEXCHIMP_P006_SETTINGS . '_settings' );
117
+ }
118
+ register_uninstall_hook( SPACEXCHIMP_P006_FILE, 'spacexchimp_p006_uninstall' );
inc/php/uninstall.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Prevent Direct Access
5
- */
6
- defined( 'ABSPATH' ) or die( "Restricted access!" );
7
-
8
- /**
9
- * Delete options on uninstall
10
- */
11
- function spacexchimp_p006_uninstall() {
12
- delete_option( SPACEXCHIMP_P006_SETTINGS . '_settings' );
13
- }
14
- register_uninstall_hook( __FILE__, 'spacexchimp_p006_uninstall' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: inject, insert, insert scripts, insert javascript, insert js, insert html,
4
  Donate link: https://www.spacexchimp.com/donate.html
5
  Requires at least: 3.9
6
  Tested up to: 4.9
7
- Stable tag: 4.19
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -187,6 +187,10 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
187
 
188
  == Changelog ==
189
 
 
 
 
 
190
  = 4.19 =
191
  * Added new constant "_FILE".
192
  * Added a function that runs during the plugin activation. Now the date of the first activation of the plugin is recorded in the database.
4
  Donate link: https://www.spacexchimp.com/donate.html
5
  Requires at least: 3.9
6
  Tested up to: 4.9
7
+ Stable tag: 4.20
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
187
 
188
  == Changelog ==
189
 
190
+ = 4.20 =
191
+ * Fixed a bug due to which the plugin data that stored in the database to not be deleted during the uninstallation of the plugin.
192
+ * The contents of the file 'uninstall.php is moved to the file 'core.php'. The file 'uninstall.php' is deleted.
193
+
194
  = 4.19 =
195
  * Added new constant "_FILE".
196
  * Added a function that runs during the plugin activation. Now the date of the first activation of the plugin is recorded in the database.