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.
- The upgrade banner has moved from an external source to the plugin folder.
- Some texts are corrected.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | My Custom Functions |
Version | 4.18 |
Comparing to | |
See all releases |
Code changes from version 4.17 to 4.18
- inc/img/upgrade.png +0 -0
- inc/php/core.php +9 -0
- inc/php/sidebar.php +1 -1
- inc/php/uninstall.php +0 -15
- my-custom-functions.php +1 -2
- readme.txt +7 -1
inc/img/upgrade.png
ADDED
Binary file
|
inc/php/core.php
CHANGED
@@ -120,3 +120,12 @@ function spacexchimp_p001_activation() {
|
|
120 |
}
|
121 |
}
|
122 |
register_activation_hook( SPACEXCHIMP_P001_FILE, 'spacexchimp_p001_activation' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
}
|
121 |
}
|
122 |
register_activation_hook( SPACEXCHIMP_P001_FILE, 'spacexchimp_p001_activation' );
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Delete options on uninstall
|
126 |
+
*/
|
127 |
+
function spacexchimp_p001_uninstall() {
|
128 |
+
delete_option( SPACEXCHIMP_P001_SETTINGS . '_settings' );
|
129 |
+
delete_option( SPACEXCHIMP_P001_SETTINGS . '_error' );
|
130 |
+
}
|
131 |
+
register_uninstall_hook( SPACEXCHIMP_P001_FILE, 'spacexchimp_p001_uninstall' );
|
inc/php/sidebar.php
CHANGED
@@ -29,7 +29,7 @@ defined( 'ABSPATH' ) or die( "Restricted access!" );
|
|
29 |
<div class="postbox banner">
|
30 |
<div class="inside">
|
31 |
<a href="https://www.spacexchimp.com/plugins/my-custom-functions-pro.html" target="_blank">
|
32 |
-
<img src="
|
33 |
</a>
|
34 |
</div>
|
35 |
</div>
|
29 |
<div class="postbox banner">
|
30 |
<div class="inside">
|
31 |
<a href="https://www.spacexchimp.com/plugins/my-custom-functions-pro.html" target="_blank">
|
32 |
+
<img src="<?php echo SPACEXCHIMP_P001_URL . 'inc/img/upgrade.png'; ?>" alt="Upgrade" style="margin-top:-16px;">
|
33 |
</a>
|
34 |
</div>
|
35 |
</div>
|
inc/php/uninstall.php
DELETED
@@ -1,15 +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_p001_uninstall() {
|
12 |
-
delete_option( SPACEXCHIMP_P001_SETTINGS . '_settings' );
|
13 |
-
delete_option( SPACEXCHIMP_P001_SETTINGS . '_error' );
|
14 |
-
}
|
15 |
-
register_uninstall_hook( __FILE__, 'spacexchimp_p001_uninstall' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
my-custom-functions.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Easily and safely add your custom functions (PHP code) directly out of your WordPress Admin Area, without the need to have an external editor.
|
6 |
* Author: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
-
* Version: 4.
|
9 |
* License: GPL3
|
10 |
* Text Domain: my-custom-functions
|
11 |
* Domain Path: /languages/
|
@@ -77,4 +77,3 @@ require_once( SPACEXCHIMP_P001_PATH . 'inc/php/enqueue.php' );
|
|
77 |
require_once( SPACEXCHIMP_P001_PATH . 'inc/php/functional.php' );
|
78 |
require_once( SPACEXCHIMP_P001_PATH . 'inc/php/page.php' );
|
79 |
require_once( SPACEXCHIMP_P001_PATH . 'inc/php/messages.php' );
|
80 |
-
require_once( SPACEXCHIMP_P001_PATH . 'inc/php/uninstall.php' );
|
5 |
* Description: Easily and safely add your custom functions (PHP code) directly out of your WordPress Admin Area, without the need to have an external editor.
|
6 |
* Author: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
+
* Version: 4.18
|
9 |
* License: GPL3
|
10 |
* Text Domain: my-custom-functions
|
11 |
* Domain Path: /languages/
|
77 |
require_once( SPACEXCHIMP_P001_PATH . 'inc/php/functional.php' );
|
78 |
require_once( SPACEXCHIMP_P001_PATH . 'inc/php/page.php' );
|
79 |
require_once( SPACEXCHIMP_P001_PATH . 'inc/php/messages.php' );
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: code, php, function, snippet, custom, execute, edit, editing, editor, func
|
|
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.
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -210,6 +210,12 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
210 |
|
211 |
== Changelog ==
|
212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
= 4.17 =
|
214 |
* Added new constant "_FILE".
|
215 |
* 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.18
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
210 |
|
211 |
== Changelog ==
|
212 |
|
213 |
+
= 4.18 =
|
214 |
+
* Fixed a bug due to which the plugin data that stored in the database to not be deleted during the uninstallation of the plugin.
|
215 |
+
* The contents of the file 'uninstall.php is moved to the file 'core.php'. The file 'uninstall.php' is deleted.
|
216 |
+
* The upgrade banner has moved from an external source to the plugin folder.
|
217 |
+
* Some texts are corrected.
|
218 |
+
|
219 |
= 4.17 =
|
220 |
* Added new constant "_FILE".
|
221 |
* Added a function that runs during the plugin activation. Now the date of the first activation of the plugin is recorded in the database.
|