Plugin Directory

Changeset 2501538


Ignore:
Timestamp:
03/23/2021 08:23:36 AM (5 years ago)
Author:
platformlycom
Message:

fixed notice: update field ply_page_html, fixed status for platform page.

Location:
platformly/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • platformly/trunk/platformly.php

    r2379391 r2501538  
    44Plugin Name: Platform.ly Official
    55Description: Platform.ly plugin is the easiest way to setup your optins and pages that your created with Platform.ly. After building your optin or page with our interactive WYSIWYG builders, you can set them up to show on your site with just a couple of clicks.
    6 Version: 1.8
     6Version: 1.9
    77Author: Platform.ly
    88Author URI: https://www.platform.ly/
     
    1515define("PLATFORMLY_PING_SLUG", "platformly_ping_for_update_page");
    1616define("PLATFORMLY_URL", "https://pageserver.platform.ly");
     17
     18define('PLATFORMLY_PLUGIN_VERSION', '1.9');
     19
     20//update
     21$plyVersion = get_option('ply_plugin_version');
     22
     23updatePlugin($plyVersion);
    1724
    1825include plugin_dir_path(__FILE__) . '/inc/ply.functions.php';
     
    140147        ply_page_pid int NULL,
    141148        ply_page_options text NULL,
    142         ply_page_html text NULL,
     149        ply_page_html longtext NULL,
    143150        ply_page_stats text NULL,
    144151                ply_page_type VARCHAR(255) NULL,
     
    160167    ) {$charset_collate};";
    161168    dbDelta($sql);
     169
     170    update_option('ply_plugin_version', PLATFORMLY_PLUGIN_VERSION);
    162171
    163172    if(platform_ly_check_ply_wc_plugin_is_activated() && get_option('ply_plugin_cid')){
     
    346355        }
    347356        if(isset($page) && !empty($page)){
     357            status_header(200);
    348358            echo $page['ply_page_html'];
    349359            die();
     
    469479    }
    470480}
     481
     482function updatePlugin($version){
     483    global $wpdb;
     484    if(empty($version)){
     485        $sql = 'ALTER TABLE `wp_ply_pages` CHANGE `ply_page_html` `ply_page_html` LONGTEXT';
     486        $wpdb->query($sql);
     487        update_option('ply_plugin_version', PLATFORMLY_PLUGIN_VERSION);
     488    }
     489}
  • platformly/trunk/readme.txt

    r2379391 r2501538  
    33Tags: CRM, ecommerce, custom pages, landing pages, optin forms, events, tracking links, platform.ly, platform, platformly
    44Requires at least: 4.6
    5 Tested up to: 5.5.1
     5Tested up to: 5.7
    66Requires PHP: 5.5.9
    77Stable tag: trunk
     
    7878== Upgrade Notice ==
    7979
     80= 1.9 =
     81- Minor fixes
     82
    8083= 1.8 =
    8184- Minor fixes
Note: See TracChangeset for help on using the changeset viewer.