My Custom Functions - Version 1.7

Version Description

  • The stylesheet of plugin's page moved to separate file.
  • The javascript from settings_page.php moved to separate file.
  • Textdomain changed to "mcfunctions".
  • Changed the style of title in plugin's page.
  • The LICENSE file renamed to LICENSE.txt
Download this release

Release Info

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

Code changes from version 1.6 to 1.7

LICENSE → LICENSE.txt RENAMED
File without changes
inc/editor.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * My Custom Functions
3
+ * CodeMirror editor
4
+ * @since 1.7
5
+ * @agareginyan
6
+ */
7
+
8
+
9
+ // Change editor to CodeMirror
10
+ var editor = CodeMirror.fromTextArea(document.getElementById('anarcho_cfunctions_settings[anarcho_cfunctions-content]'), {
11
+ lineNumbers: true,
12
+ matchBrackets: true,
13
+ mode: 'application/x-httpd-php',
14
+ indentUnit: 4
15
+ });
16
+
17
+ // Refresh CodeMirror editor after 1 second
18
+ setTimeout(function() {
19
+ editor.refresh();
20
+ },1);
inc/settings_page.php CHANGED
@@ -8,7 +8,7 @@ defined('ABSPATH') or die("Restricted access!");
8
  /**
9
  * Render Settings Page
10
  *
11
- * @since 1.6
12
  */
