Plugin Directory

Changeset 2125335


Ignore:
Timestamp:
07/18/2019 02:26:57 PM (7 years ago)
Author:
eightqueens
Message:

Release 1.0.4

Location:
realtypack-core/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • realtypack-core/trunk/controllers/admin/dashboard/dashboard.php

    r2118259 r2125335  
    118118        // Send request result
    119119        if ( isset( $remote['error'] ) ) {
    120             if ( !$remote['error'] ) {
     120            if ( isset( $remote['error'] ) && '1' != $remote['error'] ) {
    121121                update_option( 'realtypack_activation', 'activated' );
    122122            }
     123           
    123124            wp_send_json( array( 'error' => $remote['error'], 'message' => $remote['message'] ) );
    124125        }
  • realtypack-core/trunk/controllers/admin/dashboard/importer.php

    r2125190 r2125335  
    7575        // Get remote plugin data
    7676        $remote = self::remote_get( self::$api_base . 'demos/' . $purchase_code );
    77 
    78         if ( isset( $remote['body'] ) && ! empty( $remote['body'] ) ) {
    79             // set data
    80             $this->remoteData = $remote;
     77        // Set data
     78        $this->remoteData = $remote;
     79
     80        $remote = json_decode( $remote['body'], true );
     81
     82        if ( !isset( $remote['error'] ) ) {
    8183            add_filter( 'rtpc/add/demos', array( $this, 'rtpc_register_demo' ) );
    8284        }
  • realtypack-core/trunk/controllers/admin/dashboard/plugin.php

    r2125190 r2125335  
    7373        // Get remote plugin data
    7474        $remote = parent::remote_get( self::$api_base . 'plugins/' . $purchase_code );
    75         if ( isset( $remote['body'] ) && ! empty( $remote['body'] ) ) {
    76             // Set data
    77             $this->remoteData = $remote;
     75        // Set data
     76        $this->remoteData = $remote;
     77
     78        $remote = json_decode( $remote['body'], true );
     79
     80        if ( !isset( $remote['error'] ) ) {
    7881            add_filter( 'rtpc/add/plugins', array( $this, 'rtpc_register_plugins' ) );
    7982        }
     
    9699
    97100        $remote = $this->remoteData;
    98         $remote = json_decode( $remote['body'], true );
     101        $remote = json_decode( $remote['body'], true );;
    99102
    100103        if ( !$remote ) {
  • realtypack-core/trunk/lib/loader.php

    r2118259 r2125335  
    77 */
    88namespace RTPC;
     9use RTPC\controllers\RTPC_Controllers_Controller;
    910use RTPC\controllers\admin\RTPC_Controllers_Admin_Enqueue;
    1011use RTPC\controllers\admin\RTPC_Controllers_Admin_Rating;
     
    123124        add_filter( 'plugin_action_links_' . REALTYPACK_CORE_BASENAME , array( $this, 'realtypack_core_links' ), 10, 4 );
    124125
     126        if ( version_compare( WPL_VERSION, '4.4.0', '<' ) ) {
     127            add_action( 'admin_notices', array( $this, 'render_wpl_error_notice' ) );
     128        }
    125129
    126130        $this->load_plugins();
     
    237241    }
    238242
     243    function render_wpl_error_notice() {
     244
     245        echo RTPC_Controllers_Controller::render_template(
     246            'errors/upgrade-wpl.php',
     247            array(),
     248            'always'
     249        );
     250
     251    }
     252
    239253    public function detect_core_activation( $plugin ) {
    240254
  • realtypack-core/trunk/readme.txt

    r2125190 r2125335  
    55Requires at least: 4.6
    66Tested up to: 5.2
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.4
    88Requires PHP: 5.4.0
    99License: GPLv2 or later
     
    7171== Changelog ==
    7272
     73= 1.0.4 =
     74- Fixed License activation issue.
     75
     76= 1.0.3 =
     77- ADDED warning message for update wpl if is required.
     78
    7379= 1.0.2 =
    7480- ADDED activation with license.
  • realtypack-core/trunk/realtypack-core.php

    r2125190 r2125335  
    99 * Description: RealtyPack real estate theme core plugin, Elementor widgets, Demo Importer, Live Customizer options and many useful settings will be added to RealtyPack via this plugin.
    1010 * Plugin URI:  https://www.eightqueens.pro/realtypack/landing
    11  * Version:     1.0.2
     11 * Version:     1.0.4
    1212 * Author:      EightQueens
    1313 * Author URI:  https://www.eightqueens.pro
     
    1919    die;
    2020}
    21 
     21if ( ! function_exists('write_log')) {
     22   function write_log ( $log )  {
     23      if ( is_array( $log ) || is_object( $log ) ) {
     24         error_log( print_r( $log, true ) );
     25      } else {
     26         error_log( $log );
     27      }
     28   }
     29}
    2230/**
    2331*  Run main class
     
    7583
    7684        // Define version.
    77         define( 'RTPC_VERSION', '1.0.2' );
     85        define( 'RTPC_VERSION', '1.0.4' );
    7886        define( 'REALTYPACK_CORE_BASENAME', plugin_basename( __FILE__ ) );
    7987
  • realtypack-core/trunk/views/tpl/admin/dashboard.php

    r2122104 r2125335  
    1414    <span class="rtpc-admin-box-separator blue"></span>
    1515    <div>
    16         <?php esc_html_e( 'In order to use all theme features and options, please enter your purchase code.', 'realtif-core' ); ?>
     16        <?php esc_html_e( 'In order to use all theme features and options, please enter your license code.', 'realtif-core' ); ?>
    1717       
    1818    </div>
     
    2626        </div>
    2727        <?php $verify   = get_option( 'realtypack_activation', false ); ?>
    28         <span class="rtpc-admin-msg rtpc-admin-success-msg"><?php echo ( false !== $verify ) ? esc_html__( 'RealtyPack Activated Successfully', 'realty-pack' ) : ''; ?></span>
     28        <span class="rtpc-admin-msg rtpc-admin-success-msg"><?php echo ( ( false != $verify || '' != $verify ) ? esc_html__( 'RealtyPack Activated Successfully', 'realty-pack' ) : ''); ?></span>
    2929        <span class="rtpc-admin-msg rtpc-admin-error-msg"></span>
    3030    </div>
  • realtypack-core/trunk/views/tpl/admin/system-status.php

    r2122102 r2125335  
    179179                            <?php echo esc_html( $plugin_data['Version'] ) ; ?>
    180180                        </td>
    181                         <td><?php echo sprintf( _x( 'by %s', 'by author', 'auxin-elements' ), $plugin_data['Author'] ); ?></td>
     181                        <td><?php echo sprintf( _x( 'by %s', 'by author', 'realty-pack-core' ), $plugin_data['Author'] ); ?></td>
    182182                    </tr>
    183183                    <?php
  • realtypack-core/trunk/views/tpl/errors/requirements-error.php

    r2118259 r2125335  
     1<?php
     2/**
     3 * @link       https://eightqueens.pro
     4 * @since      1.0.0
     5 *
     6 * @package    RealtyPack Core
     7 */
     8?> 
    19<div class="error">
    210    <p>
Note: See TracChangeset for help on using the changeset viewer.