Version Description
- Fix: Added an extra check to prevent errors in setups where the closed metaboxes user option is not an array.
Download this release
Release Info
Developer | gripgrip |
Plugin | Insert Headers and Footers |
Version | 2.0.4.4 |
Comparing to | |
See all releases |
Code changes from version 2.0.4.3 to 2.0.4.4
- ihaf.php +1 -1
- includes/admin/class-wpcode-metabox-snippets.php +5 -1
- readme.txt +4 -1
ihaf.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WPCode Lite
|
4 |
* Plugin URI: https://www.wpcode.com/
|
5 |
-
* Version: 2.0.4.
|
6 |
* Requires at least: 4.6
|
7 |
* Requires PHP: 5.5
|
8 |
* Tested up to: 6.1
|
2 |
/**
|
3 |
* Plugin Name: WPCode Lite
|
4 |
* Plugin URI: https://www.wpcode.com/
|
5 |
+
* Version: 2.0.4.4
|
6 |
* Requires at least: 4.6
|
7 |
* Requires PHP: 5.5
|
8 |
* Tested up to: 6.1
|
includes/admin/class-wpcode-metabox-snippets.php
CHANGED
@@ -88,11 +88,15 @@ abstract class WPCode_Metabox_Snippets {
|
|
88 |
/**
|
89 |
* Add our metabox id to the array of closed metaboxes when the page loads.
|
90 |
*
|
91 |
-
* @param
|
92 |
*
|
93 |
* @return array
|
94 |
*/
|
95 |
public function add_metabox_to_user_closed( $closed ) {
|
|
|
|
|
|
|
|
|
96 |
$closed[] = $this->id;
|
97 |
|
98 |
return $closed;
|
88 |
/**
|
89 |
* Add our metabox id to the array of closed metaboxes when the page loads.
|
90 |
*
|
91 |
+
* @param mixed $closed
|
92 |
*
|
93 |
* @return array
|
94 |
*/
|
95 |
public function add_metabox_to_user_closed( $closed ) {
|
96 |
+
// Make sure it's an array.
|
97 |
+
if ( ! is_array( $closed ) ) {
|
98 |
+
$closed = array();
|
99 |
+
}
|
100 |
$closed[] = $this->id;
|
101 |
|
102 |
return $closed;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: code, css, php, footer, functions, content, facebook pixel, footer code, f
|
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.1
|
6 |
Requires PHP: 5.5
|
7 |
-
Stable tag: 2.0.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -308,6 +308,9 @@ Syed Balkhi
|
|
308 |
|
309 |
== Changelog ==
|
310 |
|
|
|
|
|
|
|
311 |
= 2.0.4.3 =
|
312 |
* Tweak: We updated the default behaviour of our page scripts metabox so that it is collapsed by default.
|
313 |
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.1
|
6 |
Requires PHP: 5.5
|
7 |
+
Stable tag: 2.0.4.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
308 |
|
309 |
== Changelog ==
|
310 |
|
311 |
+
= 2.0.4.4 =
|
312 |
+
* Fix: Added an extra check to prevent errors in setups where the closed metaboxes user option is not an array.
|
313 |
+
|
314 |
= 2.0.4.3 =
|
315 |
* Tweak: We updated the default behaviour of our page scripts metabox so that it is collapsed by default.
|
316 |
|