diff --git a/includes/class-geodir-compatibility.php b/includes/class-geodir-compatibility.php
index 04113c64..57006bd6 100644
--- a/includes/class-geodir-compatibility.php
+++ b/includes/class-geodir-compatibility.php
@@ -4159,14 +4159,15 @@ public static function ajax_listings_before( $data ) {
* Block theme like Twenty Twenty Two has issue in loading scripts.
*
* @since 2.1.1.14
+ * @since 2.3.30 Breakdance Page Builder(themeless) compatibility.
*
- * @param array $options Super Duper block options.
+ * @param array $options Super Duper block options.
* @param object $super_duper Super Duper object.
*/
public static function block_theme_load_scripts( $options, $super_duper ) {
global $geodir_frontend_scripts_loaded;
- if ( ! $geodir_frontend_scripts_loaded && function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() && ! wp_script_is( 'geodir', 'registered' ) ) {
+ if ( ! $geodir_frontend_scripts_loaded && ( ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) || defined( '__BREAKDANCE_VERSION' ) ) && ! wp_script_is( 'geodir', 'registered' ) ) {
$geodir_frontend_scripts_loaded = true;
GeoDir_Frontend_Scripts::load_scripts();
diff --git a/includes/custom-fields/output-functions.php b/includes/custom-fields/output-functions.php
index 2f2b2682..b48ee68b 100644
--- a/includes/custom-fields/output-functions.php
+++ b/includes/custom-fields/output-functions.php
@@ -2519,19 +2519,23 @@ function geodir_cf_address($html,$location,$cf,$p='',$output=''){
// Render private address.
$address_fields = geodir_post_address( $address_fields, 'address', $gd_post );
+ $plain_value = wp_strip_all_tags( $address_fields, true );
+ if ( $plain_value == '' ) {
+ return $html;
+ }
+
// Database value.
if ( ! empty( $output ) && isset( $output['raw'] ) ) {
- $address_fields = str_replace("
","",$address_fields);
- return stripslashes( wp_strip_all_tags($address_fields) );
+ $address_fields = str_replace( "
", "", $address_fields );
+ return stripslashes( wp_strip_all_tags( $address_fields, true ) );
}
// Stripped value.
if ( ! empty( $output ) && isset( $output['strip'] ) ) {
- $address_fields = str_replace("
",",",$address_fields);
- return stripslashes( wp_strip_all_tags($address_fields) );
+ $address_fields = str_replace( "
", ",", $address_fields );
+ return stripslashes( wp_strip_all_tags( $address_fields, true ) );
}
-// print_r($cf);exit;
$html = '