Plugin Directory

Changeset 3367847


Ignore:
Timestamp:
09/25/2025 01:10:08 PM (6 months ago)
Author:
PropertyHive
Message:

Update to version 2.1.9

Location:
propertyhive/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • propertyhive/trunk/README.txt

    r3365891 r3367847  
    44Requires at least: 5.6
    55Tested up to: 6.8.2
    6 Stable tag: 2.1.8
     6Stable tag: 2.1.9
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    182182
    183183== Changelog ==
     184
     185= 2.1.9 - 2025-09-25 =
     186* Added 'blank_option' attribute to office form field so the default 'No Preference' option can be customised
     187* Run image URL through esc_url() in Elementor Image widget
     188* Corrected issue with menu returning a 404 for certain menu items when 'Property Hive Only Mode' mode is enabled
    184189
    185190= 2.1.8 - 2025-09-22 =
  • propertyhive/trunk/includes/admin/class-ph-admin-menus.php

    r3365891 r3367847  
    145145                            }
    146146                        }
     147
    147148                        if ( class_exists($class_name) && $class_name != '' && $function_name != '' )
     149                        {
     150                            $callback = array( $class_name(), $function_name );
     151                        }
     152                        elseif ( function_exists($class_name) && $class_name != '' && $function_name != '' )
    148153                        {
    149154                            $callback = array( $class_name(), $function_name );
  • propertyhive/trunk/includes/elementor-widgets/property-image.php

    r3292381 r3367847  
    150150            if ( ! empty( $settings['image_link']['url'] ) )
    151151            {
    152                 echo '<div style="background:url(' . $url . ') no-repeat center center; background-size:cover;">';
     152                echo '<div style="background:url(' . esc_url($url) . ') no-repeat center center; background-size:cover;">';
    153153                $this->add_link_attributes( 'image_link', $settings['image_link'] );
    154154                ?><a <?php $this->print_render_attribute_string( 'image_link' ); ?> style="display:block; <?php echo 'padding-bottom:' . esc_attr($percent); ?>"><?php
  • propertyhive/trunk/includes/ph-form-functions.php

    r3357837 r3367847  
    11111111            $field['show_label'] = isset( $field['show_label'] ) ? $field['show_label'] : true;
    11121112            $field['label'] = isset( $field['label'] ) ? $field['label'] : '';
     1113            $field['blank_option'] = isset( $field['blank_option'] ) ? __( $field['blank_option'], 'propertyhive' ) : __( 'No preference', 'propertyhive' );
    11131114            $field['multiselect'] = isset( $field['multiselect'] ) ? $field['multiselect'] : false;
    11141115
     
    11361137                class="' . esc_attr( $field['class'] ) . ( $field['multiselect'] ? ' ph-form-multiselect' : '' ) . '"
    11371138                ' . ( $field['multiselect'] ? ' multiple="multiple"' : '' ) . '
    1138                 data-blank-option="' . esc_attr( __( 'No preference', 'propertyhive' ) ) . '"
     1139                data-blank-option="' . esc_attr( $field['blank_option'] ) . '"
    11391140            >';
    11401141
     
    11441145                        value=""
    11451146                        ' . selected( esc_attr( $field['value'] ), esc_attr( '' ), false ) . '
    1146                     >' . esc_html( __( 'No preference', 'propertyhive' ) ) . '</option>';
     1147                    >' . esc_html( $field['blank_option'] ) . '</option>';
    11471148            }
    11481149
  • propertyhive/trunk/propertyhive.php

    r3365891 r3367847  
    44 * Plugin URI: https://wordpress.org/plugins/propertyhive/
    55 * Description: Property Hive has everything you need to build estate agency websites
    6  * Version: 2.1.8
     6 * Version: 2.1.9
    77 * Author: PropertyHive
    88 * Author URI: https://wp-property-hive.com
     
    2828    *
    2929    * @class PropertyHive
    30     * @version 2.1.8
     30    * @version 2.1.9
    3131    */
    3232    final class PropertyHive {
     
    3535         * @var string
    3636         */
    37         public $version = '2.1.8';
     37        public $version = '2.1.9';
    3838         
    3939        /**
Note: See TracChangeset for help on using the changeset viewer.