Skip to content

Commit 319e349

Browse files
committed
prepared release v4.1.0
1 parent 0b046db commit 319e349

File tree

6 files changed

+37
-8
lines changed

6 files changed

+37
-8
lines changed

.wp-skeleton.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"slug": "enlighter",
33
"name": "Enlighter",
44
"namespace": "Enlighter",
5-
"version": "4.1-BETA1",
5+
"version": "4.1",
66
"license": "GPL-2.0",
77
"licenseFile": "LICENSE.txt",
88
"constants": {},

CHANGES.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,20 @@
22

33
### 4.1.0 ###
44

5+
* Added: EnlighterJS `v3.2.0`
6+
* Added: EnlighterJS Theme-Customizer `v2.1.0`
7+
* Added: verilog support - thanks to [t123yh on GitHub](https://github.com/EnlighterJS/EnlighterJS/pull/86)
8+
* Added: integer highlighting for sql
9+
* Added: additional usage notes to the theme customizer
10+
* Added: added option to hide EnlighterJS website link/button
11+
* Added: browser based tooltips to the buttons (title attribute)
12+
* Added: fallback language option for backward compatibility (`Enlighter -> Options -> Advanced -> EnlighterJS`)
13+
* Added: additional description to the base theme settings
14+
* Added: methods to retrieve theme+language list from singleton instance
515
* Changed: removed the `use_smilies` environment check - it has been fixed in WordPress core
16+
* Changed: empty values within customizer take presendence over base theme (empty values cause the css rule to be deleted if exist)
17+
* Bugfix: powershell commands can also expressed lowercase (camel-case not required) - thanks to [krysiekBP on GitHub](https://github.com/EnlighterJS/EnlighterJS/issues/88)
18+
* Bugfix: sql `--` styles comments ignored due to invalid regex - thanks to [petr-hybler on GitHub](https://github.com/EnlighterJS/EnlighterJS/issues/97)
619

720
### 4.0.0 ###
821

Enlighter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Enlighter - Customizable Syntax Highlighter
44
Plugin URI: https://enlighterjs.org
55
Description: all-in-one syntax highlighting solution
6-
Version: 4.1-BETA1
6+
Version: 4.1
77
Author: Andi Dittrich
88
Author URI: https://andidittrich.com
99
License: GPL-2.0
@@ -16,7 +16,7 @@
1616
// Plugin Bootstrap Operation
1717
// AUTO GENERATED CODE - DO NOT EDIT !!!
1818
define('ENLIGHTER_INIT', true);
19-
define('ENLIGHTER_VERSION', '4.1-BETA1');
19+
define('ENLIGHTER_VERSION', '4.1');
2020
define('ENLIGHTER_WPSKLTN_VERSION', '0.23.0');
2121
define('ENLIGHTER_PHP_VERSION', '5.6');
2222
define('ENLIGHTER_PLUGIN_TITLE', 'Enlighter - Customizable Syntax Highlighter');

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: syntax highlighting, javascript, code, coding, sourcecode, mootools, jquer
44
Donate link: https://enlighterjs.org
55
Requires at least: 5.0
66
Tested up to: 5.4
7-
Stable tag: 4.0.0
7+
Stable tag: 4.1.0
88
License: GPL-2.0
99
License URI: https://opensource.org/licenses/gpl-2.0.php
1010

@@ -128,6 +128,9 @@ All modern webbrowsers with enabled Javascript and HTML5 capabilities for "data-
128128

129129
## Upgrade Notice ##
130130

131+
### 4.1 ###
132+
Everything has been changed - read enlighterjs.org/wp-v4 before upgrading - THIS RELEASE IS NOT BACKWARD COMPATIBLE
133+
131134
### 4.0 ###
132135
Everything has been changed - read enlighterjs.org/wp-v4 before upgrading - THIS RELEASE IS NOT BACKWARD COMPATIBLE
133136

modules/skltn/Plugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function showUpgradeAvailabilityNotification($currentPluginMetadata, $new
271271
public function showUpgradeMessage(){
272272
// styling
273273
echo '<div class="notice notice-success is-dismissible"><p>';
274-
echo '<strong>Enlighter Plugin Upgrade:</strong> The Plugin has been upgraded to <strong>4.1-BETA1</strong>';
274+
echo '<strong>Enlighter Plugin Upgrade:</strong> The Plugin has been upgraded to <strong>4.1</strong>';
275275
echo '</p></div>';
276276
}
277277

@@ -300,14 +300,14 @@ public static function run($pluginName){
300300
// plugin installed ?
301301
if ($version == '0.0.0'){
302302
// store new version
303-
update_option('enlighter-version', '4.1-BETA1');
303+
update_option('enlighter-version', '4.1');
304304

305305
// plugin upgraded ?
306-
}else if (version_compare('4.1-BETA1', $version, '>')){
306+
}else if (version_compare('4.1', $version, '>')){
307307
// run upgrade hook
308308
if ($i->_wp_plugin_upgrade($version)){
309309
// store new version
310-
update_option('enlighter-version', '4.1-BETA1');
310+
update_option('enlighter-version', '4.1');
311311

312312
// set flag (string!)
313313
update_option('enlighter-upgrade', 'true');

views/admin/about/Changelog.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
<ul>
2+
<li>Added: EnlighterJS <code>v3.2.0</code></li>
3+
<li>Added: EnlighterJS Theme-Customizer <code>v2.1.0</code></li>
4+
<li>Added: verilog support - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/pull/86">t123yh on GitHub</a></li>
5+
<li>Added: integer highlighting for sql</li>
6+
<li>Added: additional usage notes to the theme customizer</li>
7+
<li>Added: added option to hide EnlighterJS website link/button</li>
8+
<li>Added: browser based tooltips to the buttons (title attribute)</li>
9+
<li>Added: fallback language option for backward compatibility (<code>Enlighter -&gt; Options -&gt; Advanced -&gt; EnlighterJS</code>)</li>
10+
<li>Added: additional description to the base theme settings</li>
11+
<li>Added: methods to retrieve theme+language list from singleton instance</li>
212
<li>Changed: removed the <code>use_smilies</code> environment check - it has been fixed in WordPress core</li>
13+
<li>Changed: empty values within customizer take presendence over base theme (empty values cause the css rule to be deleted if exist)</li>
14+
<li>Bugfix: powershell commands can also expressed lowercase (camel-case not required) - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/issues/88">krysiekBP on GitHub</a></li>
15+
<li>Bugfix: sql <code>--</code> styles comments ignored due to invalid regex - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/issues/97">petr-hybler on GitHub</a></li>
316
</ul>

0 commit comments

Comments
 (0)