Skip to content

Commit f0fa263

Browse files
authored
v0.5.8.1 - Merge pull request #117 from JoryHogeveen/dev
v0.5.8.1
2 parents 6ba3ee4 + 1021694 commit f0fa263

File tree

7 files changed

+20
-11
lines changed

7 files changed

+20
-11
lines changed

includes/class-frontend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ private function __construct() {
5353
* @since 0.5.8 Renamed from `default_actions` and made public.
5454
*/
5555
public function init() {
56+
5657
/**
5758
* Enable or disable frontend rendering.
5859
*
5960
* @since 0.5.8
60-
*
6161
* @param bool $enabled Whether to enable frontend.
6262
*/
6363
if ( ! apply_filters( 'ocs_enable_frontend', (bool) $this->get_settings( 'enable_frontend' ) ) ) {

includes/class-settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class OCS_Off_Canvas_Sidebars_Settings extends OCS_Off_Canvas_Sidebars_Bas
4949
'late_init' => 0,
5050
'frontend_type' => 'action',
5151
'site_close' => 1,
52-
'link_close' => 1,
52+
'link_close' => 0,
5353
'disable_over' => '',
5454
'hide_control_classes' => 0,
5555
'scroll_lock' => 0,
@@ -88,7 +88,7 @@ final class OCS_Off_Canvas_Sidebars_Settings extends OCS_Off_Canvas_Sidebars_Bas
8888
// Global overwrites.
8989
'overwrite_global_settings' => 0,
9090
'site_close' => 1,
91-
'link_close' => 1,
91+
'link_close' => 0,
9292
'disable_over' => '',
9393
'hide_control_classes' => 0,
9494
'scroll_lock' => 0,

includes/class-tab-general.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ protected function get_tab_fields() {
319319
'type' => 'checkbox',
320320
'section' => $section,
321321
'label' => esc_html__( 'Enable', OCS_DOMAIN ) . '.',
322-
'description' => esc_html__( 'Default', OCS_DOMAIN ) . ': ' . esc_html__( 'enabled', OCS_DOMAIN ) . '.',
322+
'description' => esc_html__( 'Default', OCS_DOMAIN ) . ': ' . esc_html__( 'disabled', OCS_DOMAIN ) . '.',
323323
);
324324

325325
$fields['disable_over'] = array(

js/off-canvas-sidebars.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @author Jory Hogeveen <[email protected]>
66
* @package Off_Canvas_Sidebars
77
* @since 0.2.0
8-
* @version 0.5.8
8+
* @version 0.5.8.1
99
* @global ocsOffCanvasSidebars
1010
* @preserve
1111
*/
@@ -398,6 +398,8 @@ if ( 'undefined' === typeof ocsOffCanvasSidebars ) {
398398
* @return {boolean} Success
399399
*/
400400
ocsOffCanvasSidebars.initEvents = function() {
401+
var controller = ocsOffCanvasSidebars.slidebarsController,
402+
prefix = ocsOffCanvasSidebars.css_prefix;
401403

402404
/**
403405
* Sidebar opening actions.

js/off-canvas-sidebars.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

off-canvas-sidebars.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
* @author Jory Hogeveen <[email protected]>
44
* @package Off_Canvas_Sidebars
55
* @since 0.1.0
6-
* @version 0.5.8
6+
* @version 0.5.8.1
77
* @licence GPL-2.0+
88
* @link https://github.com/JoryHogeveen/off-canvas-sidebars
99
*
1010
* @wordpress-plugin
1111
* Plugin Name: Off-Canvas Sidebars & Menus (Slidebars)
1212
* Description: Add off-canvas sidebars using the Slidebars jQuery plugin
1313
* Plugin URI: https://wordpress.org/plugins/off-canvas-sidebars/
14-
* Version: 0.5.8
14+
* Version: 0.5.8.1
1515
* Author: Jory Hogeveen
1616
* Author URI: http://www.keraweb.nl
1717
* Text Domain: off-canvas-sidebars
@@ -44,7 +44,7 @@
4444

4545
if ( ! class_exists( 'OCS_Off_Canvas_Sidebars' ) && ! function_exists( 'off_canvas_sidebars' ) ) {
4646

47-
define( 'OCS_PLUGIN_VERSION', '0.5.8' );
47+
define( 'OCS_PLUGIN_VERSION', '0.5.8.1' );
4848
define( 'OCS_DOMAIN', 'off-canvas-sidebars' );
4949
define( 'OCS_FILE', __FILE__ );
5050
define( 'OCS_BASENAME', plugin_basename( OCS_FILE ) );

readme.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: off-canvas, menus, widgets, sidebars, slidebars, panels, jQuery, app, mobi
55
Requires at least: 4.1
66
Tested up to: 6.3
77
Requires PHP: 5.2.4
8-
Stable tag: 0.5.8
8+
Stable tag: 0.5.8.1
99

1010
Add off-canvas sidebars (Slidebars) containing widgets, menus or other content using the Slidebars jQuery plugin.
1111

@@ -91,6 +91,13 @@ For more advanced customisations either:
9191

9292
== Changelog ==
9393

94+
= 0.5.8.1 =
95+
96+
* **Fix:** Incomplete merge of JS code.
97+
* **Enhancement:** Link close option is now opt-in.
98+
99+
Detailed info: [PR on GitHub](https://github.com/JoryHogeveen/off-canvas-sidebars/pull/117)
100+
94101
= 0.5.8 =
95102

96103
* **New:** Filter `ocs_enable_frontend`, modify enable frontend setting.

0 commit comments

Comments
 (0)