Skip to content

Commit 50b4989

Browse files
committed
prepared release 4.2.0
1 parent 16fa599 commit 50b4989

File tree

6 files changed

+32
-55
lines changed

6 files changed

+32
-55
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.2-BETA1",
5+
"version": "4.2",
66
"license": "GPL-2.0",
77
"licenseFile": "LICENSE.txt",
88
"constants": {},

CHANGES.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@
1010
* Changed: external themes requires `enlighterjs` as css dependency to avoid styling issues
1111
* Changed: removed Enlighter version string from external themes
1212
* Bugfix: added missing languages to the list (abap,scala,qml,verilog)
13-
1413
* Added: [apachehttpd/htaccess](https://httpd.apache.org/docs/2.4/configuring.html) support
1514
* Added: [lighttpd](https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Configuration) support
1615
* Added: [nginx](https://www.nginx.com/resources/wiki/start/topics/examples/full/) support
1716
* Added: [purebasic](https://www.purebasic.com/) support - thanks to [gphilippot on GitHub](https://github.com/EnlighterJS/EnlighterJS/pull/96)
1817
* Added: minimal latex/tex support
1918
* Changed: theme font sizes + line-height are based on relative `em` values - only the font size of the outer wrapper is set explicitly
2019
* Changed: removed "function" highlighting regex from `sql`
21-
22-
2320
* Added: option to customize the raw code pane
2421
* Added: option to set the token base styles inlcuding font-size - feature requested [on GitHub](https://github.com/EnlighterJS/Plugin.ThemeCustomizer/issues/6)
2522
* Added: option to set button background-color and line-height
@@ -28,7 +25,6 @@
2825
* Changed: moved line-number settings to tab `lines`
2926
* Changed: removed tab "fonts"
3027
* Bugfix: highlighted-line hover selector was invalid -> selection of `background-color:hover` was not possible - thanks to [ajtruckle on GitHub](https://github.com/EnlighterJS/Plugin.ThemeCustomizer/issues/4) #4
31-
3228
* Bugfix: removed typos in code edit dialog - thanks to [ajtruckle on GitHub](https://github.com/EnlighterJS/Plugin.TinyMCE/issues/10)
3329

3430

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.2-BETA1
6+
Version: 4.2
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.2-BETA1');
19+
define('ENLIGHTER_VERSION', '4.2');
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ It also supports the automatic creation of tab-panes to display code-groups toge
6161

6262
### Compatibility/Migration
6363
* Crayon compatibility mode (use EnlighterJS highlighting for legacy Crayon `pre` codeblocks)
64+
* CodeColorer compatibility mode (use EnlighterJS highlighting for legacy CodeColorer shortcodes)
6465
* Jetpack markdown compatibility mode (generic or raw highlighting)
6566
* Gutenberg standard codeblock compatibility mode (no language attributes)
6667

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.2-BETA1</strong>';
274+
echo '<strong>Enlighter Plugin Upgrade:</strong> The Plugin has been upgraded to <strong>4.2</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.2-BETA1');
303+
update_option('enlighter-version', '4.2');
304304

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

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

views/admin/about/Changelog.html

Lines changed: 24 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,26 @@
11
<ul>
2-
<li><p>Added: EnlighterJS <code>v3.3.0</code></p>
3-
</li>
4-
<li><p>Added: EnlighterJS Theme-Customizer <code>v2.2.0</code></p>
5-
</li>
6-
<li><p>Added: compatbility mode for <a href="https://wordpress.org/support/plugin/codecolorer/">CodeColorer</a> . features requested <a href="https://github.com/EnlighterJS/Plugin.WordPress/issues/222">by ajtruckle on GitHub</a></p>
7-
</li>
8-
<li><p>Added: filters to alter the editor config (Gutenberg+TinyMCE) - features requested <a href="https://github.com/EnlighterJS/Plugin.WordPress/issues/251">by ajtruckle on GitHub</a></p>
9-
</li>
10-
<li><p>Bugfix: added missing languages to the list (abap,scala,qml,verilog)</p>
11-
</li>
12-
<li><p>Added: <a href="https://httpd.apache.org/docs/2.4/configuring.html">apachehttpd/htaccess</a> support</p>
13-
</li>
14-
<li><p>Added: <a href="https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Configuration">lighttpd</a> support</p>
15-
</li>
16-
<li><p>Added: <a href="https://www.nginx.com/resources/wiki/start/topics/examples/full/">nginx</a> support</p>
17-
</li>
18-
<li><p>Added: <a href="https://www.purebasic.com/">purebasic</a> support - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/pull/96">gphilippot on GitHub</a></p>
19-
</li>
20-
<li><p>Added: minimal latex/tex support</p>
21-
</li>
22-
<li><p>Changed: theme font sizes + line-height are based on relative <code>em</code> values - only the font size of the outer wrapper is set explicitly</p>
23-
</li>
24-
<li><p>Changed: removed &quot;function&quot; highlighting regex from <code>sql</code></p>
25-
</li>
26-
</ul>
27-
<ul>
28-
<li><p>Added: option to customize the raw code pane</p>
29-
</li>
30-
<li><p>Added: option to set the token base styles inlcuding font-size - feature requested <a href="https://github.com/EnlighterJS/Plugin.ThemeCustomizer/issues/6">on GitHub</a></p>
31-
</li>
32-
<li><p>Added: option to set button background-color and line-height</p>
33-
</li>
34-
<li><p>Added: tab <code>defaults</code> to change global settings</p>
35-
</li>
36-
<li><p>Changed: moved button related settings to tab <code>buttons</code></p>
37-
</li>
38-
<li><p>Changed: moved line-number settings to tab <code>lines</code></p>
39-
</li>
40-
<li><p>Changed: removed tab &quot;fonts&quot;</p>
41-
</li>
42-
<li><p>Bugfix: highlighted-line hover selector was invalid -&gt; selection of <code>background-color:hover</code> was not possible - thanks to <a href="https://github.com/EnlighterJS/Plugin.ThemeCustomizer/issues/4">ajtruckle on GitHub</a> #4</p>
43-
</li>
44-
<li><p>Bugfix: removed typos in code edit dialog - thanks to <a href="https://github.com/EnlighterJS/Plugin.TinyMCE/issues/10">ajtruckle on GitHub</a></p>
45-
</li>
2+
<li>Added: EnlighterJS <code>v3.3.0</code></li>
3+
<li>Added: EnlighterJS Theme-Customizer <code>v2.2.0</code></li>
4+
<li>Added: compatbility mode for <a href="https://wordpress.org/support/plugin/codecolorer/">CodeColorer</a> . features requested <a href="https://github.com/EnlighterJS/Plugin.WordPress/issues/222">by ajtruckle on GitHub</a></li>
5+
<li>Added: filters to alter the editor config (Gutenberg+TinyMCE) - features requested <a href="https://github.com/EnlighterJS/Plugin.WordPress/issues/251">by ajtruckle on GitHub</a></li>
6+
<li>Added: documentation how to use external themes (linked within contextual help)</li>
7+
<li>Changed: external themes requires <code>enlighterjs</code> as css dependency to avoid styling issues</li>
8+
<li>Changed: removed Enlighter version string from external themes</li>
9+
<li>Bugfix: added missing languages to the list (abap,scala,qml,verilog)</li>
10+
<li>Added: <a href="https://httpd.apache.org/docs/2.4/configuring.html">apachehttpd/htaccess</a> support</li>
11+
<li>Added: <a href="https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Configuration">lighttpd</a> support</li>
12+
<li>Added: <a href="https://www.nginx.com/resources/wiki/start/topics/examples/full/">nginx</a> support</li>
13+
<li>Added: <a href="https://www.purebasic.com/">purebasic</a> support - thanks to <a href="https://github.com/EnlighterJS/EnlighterJS/pull/96">gphilippot on GitHub</a></li>
14+
<li>Added: minimal latex/tex support</li>
15+
<li>Changed: theme font sizes + line-height are based on relative <code>em</code> values - only the font size of the outer wrapper is set explicitly</li>
16+
<li>Changed: removed &quot;function&quot; highlighting regex from <code>sql</code></li>
17+
<li>Added: option to customize the raw code pane</li>
18+
<li>Added: option to set the token base styles inlcuding font-size - feature requested <a href="https://github.com/EnlighterJS/Plugin.ThemeCustomizer/issues/6">on GitHub</a></li>
19+
<li>Added: option to set button background-color and line-height</li>
20+
<li>Added: tab <code>defaults</code> to change global settings</li>
21+
<li>Changed: moved button related settings to tab <code>buttons</code></li>
22+
<li>Changed: moved line-number settings to tab <code>lines</code></li>
23+
<li>Changed: removed tab &quot;fonts&quot;</li>
24+
<li>Bugfix: highlighted-line hover selector was invalid -&gt; selection of <code>background-color:hover</code> was not possible - thanks to <a href="https://github.com/EnlighterJS/Plugin.ThemeCustomizer/issues/4">ajtruckle on GitHub</a> #4</li>
25+
<li>Bugfix: removed typos in code edit dialog - thanks to <a href="https://github.com/EnlighterJS/Plugin.TinyMCE/issues/10">ajtruckle on GitHub</a></li>
4626
</ul>

0 commit comments

Comments
 (0)