Changeset 3401330
- Timestamp:
- 11/23/2025 02:46:02 PM (4 months ago)
- Location:
- shutterpress-migrate
- Files:
-
- 8 edited
- 1 copied
-
tags/1.0.2 (copied) (copied from shutterpress-migrate/trunk)
-
tags/1.0.2/README.txt (modified) (2 diffs)
-
tags/1.0.2/shutterpress-migrate.php (modified) (2 diffs)
-
tags/1.0.2/src/Admin/Shutterpress_Migrate_Admin_Page.php (modified) (3 diffs)
-
tags/1.0.2/src/Shutterpress_Migrate.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/shutterpress-migrate.php (modified) (2 diffs)
-
trunk/src/Admin/Shutterpress_Migrate_Admin_Page.php (modified) (3 diffs)
-
trunk/src/Shutterpress_Migrate.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shutterpress-migrate/tags/1.0.2/README.txt
r3385932 r3401330 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 72 72 == Changelog == 73 73 74 = 1.0.2 = 75 76 * Fix - add checks for Debug class existence and property initialization 77 * Fix - admin menu position 78 74 79 = 1.0.1 = 75 80 -
shutterpress-migrate/tags/1.0.2/shutterpress-migrate.php
r3385932 r3401330 11 11 * Plugin URI: https://shutterpress.io 12 12 * Description: Imports galleries from NextGen, Envira, FooGallery and Modula 13 * Version: 1.0. 113 * Version: 1.0.2 14 14 * Requires Plugins: shutterpress-gallery 15 15 * Author: ShutterPress … … 25 25 } 26 26 27 define('SP_MIGRATE_VERSION', '1.0. 1');27 define('SP_MIGRATE_VERSION', '1.0.2'); 28 28 define('SP_MIGRATE_DIR', plugin_dir_path(__FILE__)); 29 29 define('SP_MIGRATE_URL', plugin_dir_url(__FILE__)); -
shutterpress-migrate/tags/1.0.2/src/Admin/Shutterpress_Migrate_Admin_Page.php
r3385090 r3401330 59 59 * @var Shutterpress_Gallery_Debug $debug The debug instance. 60 60 */ 61 private Shutterpress_Gallery_Debug$debug;61 private $debug; 62 62 63 63 /** … … 70 70 public function __construct() 71 71 { 72 $this->debug = new Shutterpress_Gallery_Debug(); 72 if (class_exists(Shutterpress_Gallery_Debug::class)) { 73 $this->debug = new Shutterpress_Gallery_Debug(); 74 } 73 75 } 74 76 … … 181 183 $output .= '</tr></thead><tbody>'; 182 184 183 $this->debug->log('Import Rows', array( 'rows' => $rows ), ''); 185 if ($this->debug) { 186 $this->debug->log('Import Rows', array( 'rows' => $rows ), ''); 187 } 184 188 foreach ($rows as $row) { 185 189 $rid = (int) $row['id']; -
shutterpress-migrate/tags/1.0.2/src/Shutterpress_Migrate.php
r3385090 r3401330 126 126 $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles'); 127 127 $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'); 129 129 $this->loader->add_action('rest_api_init', $plugin_rest, 'register_import_route'); 130 130 } -
shutterpress-migrate/trunk/README.txt
r3385932 r3401330 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 1.0. 18 Stable tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 72 72 == Changelog == 73 73 74 = 1.0.2 = 75 76 * Fix - add checks for Debug class existence and property initialization 77 * Fix - admin menu position 78 74 79 = 1.0.1 = 75 80 -
shutterpress-migrate/trunk/shutterpress-migrate.php
r3385932 r3401330 11 11 * Plugin URI: https://shutterpress.io 12 12 * Description: Imports galleries from NextGen, Envira, FooGallery and Modula 13 * Version: 1.0. 113 * Version: 1.0.2 14 14 * Requires Plugins: shutterpress-gallery 15 15 * Author: ShutterPress … … 25 25 } 26 26 27 define('SP_MIGRATE_VERSION', '1.0. 1');27 define('SP_MIGRATE_VERSION', '1.0.2'); 28 28 define('SP_MIGRATE_DIR', plugin_dir_path(__FILE__)); 29 29 define('SP_MIGRATE_URL', plugin_dir_url(__FILE__)); -
shutterpress-migrate/trunk/src/Admin/Shutterpress_Migrate_Admin_Page.php
r3385090 r3401330 59 59 * @var Shutterpress_Gallery_Debug $debug The debug instance. 60 60 */ 61 private Shutterpress_Gallery_Debug$debug;61 private $debug; 62 62 63 63 /** … … 70 70 public function __construct() 71 71 { 72 $this->debug = new Shutterpress_Gallery_Debug(); 72 if (class_exists(Shutterpress_Gallery_Debug::class)) { 73 $this->debug = new Shutterpress_Gallery_Debug(); 74 } 73 75 } 74 76 … … 181 183 $output .= '</tr></thead><tbody>'; 182 184 183 $this->debug->log('Import Rows', array( 'rows' => $rows ), ''); 185 if ($this->debug) { 186 $this->debug->log('Import Rows', array( 'rows' => $rows ), ''); 187 } 184 188 foreach ($rows as $row) { 185 189 $rid = (int) $row['id']; -
shutterpress-migrate/trunk/src/Shutterpress_Migrate.php
r3385090 r3401330 126 126 $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles'); 127 127 $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'); 129 129 $this->loader->add_action('rest_api_init', $plugin_rest, 'register_import_route'); 130 130 }
Note: See TracChangeset
for help on using the changeset viewer.