Version Description
- Fix: Don't show the metabox when headers & footers only mode is enabled.
Download this release
Release Info
| Developer | gripgrip |
| Plugin | |
| Version | 2.0.4.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.4 to 2.0.4.1
- ihaf.php +1 -1
- includes/admin/class-wpcode-metabox-snippets.php +5 -0
- includes/lite/admin/admin-scripts.php +4 -0
- 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.1
|
| 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
|
@@ -83,6 +83,11 @@ abstract class WPCode_Metabox_Snippets {
|
|
| 83 |
return;
|
| 84 |
}
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
$post_type_details = get_post_type_object( $post_type );
|
| 87 |
|
| 88 |
// Add metabox only on public post types.
|
| 83 |
return;
|
| 84 |
}
|
| 85 |
|
| 86 |
+
if ( wpcode()->settings->get_option('headers_footers_mode') ) {
|
| 87 |
+
// Don't load the metabox when headers & footers mode is enabled.
|
| 88 |
+
return;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
$post_type_details = get_post_type_object( $post_type );
|
| 92 |
|
| 93 |
// Add metabox only on public post types.
|
includes/lite/admin/admin-scripts.php
CHANGED
|
@@ -13,5 +13,9 @@ add_action( 'admin_enqueue_scripts', 'wpcode_admin_scripts_global_lite' );
|
|
| 13 |
* @return void
|
| 14 |
*/
|
| 15 |
function wpcode_admin_scripts_global_lite() {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
wpcode_admin_scripts_global();
|
| 17 |
}
|
| 13 |
* @return void
|
| 14 |
*/
|
| 15 |
function wpcode_admin_scripts_global_lite() {
|
| 16 |
+
// Don't load global admin scripts if headers & footers mode is enabled.
|
| 17 |
+
if ( wpcode()->settings->get_option('headers_footers_mode') ) {
|
| 18 |
+
return;
|
| 19 |
+
}
|
| 20 |
wpcode_admin_scripts_global();
|
| 21 |
}
|
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 =
|
| 312 |
* New: We added more free snippets to the snippet library, simply connect your website to the WPCode Library and load them directly from the WPCode plugin.
|
| 313 |
* New: We added a new code type for CSS Styles that many of you requested, so now it's even easier to add custom styles to your site with all the powerful WPCode features.
|
| 4 |
Requires at least: 4.6
|
| 5 |
Tested up to: 6.1
|
| 6 |
Requires PHP: 5.5
|
| 7 |
+
Stable tag: 2.0.4.1
|
| 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.1 =
|
| 312 |
+
* Fix: Don't show the metabox when headers & footers only mode is enabled.
|
| 313 |
+
|
| 314 |
= 2.0.4 =
|
| 315 |
* New: We added more free snippets to the snippet library, simply connect your website to the WPCode Library and load them directly from the WPCode plugin.
|
| 316 |
* New: We added a new code type for CSS Styles that many of you requested, so now it's even easier to add custom styles to your site with all the powerful WPCode features.
|
