Fixes. Tag 1.4.9.2

This commit is contained in:
Hoang Huu
2020-05-21 17:08:16 +07:00
parent 4ddb72638e
commit 05d30614ed
15 changed files with 102 additions and 63 deletions

BIN
inc/.DS_Store vendored

Binary file not shown.

BIN
inc/admin/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -158,6 +158,7 @@ class Opalestate_Settings_Pages_Tab extends Opalestate_Settings_Base_Tab {
'on' => esc_html__( 'Enable', 'opalestate-pro' ),
'off' => esc_html__( 'Disable', 'opalestate-pro' ),
],
'default' => 'off',
],
[
'name' => esc_html__( 'Show Submission', 'opalestate-pro' ),

View File

@@ -211,7 +211,7 @@ function opalestate_toggle_featured_property() {
$check = apply_filters( 'opalestate_set_feature_property_checked', false );
if ( $check ) {
do_action( 'opalestate_toggle_featured_property_before', $user_id, $property_id );
update_post_meta( $property_id, OPALESTATE_PROPERTY_PREFIX . 'featured', 1 );
update_post_meta( $property_id, OPALESTATE_PROPERTY_PREFIX . 'featured', 'on' );
echo json_encode( [ 'status' => true, 'msg' => esc_html__( 'Could not set this as featured', 'opalestate-pro' ) ] );
wp_die();
}

View File

@@ -370,29 +370,32 @@ class OpalEstate_User_Message {
$charset_collate = $wpdb->get_charset_collate();
$sql = 'CREATE TABLE IF NOT EXISTS ' . $wpdb->prefix . 'opalestate_message' . ' (
`id` int(11) UNSIGNED NOT NULL,
`subject` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`subject` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`sender_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`sender_email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sender_id` int(11) DEFAULT NULL,
`created` datetime NOT NULL,
`receiver_id` int(11) NOT NULL,
`post_id` int(11) NOT NULL,
`type` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
`isread` tinyint(1) NOT NULL
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`isread` tinyint(1) NOT NULL,
PRIMARY KEY (id)
) ' . $charset_collate;
dbDelta( $sql );
///
$sql = 'CREATE TABLE IF NOT EXISTS ' . $wpdb->prefix . 'opalestate_message_reply' . ' (
`id` int(11) NOT NULL,
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`message_id` int(11) NOT NULL,
`sender_id` int(11) NOT NULL,
`message` text NOT NULL,
`created` datetime NOT NULL,
`receiver_id` int(11) NOT NULL
`receiver_id` int(11) NOT NULL,
PRIMARY KEY (id)
) ' . $charset_collate;
dbDelta( $sql );

View File

@@ -119,17 +119,19 @@ class OpalEstate_User_Request_Viewing {
$charset_collate = $wpdb->get_charset_collate();
$sql = 'CREATE TABLE IF NOT EXISTS ' . $wpdb->prefix . 'opalestate_message' . ' (
`id` int(11) UNSIGNED NOT NULL,
`subject` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`subject` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`sender_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`sender_email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sender_id` int(11) DEFAULT NULL,
`created` datetime NOT NULL,
`receiver_id` int(11) NOT NULL,
`post_id` int(11) NOT NULL,
`type` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
`isread` tinyint(1) NOT NULL
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`isread` tinyint(1) NOT NULL,
PRIMARY KEY (id)
) ' . $charset_collate;
dbDelta( $sql );

BIN
inc/vendors/.DS_Store vendored

Binary file not shown.