From e392e8d61a70bf5f8c975d40054ec83e5dc3b3ca Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Fri, 31 Jan 2020 15:19:34 +0700 Subject: [PATCH] Fix admin information fields --- changelog.txt | 45 ++++++++ inc/property/class-metabox-property-admin.php | 37 +------ .../class-metabox-property-submission.php | 103 +++++------------- opal-estate-pro.php | 6 +- readme.txt | 5 +- 5 files changed, 88 insertions(+), 108 deletions(-) diff --git a/changelog.txt b/changelog.txt index 77499fd6..368103a0 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,48 @@ += 1.2.9.3 - 2020-01-31 = +* Fixes - Admin infomation fields. + += 1.2.9.2 - 2020-01-30 = +* Fixes - Archive filter. + += 1.2.9.1 - 2020-01-13 = +* Added - Pages settings. + += 1.2.9 - 2020-01-09 = +* Added - Pages settings. + += 1.2.8 - 2020-01-06 = +* Added - Pages settings. + += 1.2.7 - 2020-01-02 = +* Added - Redirect to User Dashboard page after login/register setting. + += 1.2.6 - 2019-12-30 = +* Fixes - Compatible WordPress version. + += 1.2.5 - 2019-12-13 = +* Fixes - Slider properties. + += 1.2.4 - 2019-12-11 = +* Fixes - Order properties with featured properties. +* Fixes - Email approved. + += 1.2.3 - 2019-12-09 = +* Fixes - Order properties +* Fixes - Package template. + += 1.2.2 - 2019-12-06 = +* Added - Add Accumulated listings setting for packages. + += 1.2.1 - 2019-12-06 = +* Fixes - Submission property not saved. + += 1.2 - 2019-12-04 = +* Fixes - Login ajax. +* Added - Enable email settings. + += 1.1.9.3 - 2019-11-27 = +* Fixes - Measurement Unit translation. + = 1.1.9.2 - 2019-11-18 = * Added - Fix API. * Fixes - Search query. diff --git a/inc/property/class-metabox-property-admin.php b/inc/property/class-metabox-property-admin.php index 4b929220..1813c421 100755 --- a/inc/property/class-metabox-property-admin.php +++ b/inc/property/class-metabox-property-admin.php @@ -211,9 +211,9 @@ class Opalestate_Property_MetaBox { ], ], [ - 'name' => esc_html__( 'Address', 'opalestate-pro' ), - 'id' => $prefix . 'address', - 'type' => 'textarea_small', + 'name' => esc_html__( 'Address', 'opalestate-pro' ), + 'id' => $prefix . 'address', + 'type' => 'textarea_small', ], [ 'id' => "{$prefix}video", @@ -289,37 +289,25 @@ class Opalestate_Property_MetaBox { 'id' => $prefix . 'builtyear', 'type' => 'text', 'description' => esc_html__( 'Enter built year', 'opalestate-pro' ), - - 'before_row' => '

' . ( is_admin() ? "" : esc_html__( 'Property Information', 'opalestate-pro' ) ) . '

', + 'before_row' => '

' . ( is_admin() ? "" : esc_html__( 'Property Information', + 'opalestate-pro' ) ) . '

', ], [ 'name' => esc_html__( 'Parking', 'opalestate-pro' ), 'id' => $prefix . 'parking', 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'min' => 0, - ], 'description' => esc_html__( 'Enter number of Parking', 'opalestate-pro' ), ], [ 'name' => esc_html__( 'Bedrooms', 'opalestate-pro' ), 'id' => $prefix . 'bedrooms', 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'min' => 0, - ], 'description' => esc_html__( 'Enter number of bedrooms', 'opalestate-pro' ), ], [ 'name' => esc_html__( 'Bathrooms', 'opalestate-pro' ), 'id' => $prefix . 'bathrooms', 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'min' => 0, - ], 'description' => esc_html__( 'Enter number of bathrooms', 'opalestate-pro' ), ], [ @@ -344,33 +332,20 @@ class Opalestate_Property_MetaBox { 'name' => esc_html__( 'Living Rooms', 'opalestate-pro' ), 'id' => "{$prefix}livingrooms", 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'min' => 0, - ], 'description' => esc_html__( 'Enter Number of Living Rooms', 'opalestate-pro' ), ], [ 'name' => esc_html__( 'Kitchens', 'opalestate-pro' ), 'id' => "{$prefix}kitchens", 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'min' => 0, - ], 'description' => esc_html__( 'Enter Number of Kitchens', 'opalestate-pro' ), ], [ 'name' => esc_html__( 'Rooms', 'opalestate-pro' ), 'id' => "{$prefix}amountrooms", 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'min' => 0, - ], 'description' => esc_html__( 'Enter Number of Amount Rooms', 'opalestate-pro' ), - - 'after_row' => '
', + 'after_row' => '
', ], ]; diff --git a/inc/submission/class-metabox-property-submission.php b/inc/submission/class-metabox-property-submission.php index a9ea7cad..af07827d 100755 --- a/inc/submission/class-metabox-property-submission.php +++ b/inc/submission/class-metabox-property-submission.php @@ -242,44 +242,25 @@ class Opalestate_Property_MetaBox_Submission { 'id' => $prefix . 'builtyear', 'type' => 'text', 'description' => esc_html__( 'Enter built year', 'opalestate-pro' ), - - 'before_row' => '
', + 'before_row' => '
', ], [ - 'name' => esc_html__( 'Parking', 'opalestate-pro' ), - 'id' => $prefix . 'parking', - 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'pattern' => '\d*', - ], - 'sanitization_cb' => 'absint', - 'escape_cb' => 'absint', - 'description' => esc_html__( 'Enter number of Parking', 'opalestate-pro' ), + 'name' => esc_html__( 'Parking', 'opalestate-pro' ), + 'id' => $prefix . 'parking', + 'type' => 'text', + 'description' => esc_html__( 'Enter number of Parking', 'opalestate-pro' ), ], [ - 'name' => esc_html__( 'Bedrooms', 'opalestate-pro' ), - 'id' => $prefix . 'bedrooms', - 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'pattern' => '\d*', - ], - 'sanitization_cb' => 'absint', - 'escape_cb' => 'absint', - 'description' => esc_html__( 'Enter number of bedrooms', 'opalestate-pro' ), + 'name' => esc_html__( 'Bedrooms', 'opalestate-pro' ), + 'id' => $prefix . 'bedrooms', + 'type' => 'text', + 'description' => esc_html__( 'Enter number of bedrooms', 'opalestate-pro' ), ], [ - 'name' => esc_html__( 'Bathrooms', 'opalestate-pro' ), - 'id' => $prefix . 'bathrooms', - 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'pattern' => '\d*', - ], - 'sanitization_cb' => 'absint', - 'escape_cb' => 'absint', - 'description' => esc_html__( 'Enter number of bathrooms', 'opalestate-pro' ), + 'name' => esc_html__( 'Bathrooms', 'opalestate-pro' ), + 'id' => $prefix . 'bathrooms', + 'type' => 'text', + 'description' => esc_html__( 'Enter number of bathrooms', 'opalestate-pro' ), ], [ 'name' => esc_html__( 'Plot Size', 'opalestate-pro' ), @@ -288,16 +269,10 @@ class Opalestate_Property_MetaBox_Submission { 'description' => esc_html__( 'Enter size of Plot as 20x30, 20x30x40, 20x30x40x50', 'opalestate-pro' ), ], [ - 'name' => esc_html__( 'Area Size', 'opalestate-pro' ), - 'id' => $prefix . 'areasize', - 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'pattern' => '\d*', - ], - 'sanitization_cb' => 'absint', - 'escape_cb' => 'absint', - 'description' => esc_html__( 'Enter size of area in sqft', 'opalestate-pro' ), + 'name' => esc_html__( 'Area Size', 'opalestate-pro' ), + 'id' => $prefix . 'areasize', + 'type' => 'text', + 'description' => esc_html__( 'Enter size of area in sqft', 'opalestate-pro' ), ], [ 'name' => esc_html__( 'Orientation', 'opalestate-pro' ), @@ -306,43 +281,25 @@ class Opalestate_Property_MetaBox_Submission { 'description' => esc_html__( 'Enter Orientation of property', 'opalestate-pro' ), ], [ - 'name' => esc_html__( 'Living Rooms', 'opalestate-pro' ), - 'id' => "{$prefix}livingrooms", - 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'pattern' => '\d*', - ], - 'sanitization_cb' => 'absint', - 'escape_cb' => 'absint', - 'description' => esc_html__( 'Enter Number of Living Rooms', 'opalestate-pro' ), + 'name' => esc_html__( 'Living Rooms', 'opalestate-pro' ), + 'id' => "{$prefix}livingrooms", + 'type' => 'text', + 'description' => esc_html__( 'Enter Number of Living Rooms', 'opalestate-pro' ), ], [ - 'name' => esc_html__( 'Kitchens', 'opalestate-pro' ), - 'id' => "{$prefix}kitchens", - 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'pattern' => '\d*', - ], - 'sanitization_cb' => 'absint', - 'escape_cb' => 'absint', - 'description' => esc_html__( 'Enter Number of Kitchens', 'opalestate-pro' ), + 'name' => esc_html__( 'Kitchens', 'opalestate-pro' ), + 'id' => "{$prefix}kitchens", + 'type' => 'text', + 'description' => esc_html__( 'Enter Number of Kitchens', 'opalestate-pro' ), ], [ - 'name' => esc_html__( 'Rooms', 'opalestate-pro' ), - 'id' => "{$prefix}amountrooms", - 'type' => 'text', - 'attributes' => [ - 'type' => 'number', - 'pattern' => '\d*', - ], - 'sanitization_cb' => 'absint', - 'escape_cb' => 'absint', - 'description' => esc_html__( 'Enter Number of Amount Rooms', 'opalestate-pro' ), - 'after_row' => '


', ], diff --git a/opal-estate-pro.php b/opal-estate-pro.php index 4ab9fda2..1328a61a 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.2.9.2 + * Version: 1.2.9.3 * 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.2.9.2' ); + _doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'opalestate-pro' ), '1.2.9.3' ); } /** @@ -159,7 +159,7 @@ if ( ! class_exists( 'OpalEstate' ) ) { public function setup_constants() { // Plugin version if ( ! defined( 'OPALESTATE_VERSION' ) ) { - define( 'OPALESTATE_VERSION', '1.2.9.2' ); + define( 'OPALESTATE_VERSION', '1.2.9.3' ); } // Plugin Folder Path diff --git a/readme.txt b/readme.txt index 4792b1cb..d3a8e065 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://wpdocs.gitbook.io/opal-estate/ Tags: estate, property, opalestate, house for rent, agency for lease, estate submission, agents estate property, property marketplace Requires at least: 4.9 Tested up to: 5.3.2 -Stable tag: 1.2.9.2 +Stable tag: 1.2.9.3 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -156,6 +156,9 @@ This section describes how to install the plugin and get it working. * System tickets support 24/7 available : [free support](https://wpopal.ticksy.com/ "Visit the Plugin support Page") == Changelog == += 1.2.9.3 - 2020-01-31 = +* Fixes - Admin infomation fields. + = 1.2.9.2 - 2020-01-30 = * Fixes - Archive filter.