Skip to content

Commit

Permalink
fix: crb empty field check
Browse files Browse the repository at this point in the history
  • Loading branch information
MarJC5 committed Sep 3, 2024
1 parent 2ada45d commit 8bdf518
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions models/OptionPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public static function crb(string $name)

public static function has_crb(string $name): bool
{
error_log(carbon_get_theme_option($name));
return empty(carbon_get_theme_option($name));
return empty(carbon_get_theme_option($name)) ? false : true;
}
}
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Le theme compatible avec le plugin est [wpbuilder-boilerplate](https://github.co

== Changelog ==

= 1.4.2 =
- Fix crb empty field check

= 1.4.1 =
- Fix custom post type Project labels in complex carbon fields

Expand Down
2 changes: 1 addition & 1 deletion wpbuilder-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: WPbuilder
* Description: WPbuilder Theme Plugin
* Plugin URI: https://github.com/misits/wpbuilder-plugin
* Version: 1.4.1
* Version: 1.4.2
* Requires at least: 5.2
* Requires PHP: 8.0
* Author: Martin IS IT Services
Expand Down

0 comments on commit 8bdf518

Please sign in to comment.