Plugin Directory

Changeset 2908638


Ignore:
Timestamp:
05/05/2023 04:38:06 PM (3 years ago)
Author:
andreadegiovine
Message:

3.1.3

Location:
custom-post-types
Files:
24 added
2 edited

Legend:

Unmodified
Added
Removed
  • custom-post-types/trunk/custom-post-types.php

    r2900231 r2908638  
    88Text Domain: custom-post-types
    99Domain Path: /languages/
    10 Version: 3.1.2
     10Version: 3.1.3
    1111*/
    1212
     
    5252
    5353            add_action('init', [$this, 'update_from_old_version']);
     54       
     55            $this->applyUpdates();
    5456        }
    5557
     
    619621                false,
    620622                -1
     623            );
     624
     625           
     626            (new CPT\Notice)->add(
     627                'beta_4_notice',
     628                "<strong><u>Version 4.x.x BETA is ready.</u></strong><br><br>
     629                You can download and install the new version (in staging or local environment or new websites).<br>
     630                Here are 100 reasons to ask for your help ☺︎<br>
     631                The <strong>first 50 users who send bug reports or suggestions</strong> will receive the <strong><u>PRO version free for lifetime</u></strong>.<br>
     632                The <strong>following 50 users who send bug reports or suggestions</strong> will receive a <strong><u>lifetime discount code (70% value) for the PRO version</u></strong>.<br>
     633                All users who send bug reports or valid suggestions will be able to try the PRO version free for 1 month.<br><br>
     634                Thank you all for the support ❤",
     635                'success',
     636                false,
     637                -1,
     638                [
     639                    [
     640                        'link' => 'https://99zw.short.gy/cpt-4-beta',
     641                        'label' => __('Download BETA version', 'custom-post-types'),
     642                        'target' => '_blank',
     643                        'cta' => true
     644                    ],
     645                    [
     646                        'link' => 'https://totalpress.org/support?utm_source=wp-dashboard&utm_medium=installed-plugin&utm_campaign=custom-post-types-beta',
     647                        'label' => __('Send bug reports or suggestions', 'custom-post-types'),
     648                        'target' => '_blank'
     649                    ]
     650                ]
    621651            );
    622652
     
    890920            }
    891921        }
     922
     923        private function applyUpdates()
     924        {
     925            $installedVersion = get_option('custom_post_types_version', null);
     926            $currentVersion = '3.1.3';
     927   
     928            if (version_compare($installedVersion, $currentVersion, '=')) {
     929                return;
     930            }
     931   
     932            update_option('custom_post_types_version', $currentVersion);
     933            update_option('custom_post_types_installation_time', time());
     934        }
    892935    }
    893936    new totalpress_custom_post_types();
  • custom-post-types/trunk/readme.txt

    r2900231 r2908638  
    55Requires at least: 4.0
    66Tested up to: 6.1
    7 Stable tag: 3.1.2
     7Stable tag: 3.1.3
    88Requires PHP: 5.6
    99License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.