Plugin Directory

Changeset 3082862


Ignore:
Timestamp:
05/07/2024 10:39:41 PM (2 years ago)
Author:
realtyna
Message:

WPL 4.14.10 released

Location:
real-estate-listing-realtyna-wpl/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • real-estate-listing-realtyna-wpl/trunk/WPL.php

    r3080599 r3082862  
    55 * Description: WPL is a professional WordPress real estate plugin created by Realtyna.
    66 * Author: Realtyna
    7  * Version: 4.14.9
     7 * Version: 4.14.10
    88 * Text Domain: real-estate-listing-realtyna-wpl
    99 * Domain Path: /languages
     
    2828 */
    2929define('WPL_TEXTDOMAIN', 'real-estate-listing-realtyna-wpl');
    30 define('WPL_VERSION', '4.14.9'); // WPL Version
     30define('WPL_VERSION', '4.14.10'); // WPL Version
    3131
    3232require WPL_ABSPATH.'config.php';
  • real-estate-listing-realtyna-wpl/trunk/global.php

    r3080603 r3082862  
    11871187            return ['success'=> 0, 'message'=> 'Please use WPL PRO'];
    11881188        }
    1189        
    11901189        $current_url = wpl_global::get_full_url();
    11911190        $domain = wpl_global::domain($current_url);
  • real-estate-listing-realtyna-wpl/trunk/libraries/property.php

    r3080599 r3082862  
    393393        if(wpl_global::zap_search_enabled())
    394394        {
    395             $this->rush_data['sort'] = [str_replace('p.', '', $this->orderby) => $this->order];
     395            $this->rush_data['sort'] = [str_replace('p.', '', str_replace('`', '', $this->orderby)) => $this->order];
    396396            $this->rush_data['select'] = $this->select;
    397397            $this->rush_data['query'] = wpl_db::_prefix($query);
  • real-estate-listing-realtyna-wpl/trunk/readme.txt

    r3080599 r3082862  
    55Requires at least: 4.7.0
    66Tested up to: 6.4.1
    7 Stable tag: 4.14.9
     7Stable tag: 4.14.10
    88Requires PHP: 7.4
    9 Version: 4.14.9
     9Version: 4.14.10
    1010License: GPL-2.0-or-later
    1111License URI: https://www.gnu.org/licenses/license-list.html#GPLv2
  • real-estate-listing-realtyna-wpl/trunk/views/activities/listing_gallery/main.php

    r3080599 r3082862  
    4949        }
    5050
    51         /** Load Tag Styles **/
     51        $tags_str = apply_filters('wpl_activity_main_listing_gallery/tags/after', $tags_str, $this->current_property['data']);
    5252        $this->tags_styles($tags);
    5353       
  • real-estate-listing-realtyna-wpl/trunk/views/backend/wpl/wpl_ajax.php

    r3080599 r3082862  
    1616        if ($function == 'install_package') $this->install_package();
    1717        elseif ($function == 'check_addon_update') $this->check_addon_update();
    18         elseif ($function == 'update_package') $this->update_package();
    1918        elseif ($function == 'save_realtyna_credentials') $this->save_realtyna_credentials();
    2019        elseif ($function == 'check_envato_purchase_code') $this->check_envato_purchase_code();
     
    8281    }
    8382
    84     private function update_package()
    85     {
    86         // Check Nonce
    87         if (!wpl_security::verify_nonce(wpl_request::getVar('_wpnonce', ''), 'wpl_dashboard')) $this->response(array('success' => 0, 'message' => wpl_esc::return_html_t('The security nonce is not valid!')));
    88 
    89         $sid = wpl_request::getVar('sid', '');
    90         $prefix = explode(':', $sid);
    91         if (count($prefix) > 1) {
    92             $prefix = $prefix[0];
    93         } else {
    94             $prefix = '';
    95         }
    96         $tmp_directory = wpl_global::init_tmp_folder(str_replace('.', '_', $prefix));
    97         $dest = $tmp_directory . 'package.zip';
    98 
    99         $zip_file = wpl_global::get_web_page('https://billing.realtyna.com/index.php?option=com_rls&view=downloadables&domain=' . wpl_global::domain(wpl_global::get_full_url()) . '&task=download&sid=' . $sid . '&randomkey=' . rand(1, 100));
    100 
    101         if (!$zip_file) {
    102             $this->response(array(
    103                 'success' => '0',
    104                 'error' => wpl_esc::return_html_t('Error: #U202, Could not download the update package!'),
    105                 'message' => ''
    106             ));
    107         }
    108         if (!wpl_file::write($dest, $zip_file)) {
    109             $this->response(array(
    110                 'success' => '0',
    111                 'error' => wpl_esc::return_html_t('Error: #U203, Could not create the update file!'),
    112                 'message' => ''
    113             ));
    114         }
    115         if (!wpl_global::zip_extract($dest, $tmp_directory)) {
    116             $this->response(array(
    117                 'success' => '0',
    118                 'error' => wpl_esc::return_html_t('Error: #U204, Could not extract the update file!'),
    119                 'message' => ''
    120             ));
    121         }
    122 
    123         $script_file = $tmp_directory . 'installer.php';
    124         if (!wpl_file::exists($script_file)) {
    125             $this->response(array(
    126                 'error' => wpl_esc::return_html_t("Installer file doesn't exist!"),
    127                 'message' => ''
    128             ));
    129         }
    130 
    131         if (!is_writable(WPL_ABSPATH . 'WPL.php')) {
    132             $this->response(array(
    133                 'error' => wpl_esc::return_html_t("PHP doesn't have write access to the files and directories!"),
    134                 'message' => ''
    135             ));
    136         }
    137 
    138         /** including installer and run the install method **/
    139         include $script_file;
    140         if (!class_exists('wpl_installer')) {
    141             $this->response(array(
    142                 'error' => wpl_esc::return_html_t("Installer class doesn't exist!"),
    143                 'message' => ''
    144             ));
    145         }
    146 
    147         /** run install script **/
    148         $wpl_installer = new wpl_installer();
    149         $wpl_installer->path = $tmp_directory;
    150 
    151         if (!$wpl_installer->run()) $this->response(array('error' => $wpl_installer->error, 'message' => ''));
    152 
    153         /** Trigger Event **/
    154         wpl_global::event_handler('package_updated', array('package_id' => (isset($wpl_installer->addon_id) ? $wpl_installer->addon_id : 0)));
    155 
    156         /** Check All Add-on update **/
    157         wpl_global::check_all_update();
    158 
    159         $message = $wpl_installer->message ? $wpl_installer->message : wpl_esc::return_html_t('Add-on Updated.');
    160         $this->response(array('error' => '', 'message' => $message));
    161     }
    162 
    16383    private function save_realtyna_credentials()
    16484    {
Note: See TracChangeset for help on using the changeset viewer.