13
  function anarcho_cfunctions_render_submenu_page() {
14
 
@@ -22,59 +22,60 @@ function anarcho_cfunctions_render_submenu_page() {
22
  // Settings update message
23
  if ( isset( $_GET['settings-updated'] ) ) :
24
  ?>
25
- <div id="message" class="updated">
26
  <p>
27
- <?php _e( 'Custom functions updated successfully.', 'anarcho_cfunctions' ); ?>
28
  </p>
29
- </div>
30
  <?php
31
  endif;
32
 
33
  // Error message
34
  if ( $error == '1' ) :
35
- ?>
36
- <div id="message" class="error">
37
  <p>
38
- <?php _e( 'Sorry, but your code causes a "Fatal error", so it is not applied!', 'anarcho_cfunctions' ); ?><br/>
39
- <?php _e( 'Please, check the code and try again.', 'anarcho_cfunctions' ); ?>
40
  </p>
41
- </div>
42
- <?php
43
- endif;
44
 
45
  // Page
46
  ?>
47
  <div class="wrap">
48
- <h2 style="text-align:center; color:cornflowerblue;">
49
- <?php _e( 'My Custom Functions', 'anarcho_cfunctions' ); ?>
50
  <br/>
51
- <span style="margin-top:1px; font-size:0.6em; color: black;">
52
- <?php _e( 'by <a href="http://mycyberuniverse.com/author.html" target="_blank" style="display:inline; padding:0;">Arthur "Berserkr" Gareginyan</a>', 'anarcho_cfunctions' ); ?>
53
  <span/>
54
  </h2>
55
  <form name="anarcho_cfunctions-form" action="options.php" method="post" enctype="multipart/form-data">
56
  <?php settings_fields( 'anarcho_cfunctions_settings_group' ); ?>
 
57
  <!-- SIDEBAR -->
58
- <div id="templateside" style="position:fixed; right:20px;">
59
  <?php do_action( 'anarcho_cfunctions-sidebar-top' ); ?>
60
- <p style="margin-top: 0">
61
- <?php _e( 'This plugin allows you to EASILY and SAFELY add your own functions, snippets or any custom code to your site.', 'anarcho_cfunctions' ) ?>
62
  </p>
63
  <p>
64
- <?php _e( 'To use, enter your custom functions, then click "Update Custom Functions". It\'s that simple!', 'anarcho_cfunctions' ) ?>
65
  </p>
66
- <?php submit_button( __( 'Update Custom Functions', 'anarcho_cfunctions' ), 'primary', 'submit', true ); ?>
67
- <p style="margin-top:20px; border:1px solid rgb(184, 186, 184); border-radius:5px; padding:3px; text-align:center; background:rgb(234, 234, 234);">If you find it useful, consider making a donation:
68
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JG3SB73K86FA8" target="_blank" rel="nofollow">
69
  <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Make a donation">
70
  </a>
71
  </p>
72
  <?php do_action( 'anarcho_cfunctions-sidebar-bottom' ); ?>
73
  </div>
74
- <!-- END-SIDEBAR -->
75
 
76
- <!-- FORM -->
77
- <div id="container" style="margin-right:210px;">
78
  <?php do_action( 'anarcho_cfunctions-form-top' ); ?>
79
  <div>
80
  <textarea cols="70" rows="30" name="anarcho_cfunctions_settings[anarcho_cfunctions-content]" id="anarcho_cfunctions_settings[anarcho_cfunctions-content]" ><?php echo esc_attr( $content ); ?></textarea>
@@ -82,30 +83,7 @@ function anarcho_cfunctions_render_submenu_page() {
82
  <?php do_action( 'anarcho_cfunctions-textarea-bottom' ); ?>
83
  <?php do_action( 'anarcho_cfunctions-form-bottom' ); ?>
84
  </div>
85
- <!-- END-FORM -->
86
-
87
- <!-- SCRIPT -->
88
- <script type="text/javascript" language="javascript">
89
- var myCodeMirror = CodeMirror.fromTextArea(document.getElementById('anarcho_cfunctions_settings[anarcho_cfunctions-content]'), {
90
- lineNumbers: true,
91
- matchBrackets: true,
92
- mode: 'application/x-httpd-php',
93
- indentUnit: 4
94
- });
95
- setTimeout(function() {
96
- myCodeMirror.refresh();
97
- },1);
98
- </script>
99
- <!-- END-SCRIPT -->
100
-
101
- <!-- STYLE -->
102
- <style>
103
- .CodeMirror {
104
- border: 1px solid cornflowerblue;
105
- height: auto;
106
- }
107
- </style>
108
- <!-- END-STYLE -->
109
 
110
  </form>
111
  </div>
8
  /**
9
  * Render Settings Page
10
  *
11
+ * @since 1.7
12
  */
13
  function anarcho_cfunctions_render_submenu_page() {
14
 
22
  // Settings update message
23
  if ( isset( $_GET['settings-updated'] ) ) :
24
  ?>
25
+ <div id="message" class="updated">
26
  <p>
27
+ <?php _e( 'Custom functions updated successfully.', 'mcfunctions' ); ?>
28
  </p>
29
+ </div>
30
  <?php
31
  endif;
32
 
33
  // Error message
34
  if ( $error == '1' ) :
35
+ ?>
36
+ <div id="message" class="error">
37
  <p>
38
+ <?php _e( 'Sorry, but your code causes a "Fatal error", so it is not applied!', 'mcfunctions' ); ?><br/>
39
+ <?php _e( 'Please, check the code and try again.', 'mcfunctions' ); ?>
40
  </p>
41
+ </div>
42
+ <?php
43
+ endif;
44
 
45
  // Page
46
  ?>
47
  <div class="wrap">
48
+ <h2>
49
+ <?php _e( 'My Custom Functions', 'mcfunctions' ); ?>
50
  <br/>
51
+ <span>
52
+ <?php _e( 'by <a href="http://mycyberuniverse.com/author.html" target="_blank">Arthur "Berserkr" Gareginyan</a>', 'mcfunctions' ); ?>
53
  <span/>
54
  </h2>
55
  <form name="anarcho_cfunctions-form" action="options.php" method="post" enctype="multipart/form-data">
56
  <?php settings_fields( 'anarcho_cfunctions_settings_group' ); ?>
57
+
58
  <!-- SIDEBAR -->
59
+ <div id="templateside">
60
  <?php do_action( 'anarcho_cfunctions-sidebar-top' ); ?>
61
+ <p>
62
+ <?php _e( 'This plugin allows you to EASILY and SAFELY add your own functions, snippets or any custom code to your site.', 'mcfunctions' ) ?>
63
  </p>
64
  <p>
65
+ <?php _e( 'To use, enter your custom functions, then click "Update Custom Functions". It\'s that simple!', 'mcfunctions' ) ?>
66
  </p>
67
+ <?php submit_button( __( 'Update Custom Functions', 'mcfunctions' ), 'primary', 'submit', true ); ?>
68
+ <p class="donate">If you find it useful, consider making a donation:
69
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JG3SB73K86FA8" target="_blank" rel="nofollow">
70
  <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="Make a donation">
71
  </a>
72
  </p>
73
  <?php do_action( 'anarcho_cfunctions-sidebar-bottom' ); ?>
74
  </div>
75
+ <!-- END-SIDEBAR -->
76
 
77
+ <!-- FORM -->
78
+ <div id="container">
79
  <?php do_action( 'anarcho_cfunctions-form-top' ); ?>
80
  <div>
81
  <textarea cols="70" rows="30" name="anarcho_cfunctions_settings[anarcho_cfunctions-content]" id="anarcho_cfunctions_settings[anarcho_cfunctions-content]" ><?php echo esc_attr( $content ); ?></textarea>
83
  <?php do_action( 'anarcho_cfunctions-textarea-bottom' ); ?>
84
  <?php do_action( 'anarcho_cfunctions-form-bottom' ); ?>
85
  </div>
86
+ <!-- END-FORM -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
  </form>
89
  </div>
inc/style.css ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * My Custom Functions
3
+ * Style sheet for plugin's page
4
+ * @since 1.7
5
+ * @agareginyan
6
+ */
7
+
8
+
9
+ .aligncenter {
10
+ text-align: center;
11
+ }
12
+
13
+ h2 {
14
+ text-align: center;
15
+ font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
16
+ }
17
+
18
+ h2 span {
19
+ margin-top: 1px;
20
+ font-size: 0.6em;
21
+ color: black;
22
+ display: inline;
23
+ padding: 0;
24
+ }
25
+
26
+ h2 span a {
27
+ display: inline;
28
+ padding: 0;
29
+ }
30
+
31
+ #templateside {
32
+ position: fixed;
33
+ right: 20px;
34
+ }
35
+
36
+ #templateside p {
37
+ margin-top: 0;
38
+ }
39
+
40
+ .CodeMirror {
41
+ border: 1px solid cornflowerblue;
42
+ height: auto;
43
+ }
44
+
45
+ #container {
46
+ margin-right: 210px;
47
+ }
48
+
49
+ .donate {
50
+ margin-top: 20px;
51
+ border: 1px solid rgb(184, 186, 184);
52
+ border-radius: 5px;
53
+ padding: 3px;
54
+ text-align: center;
55
+ background: rgb(234, 234, 234);
56
+ }
my-custom-functions.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: EASILY and SAFELY add your own functions, snippets or any custom codes directly out of your WordPress Dashboard without need of an external editor.
6
  * Author: Arthur "Berserkr" Gareginyan
7
  * Author URI: http://mycyberuniverse.com/author.html
8
- * Version: 1.6
9
  * License: GPL3
10
  * Text Domain: mcfunctions
11
  * Domain Path: /languages/
@@ -37,10 +37,10 @@ defined('ABSPATH') or die("Restricted access!");
37
  /**
38
  * Register text domain
39
  *
40
- * @since 0.1
41
  */
42
  function anarcho_cfunctions_textdomain() {
43
- load_plugin_textdomain( 'anarcho_cfunctions', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
44
  }
45
  add_action( 'init', 'anarcho_cfunctions_textdomain' );
46
 
@@ -50,12 +50,12 @@ add_action( 'init', 'anarcho_cfunctions_textdomain' );
50
  * Fetches array of links generated by WP Plugin admin page ( Deactivate | Edit )
51
  * and inserts a link to the Custom Functions admin page
52
  *
53
- * @since 0.1
54
  * @param array $links Array of links generated by WP in Plugin Admin page.
55
  * @return array Array of links to be output on Plugin Admin page.
56
  */
57
  function anarcho_cfunctions_settings_link( $links ) {
58
- $settings_page = '<a href="' . admin_url( 'themes.php?page=my-custom-functions.php' ) .'">' . __( 'Settings', 'anarcho_cfunctions' ) . '</a>';
59
  array_unshift( $links, $settings_page );
60
  return $links;
61
  }
@@ -65,10 +65,10 @@ add_filter( "plugin_action_links_$plugin", 'anarcho_cfunctions_settings_link' );
65
  /**
66
  * Register "Custom Functions" submenu in "Appearance" Admin Menu
67
  *
68
- * @since 0.1
69
  */
70
  function anarcho_cfunctions_register_submenu_page() {
71
- add_theme_page( __( 'My Custom Functions', 'anarcho_cfunctions' ), __( 'Custom Functions', 'anarcho_cfunctions' ), 'edit_theme_options', basename( __FILE__ ), 'anarcho_cfunctions_render_submenu_page' );
72
  }
73
  add_action( 'admin_menu', 'anarcho_cfunctions_register_submenu_page' );
74
 
@@ -91,17 +91,24 @@ function anarcho_cfunctions_register_settings() {
91
  add_action( 'admin_init', 'anarcho_cfunctions_register_settings' );
92
 
93
  /**
94
- * Enqueue the CodeMirror scripts and styles
95
  *
96
- * @since 1.5
97
  */
98
  function anarcho_enqueue_codemirror_scripts($hook) {
 
 
99
  if ( 'appearance_page_my-custom-functions' != $hook ) {
100
  return;
101
  }
102
 
 
103
  wp_enqueue_script('codemirror', plugin_dir_url(__FILE__) . 'inc/codemirror/codemirror-compressed.js');
104
  wp_enqueue_style('codemirror_style', plugin_dir_url(__FILE__) . 'inc/codemirror/codemirror.css');
 
 
 
 
105
  }
106
  add_action( 'admin_enqueue_scripts', 'anarcho_enqueue_codemirror_scripts' );
107
 
5
  * Description: EASILY and SAFELY add your own functions, snippets or any custom codes directly out of your WordPress Dashboard without need of an external editor.
6
  * Author: Arthur "Berserkr" Gareginyan
7
  * Author URI: http://mycyberuniverse.com/author.html
8
+ * Version: 1.7
9
  * License: GPL3
10
  * Text Domain: mcfunctions
11
  * Domain Path: /languages/
37
  /**
38
  * Register text domain
39
  *
40
+ * @since 1.7
41
  */
42
  function anarcho_cfunctions_textdomain() {
43
+ load_plugin_textdomain( 'mcfunctions', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
44
  }
45
  add_action( 'init', 'anarcho_cfunctions_textdomain' );
46
 
50
  * Fetches array of links generated by WP Plugin admin page ( Deactivate | Edit )
51
  * and inserts a link to the Custom Functions admin page
52
  *
53
+ * @since 1.7
54
  * @param array $links Array of links generated by WP in Plugin Admin page.
55
  * @return array Array of links to be output on Plugin Admin page.
56
  */
57
  function anarcho_cfunctions_settings_link( $links ) {
58
+ $settings_page = '<a href="' . admin_url( 'themes.php?page=my-custom-functions.php' ) .'">' . __( 'Settings', 'mcfunctions' ) . '</a>';
59
  array_unshift( $links, $settings_page );
60
  return $links;
61
  }
65
  /**
66
  * Register "Custom Functions" submenu in "Appearance" Admin Menu
67
  *
68
+ * @since 1.7
69
  */
70
  function anarcho_cfunctions_register_submenu_page() {
71
+ add_theme_page( __( 'My Custom Functions', 'mcfunctions' ), __( 'Custom Functions', 'mcfunctions' ), 'edit_theme_options', basename( __FILE__ ), 'anarcho_cfunctions_render_submenu_page' );
72
  }
73
  add_action( 'admin_menu', 'anarcho_cfunctions_register_submenu_page' );
74
 
91
  add_action( 'admin_init', 'anarcho_cfunctions_register_settings' );
92
 
93
  /**
94
+ * Enqueue the CodeMirror scripts and style sheet for setting's page
95
  *
96
+ * @since 1.7
97
  */
98
  function anarcho_enqueue_codemirror_scripts($hook) {
99
+
100
+ // Return if the page is not a settings page of this plugin
101
  if ( 'appearance_page_my-custom-functions' != $hook ) {
102
  return;
103
  }
104
 
105
+ // CodeMirror
106
  wp_enqueue_script('codemirror', plugin_dir_url(__FILE__) . 'inc/codemirror/codemirror-compressed.js');
107
  wp_enqueue_style('codemirror_style', plugin_dir_url(__FILE__) . 'inc/codemirror/codemirror.css');
108
+ wp_enqueue_script('codemirror-setting', plugin_dir_url(__FILE__) . 'inc/editor.js', array(), false, true);
109
+
110
+ // Style sheet
111
+ wp_enqueue_style('styles', plugin_dir_url(__FILE__) . 'inc/style.css');
112
  }
113
  add_action( 'admin_enqueue_scripts', 'anarcho_enqueue_codemirror_scripts' );
114
 
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=JG3SB73K86FA8
5
  Requires at least: 3.9
6
  Tested up to: 4.3
7
- Stable tag: 1.5
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -16,7 +16,7 @@ An easy to use WordPress plugin that lets you EASILY and SAFELY add your own fun
16
 
17
  It’s purpose is to provide a familiar experience to WordPress users. No need any more editing the functions.php file of your theme. Just add your code in the field on the page and this plugin will do the rest for you.
18
 
19
- No any more Fatal error”. These codes will run safely and will not generate fatal errors, so your website won't break if you make a typo in your code.
20
 
21
  And your website will keep on working, no matter how many times you upgrade or switch your theme.
22
 
@@ -47,24 +47,24 @@ For more details please visit - [Dedicated Plugin Page](http://mycyberuniverse.c
47
  * Your votes really make a difference! Thanks.
48
 
49
  == Installation ==
50
- Install "My Custom Functions" just as you would any other WP Plugin.
51
 
52
  Automatically via WordPress:
53
 
54
  1. Log into WordPress Dashboard of your website.
55
- 2. Go to "Plugins" —> add new plugins".
56
  3. Find this plugin and click install.
57
- 4. Activate this plugin through the "Plugins" tab.
58
 
59
  Manual via FTP:
60
 
61
  1. Download a copy (zip file) of this plugin from WordPress.org.
62
  2. Unzip the zip file.
63
- 3. Upload the unzipped directory to your website's plugin directory (/wp-content/plugins/).
64
  4. Log into WordPress Dashboard of your website.
65
- 5. Activate this plugin through the "Plugins" tab.
66
 
67
- After installation, a "Custom Functions menu item will appear in the Appearance" section. Click on this in order to view plugin's administration page.
68
 
69
  [More help installing Plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins "WordPress Codex: Installing Plugins")
70
 
@@ -77,7 +77,16 @@ Sorry, this plugin is available for use only on self-hosted (WordPress.org) webs
77
  I don't limit the number of characters.
78
 
79
  = Can I use this plugin on my language? =
80
- Yes. But If your language is not available then you can make one. This plugin is ready for translation. The .pot file is included and placed in "languages" folder. Many of plugin users would be delighted if you shared your translation with the community. Just send the translation files (*.po, *.mo) to me at the arthurgareginyan@gmail.com and I will include the translation within the next plugin update.
 
 
 
 
 
 
 
 
 
81
 
82
  = Where to report bug if found? =
83
  Please visit [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/my-custom-functions) and report.
@@ -117,9 +126,15 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
117
 
118
 
119
  == Changelog ==
 
 
 
 
 
 
120
  = 1.6 =
121
  * Fixed the issue due to which nothing appears below line 26 until you click below that line.
122
- * Added register_setting for error option.
123
  * Corrected comments to source code.
124
  = 1.5 =
125
  * CodeMirror scripts are combined and minified.
@@ -143,9 +158,15 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
143
 
144
 
145
  == Upgrade Notice ==
 
 
 
 
 
 
146
  = 1.6 =
147
  * Fixed the issue due to which nothing appears below line 26 until you click below that line.
148
- * Added register_setting for error option.
149
  * Corrected comments to source code.
150
  = 1.5 =
151
  CodeMirror scripts are combined and minified.
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JG3SB73K86FA8
5
  Requires at least: 3.9
6
  Tested up to: 4.3
7
+ Stable tag: 1.7
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
16
 
17
  It’s purpose is to provide a familiar experience to WordPress users. No need any more editing the functions.php file of your theme. Just add your code in the field on the page and this plugin will do the rest for you.
18
 
19
+ No any more "Fatal error". These codes will run safely and will not generate fatal errors, so your website won't break if you make a typo in your code.
20
 
21
  And your website will keep on working, no matter how many times you upgrade or switch your theme.
22
 
47
  * Your votes really make a difference! Thanks.
48
 
49
  == Installation ==
50
+ Install "My Custom Functions" just as you would any other WordPress Plugin.
51
 
52
  Automatically via WordPress:
53
 
54
  1. Log into WordPress Dashboard of your website.
55
+ 2. Go to "`Plugins`" —> "`add new plugins`".
56
  3. Find this plugin and click install.
57
+ 4. Activate this plugin through the "`Plugins`" tab.
58
 
59
  Manual via FTP:
60
 
61
  1. Download a copy (zip file) of this plugin from WordPress.org.
62
  2. Unzip the zip file.
63
+ 3. Upload the unzipped directory to your website's plugin directory (`/wp-content/plugins/`).
64
  4. Log into WordPress Dashboard of your website.
65
+ 5. Activate this plugin through the "`Plugins`" tab.
66
 
67
+ After installation, a "`Custom Functions`" menu item will appear in the "`Appearance`" section. Click on this in order to view plugin's administration page.
68
 
69
  [More help installing Plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins "WordPress Codex: Installing Plugins")
70
 
77
  I don't limit the number of characters.
78
 
79
  = Can I use this plugin on my language? =
80
+ Yes. But If your language is not available then you can make one. This plugin is ready for translation. The `.pot` file is included and placed in "`languages`" folder. Many of plugin users would be delighted if you shared your translation with the community. Just send the translation files (`*.po, *.mo`) to me at the arthurgareginyan@gmail.com and I will include the translation within the next plugin update.
81
+
82
+ = What to do if this plugin caused the white screen? =
83
+ This plugin is not perfect, so there are times when the entered custom code causes the error and white screen. If this happened with you then do the following.
84
+
85
+ Your code stored in the Database of your web-site. For getting your code, you can go to the `Database` —> Table "`wp_options`" —> Option "`anarcho_cfunctions_settings`" —> "`option_value`".
86
+
87
+ Or you can use the FTP method, for access to plugin's settings page. Go to plugin's folder (in `wp-content/plugins/`). Open "`my-custom-functions.php`" file. Find this line of code:
88
+ `anarcho_cfunctions_exec();`
89
+ and comment it by placing two slashes (`//`) in beginning. Then you can go to plugin's settings page and edit your entered custom code. After editing, just delete two slashes which you written before.
90
 
91
  = Where to report bug if found? =
92
  Please visit [Dedicated Plugin Page on GitHub](https://github.com/ArthurGareginyan/my-custom-functions) and report.
126
 
127
 
128
  == Changelog ==
129
+ = 1.7 =
130
+ * The stylesheet of plugin's page moved to separate file.
131
+ * The javascript from settings_page.php moved to separate file.
132
+ * Textdomain changed to "mcfunctions".
133
+ * Changed the style of title in plugin's page.
134
+ * The LICENSE file renamed to LICENSE.txt
135
  = 1.6 =
136
  * Fixed the issue due to which nothing appears below line 26 until you click below that line.
137
+ * Added "register_setting" for error option.
138
  * Corrected comments to source code.
139
  = 1.5 =
140
  * CodeMirror scripts are combined and minified.
158
 
159
 
160
  == Upgrade Notice ==
161
+ = 1.7 =
162
+ * The stylesheet of plugin's page moved to separate file.
163
+ * The javascript from settings_page.php moved to separate file.
164
+ * Textdomain changed to "mcfunctions".
165
+ * Changed the style of title in plugin's page.
166
+ * The LICENSE file renamed to LICENSE.txt
167
  = 1.6 =
168
  * Fixed the issue due to which nothing appears below line 26 until you click below that line.
169
+ * Added "register_setting" for error option.
170
  * Corrected comments to source code.
171
  = 1.5 =
172
  CodeMirror scripts are combined and minified.