Plugin Directory

Changeset 3401330


Ignore:
Timestamp:
11/23/2025 02:46:02 PM (4 months ago)
Author:
shutterpressgallery
Message:

Update to version 1.0.2 from GitHub

Location:
shutterpress-migrate
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shutterpress-migrate/tags/1.0.2/README.txt

    r3385932 r3401330  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272== Changelog ==
    7373
     74= 1.0.2 =
     75
     76* Fix - add checks for Debug class existence and property initialization
     77* Fix - admin menu position
     78
    7479= 1.0.1 =
    7580
  • shutterpress-migrate/tags/1.0.2/shutterpress-migrate.php

    r3385932 r3401330  
    1111 * Plugin URI:        https://shutterpress.io
    1212 * Description:       Imports galleries from NextGen, Envira, FooGallery and Modula
    13  * Version:           1.0.1
     13 * Version:           1.0.2
    1414 * Requires Plugins:  shutterpress-gallery
    1515 * Author:            ShutterPress
     
    2525}
    2626
    27 define('SP_MIGRATE_VERSION', '1.0.1');
     27define('SP_MIGRATE_VERSION', '1.0.2');
    2828define('SP_MIGRATE_DIR', plugin_dir_path(__FILE__));
    2929define('SP_MIGRATE_URL', plugin_dir_url(__FILE__));
  • shutterpress-migrate/tags/1.0.2/src/Admin/Shutterpress_Migrate_Admin_Page.php

    r3385090 r3401330  
    5959     * @var      Shutterpress_Gallery_Debug    $debug    The debug instance.
    6060     */
    61     private Shutterpress_Gallery_Debug $debug;
     61    private $debug;
    6262
    6363    /**
     
    7070    public function __construct()
    7171    {
    72         $this->debug = new Shutterpress_Gallery_Debug();
     72        if (class_exists(Shutterpress_Gallery_Debug::class)) {
     73            $this->debug = new Shutterpress_Gallery_Debug();
     74        }
    7375    }
    7476
     
    181183        $output .= '</tr></thead><tbody>';
    182184
    183         $this->debug->log('Import Rows', array( 'rows' => $rows ), '');
     185        if ($this->debug) {
     186            $this->debug->log('Import Rows', array( 'rows' => $rows ), '');
     187        }
    184188        foreach ($rows as $row) {
    185189            $rid = (int) $row['id'];
  • shutterpress-migrate/tags/1.0.2/src/Shutterpress_Migrate.php

    r3385090 r3401330  
    126126        $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles');
    127127        $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts');
    128         $this->loader->add_action('admin_menu', $plugin_admin_page, 'register_settings_page', 99);
     128        $this->loader->add_action('admin_menu', $plugin_admin_page, 'register_settings_page');
    129129        $this->loader->add_action('rest_api_init', $plugin_rest, 'register_import_route');
    130130    }
  • shutterpress-migrate/trunk/README.txt

    r3385932 r3401330  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7272== Changelog ==
    7373
     74= 1.0.2 =
     75
     76* Fix - add checks for Debug class existence and property initialization
     77* Fix - admin menu position
     78
    7479= 1.0.1 =
    7580
  • shutterpress-migrate/trunk/shutterpress-migrate.php

    r3385932 r3401330  
    1111 * Plugin URI:        https://shutterpress.io
    1212 * Description:       Imports galleries from NextGen, Envira, FooGallery and Modula
    13  * Version:           1.0.1
     13 * Version:           1.0.2
    1414 * Requires Plugins:  shutterpress-gallery
    1515 * Author:            ShutterPress
     
    2525}
    2626
    27 define('SP_MIGRATE_VERSION', '1.0.1');
     27define('SP_MIGRATE_VERSION', '1.0.2');
    2828define('SP_MIGRATE_DIR', plugin_dir_path(__FILE__));
    2929define('SP_MIGRATE_URL', plugin_dir_url(__FILE__));
  • shutterpress-migrate/trunk/src/Admin/Shutterpress_Migrate_Admin_Page.php

    r3385090 r3401330  
    5959     * @var      Shutterpress_Gallery_Debug    $debug    The debug instance.
    6060     */
    61     private Shutterpress_Gallery_Debug $debug;
     61    private $debug;
    6262
    6363    /**
     
    7070    public function __construct()
    7171    {
    72         $this->debug = new Shutterpress_Gallery_Debug();
     72        if (class_exists(Shutterpress_Gallery_Debug::class)) {
     73            $this->debug = new Shutterpress_Gallery_Debug();
     74        }
    7375    }
    7476
     
    181183        $output .= '</tr></thead><tbody>';
    182184
    183         $this->debug->log('Import Rows', array( 'rows' => $rows ), '');
     185        if ($this->debug) {
     186            $this->debug->log('Import Rows', array( 'rows' => $rows ), '');
     187        }
    184188        foreach ($rows as $row) {
    185189            $rid = (int) $row['id'];
  • shutterpress-migrate/trunk/src/Shutterpress_Migrate.php

    r3385090 r3401330  
    126126        $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles');
    127127        $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts');
    128         $this->loader->add_action('admin_menu', $plugin_admin_page, 'register_settings_page', 99);
     128        $this->loader->add_action('admin_menu', $plugin_admin_page, 'register_settings_page');
    129129        $this->loader->add_action('rest_api_init', $plugin_rest, 'register_import_route');
    130130    }
Note: See TracChangeset for help on using the changeset viewer.