My Custom Functions - Version 2.5.1

Version Description

  • The update_option() returned into _duplicates function.
Download this release

Release Info

Developer Arthur Gareginyan
Plugin Icon 128x128 My Custom Functions
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.5 to 2.5.1

Files changed (3) hide show
  1. inc/settings_page.php +4 -4
  2. my-custom-functions.php +3 -2
  3. readme.txt +8 -6
inc/settings_page.php CHANGED
@@ -58,14 +58,14 @@ function MCFunctions_render_submenu_page() {
58
  <div id="about" class="postbox">
59
  <h3 class="title"><?php _e( 'About', 'my-custom-functions' ) ?></a></h3>
60
  <div class="inside">
61
- <p><?php _e( 'This plugin allows you to easily and safely add your custome functions (PHP code) to your website.', 'my-custom-functions' ) ?></p>
62
  </div>
63
  </div>
64
 
65
  <div id="using" class="postbox">
66
  <h3 class="title"><?php _e( 'Using', 'my-custom-functions' ) ?></a></h3>
67
  <div class="inside">
68
- <p><?php _e( 'To use, enter your custom functions, then click "Save Changes". It\'s that simple!', 'my-custom-functions' ) ?></p>
69
  </div>
70
  </div>
71
 
@@ -81,11 +81,11 @@ function MCFunctions_render_submenu_page() {
81
  <h3 class="title"><?php _e( 'Donate', 'my-custom-functions' ) ?></h3>
82
  <div class="inside">
83
  <img src="<?php echo plugins_url('images/thanks.png', __FILE__); ?>">
84
- <p><?php _e( 'If you like this plugin and find it useful, help me to make this plugin even better and keep it up-to-date.', 'my-custom-functions' ) ?></p>
85
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
86
  <img src="<?php echo plugins_url('images/btn_donateCC_LG.gif', __FILE__); ?>" alt="Make a donation">
87
  </a>
88
- <p><?php _e( 'Thanks for your support!', 'my-custom-functions' ) ?></p>
89
  </div>
90
  </div>
91
 
58
  <div id="about" class="postbox">
59
  <h3 class="title"><?php _e( 'About', 'my-custom-functions' ) ?></a></h3>
60
  <div class="inside">
61
+ <p><?php _e( 'This plugin allows you to easily and safely add your custome functions (PHP code) to your website.', 'my-custom-functions' ); ?></p>
62
  </div>
63
  </div>
64
 
65
  <div id="using" class="postbox">
66
  <h3 class="title"><?php _e( 'Using', 'my-custom-functions' ) ?></a></h3>
67
  <div class="inside">
68
+ <p><?php _e( 'To use, enter your custom functions, then click "Save Changes". It\'s that simple!', 'my-custom-functions' ); ?></p>
69
  </div>
70
  </div>
71
 
81
  <h3 class="title"><?php _e( 'Donate', 'my-custom-functions' ) ?></h3>
82
  <div class="inside">
83
  <img src="<?php echo plugins_url('images/thanks.png', __FILE__); ?>">
84
+ <p><?php _e( 'If you like this plugin and find it useful, help me to make this plugin even better and keep it up-to-date.', 'my-custom-functions' ); ?></p>
85
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS" target="_blank" rel="nofollow">
86
  <img src="<?php echo plugins_url('images/btn_donateCC_LG.gif', __FILE__); ?>" alt="Make a donation">
87
  </a>
88
+ <p><?php _e( 'Thanks for your support!', 'my-custom-functions' ); ?></p>
89
  </div>
90
  </div>
91
 
my-custom-functions.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Easily and safely add your custome functions (PHP code) directly out of your WordPress Dashboard without need of an external editor.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
- * Version: 2.5
9
  * License: GPL3
10
  * Text Domain: my-custom-functions
11
  * Domain Path: /languages/
@@ -145,7 +145,7 @@ function MCFunctions_prepare($content) {
145
  /**
146
  * Check the user entered code for duplicate names of functions
147
  *
148
- * @since 2.5
149
  */
150
  function MCFunctions_duplicates($content) {
151
 
@@ -164,6 +164,7 @@ function MCFunctions_duplicates($content) {
164
  update_option( 'anarcho_cfunctions_error', '1' ); // ERROR
165
  $error_status = '1';
166
  } else {
 
167
  $error_status = '0';
168
  }
169
 
5
  * Description: Easily and safely add your custome functions (PHP code) directly out of your WordPress Dashboard without need of an external editor.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
+ * Version: 2.5.1
9
  * License: GPL3
10
  * Text Domain: my-custom-functions
11
  * Domain Path: /languages/
145
  /**
146
  * Check the user entered code for duplicate names of functions
147
  *
148
+ * @since 2.5.1
149
  */
150
  function MCFunctions_duplicates($content) {
151
 
164
  update_option( 'anarcho_cfunctions_error', '1' ); // ERROR
165
  $error_status = '1';
166
  } else {
167
+ update_option( 'anarcho_cfunctions_error', '0' ); // RESET ERROR VALUE
168
  $error_status = '0';
169
  }
170
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: code, php, function, snippet, custom, execute, edit, editing, editor, func
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
  Requires at least: 3.9
6
  Tested up to: 4.6
7
- Stable tag: 2.5
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -42,9 +42,9 @@ An easy to use WordPress plugin that gives you the ability to easily and safely
42
  >
43
  >Developing plugins is long and tedious work. If you benefit or enjoy this plugin please take the time to:
44
  >
45
- >* Please [donate](http://www.arthurgareginyan.com/donate.html) to support ongoing development. Your contribution would be greatly appreciated.
46
- >* Please take the time to [rate and review](https://wordpress.org/support/view/plugin-reviews/my-custom-functions?rate=5#postform) this plugin.
47
- >* Please [share with me](mailto:arthurgareginyan@gmail.com) if you have any ideas or suggestions to make this plugin better.
48
 
49
 
50
  == Installation ==
@@ -142,8 +142,10 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
142
 
143
 
144
  == Changelog ==
 
 
145
  = 2.5 =
146
- * Added active-line addon to CodeMirror.
147
  * Extra update_option() removed from the _duplicates function.
148
  * The _exec function optimized.
149
  * CSS class "slider" renamed to "trigger".
@@ -155,7 +157,7 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
155
  * Functions _prepare, _duplicates, and _exec optimized.
156
  = 2.3 =
157
  * Added function to check for duplicate function names. Compares the names of all functions (internal, user). The _duplicates function added.
158
- * Added function for automatic remove the "successful" message after 3 seconds.
159
  * Removed the default message about successful saving.
160
  * The function of user code cleaning modified.
161
  * File js-functions.js renamed to functions.js.
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
  Requires at least: 3.9
6
  Tested up to: 4.6
7
+ Stable tag: 2.5.1
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
42
  >
43
  >Developing plugins is long and tedious work. If you benefit or enjoy this plugin please take the time to:
44
  >
45
+ >* [Donate](http://www.arthurgareginyan.com/donate.html) to support ongoing development. Your contribution would be greatly appreciated.
46
+ >* [Rate and Review](https://wordpress.org/support/view/plugin-reviews/my-custom-functions?rate=5#postform) this plugin.
47
+ >* [Share with me](mailto:arthurgareginyan@gmail.com) if you have any ideas or suggestions to make this plugin better.
48
 
49
 
50
  == Installation ==
142
 
143
 
144
  == Changelog ==
145
+ = 2.5.1 =
146
+ * The update_option() returned into _duplicates function.
147
  = 2.5 =
148
+ * Added active-line add-on to CodeMirror.
149
  * Extra update_option() removed from the _duplicates function.
150
  * The _exec function optimized.
151
  * CSS class "slider" renamed to "trigger".
157
  * Functions _prepare, _duplicates, and _exec optimized.
158
  = 2.3 =
159
  * Added function to check for duplicate function names. Compares the names of all functions (internal, user). The _duplicates function added.
160
+ * Added function of automatic remove the "successful" message after 3 seconds.
161
  * Removed the default message about successful saving.
162
  * The function of user code cleaning modified.
163
  * File js-functions.js renamed to functions.js.