From b4b2d5c55344bd77a5b834646a5511efcf02371c Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Tue, 5 May 2020 13:52:18 +0700 Subject: [PATCH] P --- changelog.txt | 3 +++ .../class-metabox-property-submission.php | 14 +++++++++++--- opal-estate-pro.php | 6 +++--- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/changelog.txt b/changelog.txt index d714fa60..4bff4240 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ += 1.4.8 - 2020-05-05 = +* Fixes - Submission information tab. + = 1.4.6 - 2020-04-22 = * Fixes - Search queries. * Removed - Sticky single property sidebar. diff --git a/inc/submission/class-metabox-property-submission.php b/inc/submission/class-metabox-property-submission.php index af07827d..e2ab42b5 100755 --- a/inc/submission/class-metabox-property-submission.php +++ b/inc/submission/class-metabox-property-submission.php @@ -299,13 +299,21 @@ class Opalestate_Property_MetaBox_Submission { 'id' => "{$prefix}amountrooms", 'type' => 'text', 'description' => esc_html__( 'Enter Number of Amount Rooms', 'opalestate-pro' ), - 'after_row' => '
', + // 'after_row' => '
', ], ]; - return apply_filters( 'opalestate_metaboxes_public_info_fields', $fields ); + $fields = apply_filters( 'opalestate_metaboxes_public_info_fields', $fields ); + + $keys = array_keys( $fields ); + $last = end( $keys ); + + $fields[ $last ]['after_row'] = '
'; + + return $fields; } public function metaboxes_location_fields() { diff --git a/opal-estate-pro.php b/opal-estate-pro.php index 4289ab12..f7a488e2 100755 --- a/opal-estate-pro.php +++ b/opal-estate-pro.php @@ -3,7 +3,7 @@ * Plugin Name: Opal Estate Pro * Plugin URI: https://wpdocs.gitbook.io/opal-estate/ * Description: Opal Real Estate Plugin is an ideal solution and brilliant choice for you to set up a professional estate website. - * Version: 1.4.6 + * Version: 1.4.8 * Author: WPOPAL * Author URI: http://www.wpopal.com * Requires at least: 4.9 @@ -150,7 +150,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { */ public function __clone() { // Cloning instances of the class is forbidden - _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.4.6' ); + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.4.8' ); } /** @@ -159,7 +159,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { public function setup_constants() { // Plugin version if ( ! defined( 'OPALESTATE_VERSION' ) ) { - define( 'OPALESTATE_VERSION', '1.4.6' ); + define( 'OPALESTATE_VERSION', '1.4.8' ); } // Plugin Folder Path