Plugin Directory

Changeset 3723800


Ignore:
Timestamp:
10/01/2026 08:10:51 PM (3 weeks ago)
Author:
jasonh1234
Message:

Update to version 1.1.0 from GitHub

Location:
preserve-mainwp
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • preserve-mainwp/assets/banner-1544x500.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • preserve-mainwp/assets/banner-772x250.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • preserve-mainwp/assets/icon-128x128.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • preserve-mainwp/assets/icon-256x256.jpg

    • Property svn:mime-type changed from application/octet-stream to image/jpeg
  • preserve-mainwp/tags/1.1.0/preserve-mainwp.php

    r2302247 r3723800  
    11<?php
    22/**
    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 */
    1015
    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 */
     16if ( ! defined( 'ABSPATH' ) ) {
     17        exit;
     18}
    2419
    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 */
     26add_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        ];
    3534
     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 === Plugin Name ===
     1=== Preserve MainWP Connection ===
    22Contributors: 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
     3Tags: deliciousbrains, mainwp, migratedbpro, database, wp-migrate
     4Requires at least: 5.6
     5Tested up to: 6.7
     6Requires PHP: 7.4
     7Stable tag: 1.1.0
    78License: GPLv2 or later
    8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
    9  
    10 Preserve MainWP's connection details from being overwritten by Delicious Brains' WP Migrate DB Pro and severing the connection when pushing or pulling.
    11  
     9License URI: https://www.gnu.org/licenses/gpl-2.0.html
     10
     11Preserve MainWP's connection details from being overwritten by WP Migrate (formerly WP Migrate DB Pro) when pushing or pulling.
     12
    1213== Description ==
    1314
    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.
     15Preserve [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.
    1516
    16 If you use MainWP to manage your Wordpress 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 thus saving you from having to reconnect the site after every push or pull.
     17If 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.
    1718
    1819== Installation ==
    19  
    20 1. Upload `preserve-mainwp.php` to the `/wp-content/plugins/` directory
     20
     211. Upload `preserve-mainwp.php` to the `/wp-content/plugins/preserve-mainwp/` directory
    21222. Activate the plugin through the 'Plugins' menu in WordPress
    2223
     24== Frequently Asked Questions ==
     25
     26= Does this plugin require any configuration? =
     27
     28No. It works out-of-the-box ("set and forget") as soon as it is activated.
     29
     30= Which migration tools are supported? =
     31
     32It preserves settings for WP Migrate (formerly WP Migrate DB Pro / Delicious Brains).
     33
    2334== 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
    2542= 1.0 =
    2643* Initial release
    27 
    28 
  • preserve-mainwp/trunk/preserve-mainwp.php

    r2302247 r3723800  
    11<?php
    22/**
    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 */
    1015
    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 */
     16if ( ! defined( 'ABSPATH' ) ) {
     17        exit;
     18}
    2419
    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 */
     26add_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        ];
    3534
     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 === Plugin Name ===
     1=== Preserve MainWP Connection ===
    22Contributors: 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
     3Tags: deliciousbrains, mainwp, migratedbpro, database, wp-migrate
     4Requires at least: 5.6
     5Tested up to: 6.7
     6Requires PHP: 7.4
     7Stable tag: 1.1.0
    78License: GPLv2 or later
    8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
    9  
    10 Preserve MainWP's connection details from being overwritten by Delicious Brains' WP Migrate DB Pro and severing the connection when pushing or pulling.
    11  
     9License URI: https://www.gnu.org/licenses/gpl-2.0.html
     10
     11Preserve MainWP's connection details from being overwritten by WP Migrate (formerly WP Migrate DB Pro) when pushing or pulling.
     12
    1213== Description ==
    1314
    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.
     15Preserve [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.
    1516
    16 If you use MainWP to manage your Wordpress 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 thus saving you from having to reconnect the site after every push or pull.
     17If 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.
    1718
    1819== Installation ==
    19  
    20 1. Upload `preserve-mainwp.php` to the `/wp-content/plugins/` directory
     20
     211. Upload `preserve-mainwp.php` to the `/wp-content/plugins/preserve-mainwp/` directory
    21222. Activate the plugin through the 'Plugins' menu in WordPress
    2223
     24== Frequently Asked Questions ==
     25
     26= Does this plugin require any configuration? =
     27
     28No. It works out-of-the-box ("set and forget") as soon as it is activated.
     29
     30= Which migration tools are supported? =
     31
     32It preserves settings for WP Migrate (formerly WP Migrate DB Pro / Delicious Brains).
     33
    2334== 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
    2542= 1.0 =
    2643* Initial release
    27 
    28 
Note: See TracChangeset for help on using the changeset viewer.