Changeset 3723800
- Timestamp:
- 10/01/2026 08:10:51 PM (3 weeks ago)
- Location:
- preserve-mainwp
- Files:
-
- 8 edited
- 1 copied
-
assets/banner-1544x500.jpg (modified) (1 prop) ( previous)
-
assets/banner-772x250.jpg (modified) (1 prop) ( previous)
-
assets/icon-128x128.jpg (modified) (1 prop) ( previous)
-
assets/icon-256x256.jpg (modified) (1 prop) ( previous)
-
tags/1.1.0 (copied) (copied from preserve-mainwp/trunk )
-
tags/1.1.0/preserve-mainwp.php (modified) (1 diff)
-
tags/1.1.0/readme.txt (modified) (1 diff)
-
trunk/preserve-mainwp.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
preserve-mainwp/assets/banner-1544x500.jpg
-
Property svn:mime-type
changed from
application/octet-streamtoimage/jpeg
-
Property svn:mime-type
changed from
-
preserve-mainwp/assets/banner-772x250.jpg
-
Property svn:mime-type
changed from
application/octet-streamtoimage/jpeg
-
Property svn:mime-type
changed from
-
preserve-mainwp/assets/icon-128x128.jpg
-
Property svn:mime-type
changed from
application/octet-streamtoimage/jpeg
-
Property svn:mime-type
changed from
-
preserve-mainwp/assets/icon-256x256.jpg
-
Property svn:mime-type
changed from
application/octet-streamtoimage/jpeg
-
Property svn:mime-type
changed from
-
preserve-mainwp/tags/1.1.0/preserve-mainwp.php
r2302247 r3723800 1 1 <?php 2 2 /** 3 Plugin Name: Preserve MainWP Connection 4 Plugin URI: https://en-ca.wordpress.org/plugins/preserve-mainwp/ 5 Description: Preserve MainWP's connection details from being overwritten by Delicious Brains' WP Migrate DB Pro and severing the connection when pushing or pulling. 6 Version: 1.0 7 Author: Jay Holtslander 8 Author URI: https://jay.holtslander.ca 9 License: GPL v2 or later 3 * Plugin Name: Preserve MainWP Connection 4 * Plugin URI: https://wordpress.org/plugins/preserve-mainwp/ 5 * Description: Preserve MainWP's connection details from being overwritten by WP Migrate (formerly WP Migrate DB Pro) when pushing or pulling. 6 * Version: 1.1.0 7 * Author: Jay Holtslander 8 * Author URI: https://jay.holtslander.ca 9 * License: GPL v2 or later 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 * Text Domain: preserve-mainwp 12 * Requires at least: 5.6 13 * Requires PHP: 7.4 14 */ 10 15 11 {Plugin Name} is free software: you can redistribute it and/or modify 12 it under the terms of the GNU General Public License as published by 13 the Free Software Foundation, either version 2 of the License, or 14 any later version. 15 16 {Plugin Name} is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License for more details. 20 21 You should have received a copy of the GNU General Public License 22 along with {Plugin Name}. If not, see {URI to Plugin License}. 23 */ 16 if ( ! defined( 'ABSPATH' ) ) { 17 exit; 18 } 24 19 25 add_filter( 'wpmdb_preserved_options', function( $options ) { 26 $opts = [ 27 'mainwp_child_uniqueId', 28 'mainwp_child_pubkey', 29 'mainwp_child_server', 30 'mainwp_child_nonce' 31 ]; 32 33 return array_merge($options, $opts); 34 }); 20 /** 21 * Filter WP Migrate preserved options to include MainWP Child site connection settings. 22 * 23 * @param array $options Array of preserved option names. 24 * @return array Array of preserved option names including MainWP connection options. 25 */ 26 add_filter( 'wpmdb_preserved_options', function ( $options ) { 27 $mainwp_options = [ 28 'mainwp_child_uniqueId', 29 'mainwp_child_pubkey', 30 'mainwp_child_server', 31 'mainwp_child_nonce', 32 'mainwp_child_subkey', 33 ]; 35 34 35 if ( ! is_array( $options ) ) { 36 $options = []; 37 } 38 39 return array_merge( $options, $mainwp_options ); 40 } ); -
preserve-mainwp/tags/1.1.0/readme.txt
r2302247 r3723800 1 === P lugin Name===1 === Preserve MainWP Connection === 2 2 Contributors: jasonh1234 3 Tags: deliciousbrains, mainwp, migratedbpro, database 4 Requires at least: 5.0 5 Tested up to: 5.3.2 6 Requires PHP: 5.6 3 Tags: deliciousbrains, mainwp, migratedbpro, database, wp-migrate 4 Requires at least: 5.6 5 Tested up to: 6.7 6 Requires PHP: 7.4 7 Stable tag: 1.1.0 7 8 License: GPLv2 or later 8 License URI: http ://www.gnu.org/licenses/gpl-2.0.html9 10 Preserve MainWP's connection details from being overwritten by Delicious Brains' WP Migrate DB Pro and severing the connectionwhen pushing or pulling.11 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 11 Preserve MainWP's connection details from being overwritten by WP Migrate (formerly WP Migrate DB Pro) when pushing or pulling. 12 12 13 == Description == 13 14 14 Preserve [MainWP](https://mainwp.com/)'s connection details from being overwritten by [ Delicious Brains' WP Migrate DB Pro](https://deliciousbrains.com/wp-migrate-db-pro/) and severing the connection when pushing or pulling.15 Preserve [MainWP](https://mainwp.com/)'s connection details from being overwritten by [WP Migrate](https://deliciousbrains.com/wp-migrate-db-pro/) and severing the connection when pushing or pulling. 15 16 16 If you use MainWP to manage your Word press sites and Migrate DB Pro to clone sites between environments, you'll find that your site's connections to MainWP are constantly being disconnected by the Push Pull operations of Migrate DB Pro. This simple plugin prevents the database fields used for MainWP's connection details from being overwritten by Migrate DB Pro thussaving you from having to reconnect the site after every push or pull.17 If you use MainWP to manage your WordPress sites and WP Migrate to clone sites between environments, you'll find that your site's connections to MainWP are constantly being disconnected by the push/pull operations of WP Migrate. This simple plugin prevents the database fields used for MainWP's connection details from being overwritten by WP Migrate, saving you from having to reconnect the site after every push or pull. 17 18 18 19 == Installation == 19 20 1. Upload `preserve-mainwp.php` to the `/wp-content/plugins/ ` directory20 21 1. Upload `preserve-mainwp.php` to the `/wp-content/plugins/preserve-mainwp/` directory 21 22 2. Activate the plugin through the 'Plugins' menu in WordPress 22 23 24 == Frequently Asked Questions == 25 26 = Does this plugin require any configuration? = 27 28 No. It works out-of-the-box ("set and forget") as soon as it is activated. 29 30 = Which migration tools are supported? = 31 32 It preserves settings for WP Migrate (formerly WP Migrate DB Pro / Delicious Brains). 33 23 34 == Changelog == 24 35 36 = 1.1.0 = 37 * Modernized code structure and PHP 7.4+ compatibility. 38 * Added support for `mainwp_child_subkey` option. 39 * Updated WordPress and PHP version requirements. 40 * Added GitHub Actions workflow for WordPress.org SVN automated deployment. 41 25 42 = 1.0 = 26 43 * Initial release 27 28 -
preserve-mainwp/trunk/preserve-mainwp.php
r2302247 r3723800 1 1 <?php 2 2 /** 3 Plugin Name: Preserve MainWP Connection 4 Plugin URI: https://en-ca.wordpress.org/plugins/preserve-mainwp/ 5 Description: Preserve MainWP's connection details from being overwritten by Delicious Brains' WP Migrate DB Pro and severing the connection when pushing or pulling. 6 Version: 1.0 7 Author: Jay Holtslander 8 Author URI: https://jay.holtslander.ca 9 License: GPL v2 or later 3 * Plugin Name: Preserve MainWP Connection 4 * Plugin URI: https://wordpress.org/plugins/preserve-mainwp/ 5 * Description: Preserve MainWP's connection details from being overwritten by WP Migrate (formerly WP Migrate DB Pro) when pushing or pulling. 6 * Version: 1.1.0 7 * Author: Jay Holtslander 8 * Author URI: https://jay.holtslander.ca 9 * License: GPL v2 or later 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 * Text Domain: preserve-mainwp 12 * Requires at least: 5.6 13 * Requires PHP: 7.4 14 */ 10 15 11 {Plugin Name} is free software: you can redistribute it and/or modify 12 it under the terms of the GNU General Public License as published by 13 the Free Software Foundation, either version 2 of the License, or 14 any later version. 15 16 {Plugin Name} is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License for more details. 20 21 You should have received a copy of the GNU General Public License 22 along with {Plugin Name}. If not, see {URI to Plugin License}. 23 */ 16 if ( ! defined( 'ABSPATH' ) ) { 17 exit; 18 } 24 19 25 add_filter( 'wpmdb_preserved_options', function( $options ) { 26 $opts = [ 27 'mainwp_child_uniqueId', 28 'mainwp_child_pubkey', 29 'mainwp_child_server', 30 'mainwp_child_nonce' 31 ]; 32 33 return array_merge($options, $opts); 34 }); 20 /** 21 * Filter WP Migrate preserved options to include MainWP Child site connection settings. 22 * 23 * @param array $options Array of preserved option names. 24 * @return array Array of preserved option names including MainWP connection options. 25 */ 26 add_filter( 'wpmdb_preserved_options', function ( $options ) { 27 $mainwp_options = [ 28 'mainwp_child_uniqueId', 29 'mainwp_child_pubkey', 30 'mainwp_child_server', 31 'mainwp_child_nonce', 32 'mainwp_child_subkey', 33 ]; 35 34 35 if ( ! is_array( $options ) ) { 36 $options = []; 37 } 38 39 return array_merge( $options, $mainwp_options ); 40 } ); -
preserve-mainwp/trunk/readme.txt
r2302247 r3723800 1 === P lugin Name===1 === Preserve MainWP Connection === 2 2 Contributors: jasonh1234 3 Tags: deliciousbrains, mainwp, migratedbpro, database 4 Requires at least: 5.0 5 Tested up to: 5.3.2 6 Requires PHP: 5.6 3 Tags: deliciousbrains, mainwp, migratedbpro, database, wp-migrate 4 Requires at least: 5.6 5 Tested up to: 6.7 6 Requires PHP: 7.4 7 Stable tag: 1.1.0 7 8 License: GPLv2 or later 8 License URI: http ://www.gnu.org/licenses/gpl-2.0.html9 10 Preserve MainWP's connection details from being overwritten by Delicious Brains' WP Migrate DB Pro and severing the connectionwhen pushing or pulling.11 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 11 Preserve MainWP's connection details from being overwritten by WP Migrate (formerly WP Migrate DB Pro) when pushing or pulling. 12 12 13 == Description == 13 14 14 Preserve [MainWP](https://mainwp.com/)'s connection details from being overwritten by [ Delicious Brains' WP Migrate DB Pro](https://deliciousbrains.com/wp-migrate-db-pro/) and severing the connection when pushing or pulling.15 Preserve [MainWP](https://mainwp.com/)'s connection details from being overwritten by [WP Migrate](https://deliciousbrains.com/wp-migrate-db-pro/) and severing the connection when pushing or pulling. 15 16 16 If you use MainWP to manage your Word press sites and Migrate DB Pro to clone sites between environments, you'll find that your site's connections to MainWP are constantly being disconnected by the Push Pull operations of Migrate DB Pro. This simple plugin prevents the database fields used for MainWP's connection details from being overwritten by Migrate DB Pro thussaving you from having to reconnect the site after every push or pull.17 If you use MainWP to manage your WordPress sites and WP Migrate to clone sites between environments, you'll find that your site's connections to MainWP are constantly being disconnected by the push/pull operations of WP Migrate. This simple plugin prevents the database fields used for MainWP's connection details from being overwritten by WP Migrate, saving you from having to reconnect the site after every push or pull. 17 18 18 19 == Installation == 19 20 1. Upload `preserve-mainwp.php` to the `/wp-content/plugins/ ` directory20 21 1. Upload `preserve-mainwp.php` to the `/wp-content/plugins/preserve-mainwp/` directory 21 22 2. Activate the plugin through the 'Plugins' menu in WordPress 22 23 24 == Frequently Asked Questions == 25 26 = Does this plugin require any configuration? = 27 28 No. It works out-of-the-box ("set and forget") as soon as it is activated. 29 30 = Which migration tools are supported? = 31 32 It preserves settings for WP Migrate (formerly WP Migrate DB Pro / Delicious Brains). 33 23 34 == Changelog == 24 35 36 = 1.1.0 = 37 * Modernized code structure and PHP 7.4+ compatibility. 38 * Added support for `mainwp_child_subkey` option. 39 * Updated WordPress and PHP version requirements. 40 * Added GitHub Actions workflow for WordPress.org SVN automated deployment. 41 25 42 = 1.0 = 26 43 * Initial release 27 28
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)