🔒 EXCLUSIVE: Changeset/ - Uncensored 2025

Changeset 3150106


Ignore:
Timestamp:
09/11/2024 01:15:24 PM (16 months ago)
Author:
wpseahorse
Message:

Release 5.2.0

Location:
wp-migrate-2-aws/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-migrate-2-aws/trunk/admin/includes/adminPages/adminPagesConsole.php

    r2865524 r3150106  
    527527        $html .= '<p>Do you want to change your instance region?</p>';
    528528
    529         if (!empty($formElements[0]['field_data'])) {
     529        /** @var MigrationFormTemplateFieldDto $firstFormElement **/
     530        $firstFormElement = $formElements[0];
     531
     532        $formElementFieldData = $firstFormElement->getFieldData();
     533
     534        if ($formElementFieldData !== null && $formElementFieldData !== []) {
    530535            $currentRegion = 'unknown';
    531536            if (false !== get_option('wpm2aws-aws-lightsail-region')) {
     
    539544            $html .= '<select id="wpm2aws-console-change-instance-region-new-region-ref" name="wpm2aws-console-change-instance-region-new-region-ref">';
    540545            $html .= '<option value="">Select New Region</option>';
    541             foreach ($formElements[0]['field_data'] as $dataKey => $dataVal) {
     546            foreach ($formElementFieldData as $dataKey => $dataVal) {
    542547                $disabled = '';
    543548                if ($dataKey === $currentRegion) {
     
    600605        $html .= '<p>Do you want to change your instance region?</p>';
    601606
    602         if (!empty($formElements[0]['field_data'])) {
     607        /** @var MigrationFormTemplateFieldDto $firstFormElement **/
     608        $firstFormElement = $formElements[0];
     609
     610        $formElementFieldData = $firstFormElement->getFieldData();
     611
     612        if ($formElementFieldData !== null && $formElementFieldData !== []) {
    603613            $currentRegion = 'unknown';
    604614            if (false !== get_option('wpm2aws-aws-lightsail-region')) {
     
    14621472                }
    14631473            }
     1474
    14641475            array_push(
    14651476                $cloudTrails,
     
    14711482            );
    14721483
    1473             usort($cloudTrails, 'self::sortByTime');
     1484            usort($cloudTrails, [WPM2AWS_AdminPagesConsole::class, 'sortByTime']);
    14741485        }
    14751486
  • wp-migrate-2-aws/trunk/inc/migration-form.php

    r3132043 r3150106  
    66    private $properties = array();
    77    private static $current = null;
     8
     9    /**
     10     * @var string|null
     11     */
     12    private $title;
    813
    914    public function __construct()
  • wp-migrate-2-aws/trunk/readme.txt

    r3132043 r3150106  
    9292
    9393== Changelog ==
     94
     95= 5.2.0 =
     96* feature - #25 updated management console endpoint
     97* fix - #31 fixes to management console portal page
    9498
    9599= 5.1.15 =
  • wp-migrate-2-aws/trunk/wp-migrate-2-aws.php

    r3132043 r3150106  
    1313Stable tag: 4.8
    1414Domain Path: /languages/
    15 Version: 5.1.15
     15Version: 5.2.0
    1616License: GPLv2 or later
    1717License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     
    2525}
    2626
    27 define('WPM2AWS_VERSION', '5.1.15');
     27define('WPM2AWS_VERSION', '5.2.0');
    2828
    2929define('WPM2AWS_REQUIRED_MINIMUM_WP_VERSION', '4.8');
     
    6262    define('WPM2AWS_CONSOLE_API_URL', WPM2AWS_CONSOLE_API_URL_EXTERNAL);
    6363} else {
    64     define('WPM2AWS_CONSOLE_API_URL', 'https://wponaws.manage-aws.seahorse-data.com');
     64    define('WPM2AWS_CONSOLE_API_URL', 'https://wponaws.migration.seahorse-data.com');
    6565}
    6666
Note: See TracChangeset for help on using the changeset viewer.