Plugin Directory

Changeset 3216196


Ignore:
Timestamp:
01/03/2025 02:05:17 AM (15 months ago)
Author:
Mat Lipe
Message:

Update to version 7.0.2 from GitHub

Location:
go-live-update-urls
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • go-live-update-urls/tags/7.0.2/go-live-update-urls.php

    r3196736 r3216196  
    66 * Author: OnPoint Plugins
    77 * Author URI: https://onpointplugins.com
    8  * Version: 7.0.1
     8 * Version: 7.0.2
    99 * Text Domain: go-live-update-urls
    1010 * Domain Path: /languages/
     
    1616 */
    1717
    18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.1' );
     18define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.2' );
    1919define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '7.0.0' );
    2020define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
  • go-live-update-urls/tags/7.0.2/readme.txt

    r3196736 r3216196  
    66Tested up to: 6.7.1
    77Requires PHP: 7.4.0
    8 Stable tag: 7.0.1
     8Stable tag: 7.0.2
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1616
    1717Goes through entire site and replaces all instances of an old URL with a new one. Used most often when changing the domain of your site.
     18
     19### Goals
     20
     21* Take the guesswork out of changing a domain.
     22* Provide a super simple process for updating URLs.
     23* Accurately update all instances of a URL on any site.
    1824
    1925### Features
     
    2531* Works on both multisite and single site installs.
    2632
    27 ### Updates Entire Site including
     33### Updates Entire Site Including
    2834
    2935* Posts
     
    3743* And much more
    3844
    39 ### What is Go Live Update Urls?
    40 
    41 At a basic level, Go Live Update Urls is a search and replace tool for a WordPress database. The plugin goes through every table in the database and replaces whatever is entered in the "Old URL" field with whatever is entered in the "New URL" field.
    42 
    43 The plugin will update anything in the database such as:
     45### Additional Uses
     46
     47The plugin may also be used to update anything within the database. Including but not limited to:
    4448
    4549* Domains
     
    70741. Parses the data into a replaceable format.
    71752. Updates the data.
    72 3. Reverts the data to its original format and saves the updated version.
     763. Restores the data to its original format and saves the updated version.
    7377
    7478#### Gracefully Handle Serialized Data
     
    7882Go Live Update Urls gracefully and accurately replaces serialized data in any WordPress Core database table. The [PRO version](https://onpointplugins.com/product/go-live-update-urls-pro/) replaces serialized data in any table.
    7983
    80 Another consideration with serialized data is invalid data left behind from plugins which are no longer in use. Go Live Update Urls is the only tool capable of detecting and managing updates to invalid serialized data without failing or breaking your site.
     84Another consideration with serialized data is invalid data left behind from plugins which are no longer in use. Go Live Update Urls is the only tool capable of detecting and managing updates to invalid serialized data without failing or breaking the site.
    8185
    8286#### Performance
    8387
    8488A feature unique to Go Live Update URLs is that the plugin identifies database rows and columns containing complex data types and updates only the necessary items. This targeted approach significantly improves performance and minimizes the load on the database server during updates.
     89
     90#### Cache Clearing
     91
     92Go Live Update Urls automatically clears the WordPress cache as well as many common 3rd party plugin caches when the updates are completed. This ensures that the site is ready to go live immediately after the update.
     93
    8594
    8695<h3>Domain Update Process</h3>
     
    166175== Changelog ==
    167176
     177= 7.0.2 =
     178* Adjusted memory limit during counting to assure all tables are counted.
     179
    168180= 7.0.1 =
    169181* Improved readme.
  • go-live-update-urls/tags/7.0.2/src/Core.php

    r3159918 r3216196  
    2323    protected function hook(): void {
    2424        add_action( 'go-live-update-urls/database/before-update', [ $this, 'raise_resource_limits' ], 0, 0 );
     25        add_action( 'go-live-update-urls/database/before-counting', [ $this, 'raise_resource_limits' ], 0, 0 );
    2526        add_action( 'go-live-update-urls/database/after-update', [ $this, 'flush_caches' ] );
    2627        add_filter( 'go-live-update-urls/database/memory-limit_memory_limit', [ $this, 'raise_memory_limit' ], 0, 0 );
  • go-live-update-urls/tags/7.0.2/src/Updates.php

    r2993566 r3216196  
    249249     * don't store Urls.
    250250     *
     251     * @since 6.1.0
     252     *
    251253     * @param string $table - Database table to retrieve from.
    252      *
    253      * @since 6.1.0
    254254     *
    255255     * @return string[]
     
    261261        $types = Database::instance()->get_column_types();
    262262
    263         return wp_list_pluck( array_filter( $all, function ( $column ) use ( $types ) {
     263        return wp_list_pluck( array_filter( $all, function( $column ) use ( $types ) {
    264264            // Strip the (\d) from varchar and char with (21) and over.
    265265            return \in_array( preg_replace( '/\((\d{3}|[3-9]\d|2[1-9])\d*?\)/', '', $column->type ), $types, true );
     
    271271     * Is a new URL a subdomain of the old URL?
    272272     *
     273     * @since 6.2.4
     274     *
    273275     * @param string $old_url - Old URL.
    274276     * @param string $new_url - New URL.
    275277     *
    276      * @since 6.2.4
    277      *
    278278     * @return bool
    279279     */
    280280    public static function is_subdomain( $old_url, $new_url ) {
    281         return false !== strpos( $new_url, $old_url );
     281        return false !== \strpos( $new_url, $old_url );
    282282    }
    283283
  • go-live-update-urls/trunk/go-live-update-urls.php

    r3196736 r3216196  
    66 * Author: OnPoint Plugins
    77 * Author URI: https://onpointplugins.com
    8  * Version: 7.0.1
     8 * Version: 7.0.2
    99 * Text Domain: go-live-update-urls
    1010 * Domain Path: /languages/
     
    1616 */
    1717
    18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.1' );
     18define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.2' );
    1919define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '7.0.0' );
    2020define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) );
  • go-live-update-urls/trunk/readme.txt

    r3196736 r3216196  
    66Tested up to: 6.7.1
    77Requires PHP: 7.4.0
    8 Stable tag: 7.0.1
     8Stable tag: 7.0.2
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1616
    1717Goes through entire site and replaces all instances of an old URL with a new one. Used most often when changing the domain of your site.
     18
     19### Goals
     20
     21* Take the guesswork out of changing a domain.
     22* Provide a super simple process for updating URLs.
     23* Accurately update all instances of a URL on any site.
    1824
    1925### Features
     
    2531* Works on both multisite and single site installs.
    2632
    27 ### Updates Entire Site including
     33### Updates Entire Site Including
    2834
    2935* Posts
     
    3743* And much more
    3844
    39 ### What is Go Live Update Urls?
    40 
    41 At a basic level, Go Live Update Urls is a search and replace tool for a WordPress database. The plugin goes through every table in the database and replaces whatever is entered in the "Old URL" field with whatever is entered in the "New URL" field.
    42 
    43 The plugin will update anything in the database such as:
     45### Additional Uses
     46
     47The plugin may also be used to update anything within the database. Including but not limited to:
    4448
    4549* Domains
     
    70741. Parses the data into a replaceable format.
    71752. Updates the data.
    72 3. Reverts the data to its original format and saves the updated version.
     763. Restores the data to its original format and saves the updated version.
    7377
    7478#### Gracefully Handle Serialized Data
     
    7882Go Live Update Urls gracefully and accurately replaces serialized data in any WordPress Core database table. The [PRO version](https://onpointplugins.com/product/go-live-update-urls-pro/) replaces serialized data in any table.
    7983
    80 Another consideration with serialized data is invalid data left behind from plugins which are no longer in use. Go Live Update Urls is the only tool capable of detecting and managing updates to invalid serialized data without failing or breaking your site.
     84Another consideration with serialized data is invalid data left behind from plugins which are no longer in use. Go Live Update Urls is the only tool capable of detecting and managing updates to invalid serialized data without failing or breaking the site.
    8185
    8286#### Performance
    8387
    8488A feature unique to Go Live Update URLs is that the plugin identifies database rows and columns containing complex data types and updates only the necessary items. This targeted approach significantly improves performance and minimizes the load on the database server during updates.
     89
     90#### Cache Clearing
     91
     92Go Live Update Urls automatically clears the WordPress cache as well as many common 3rd party plugin caches when the updates are completed. This ensures that the site is ready to go live immediately after the update.
     93
    8594
    8695<h3>Domain Update Process</h3>
     
    166175== Changelog ==
    167176
     177= 7.0.2 =
     178* Adjusted memory limit during counting to assure all tables are counted.
     179
    168180= 7.0.1 =
    169181* Improved readme.
  • go-live-update-urls/trunk/src/Core.php

    r3159918 r3216196  
    2323    protected function hook(): void {
    2424        add_action( 'go-live-update-urls/database/before-update', [ $this, 'raise_resource_limits' ], 0, 0 );
     25        add_action( 'go-live-update-urls/database/before-counting', [ $this, 'raise_resource_limits' ], 0, 0 );
    2526        add_action( 'go-live-update-urls/database/after-update', [ $this, 'flush_caches' ] );
    2627        add_filter( 'go-live-update-urls/database/memory-limit_memory_limit', [ $this, 'raise_memory_limit' ], 0, 0 );
  • go-live-update-urls/trunk/src/Updates.php

    r2993566 r3216196  
    249249     * don't store Urls.
    250250     *
     251     * @since 6.1.0
     252     *
    251253     * @param string $table - Database table to retrieve from.
    252      *
    253      * @since 6.1.0
    254254     *
    255255     * @return string[]
     
    261261        $types = Database::instance()->get_column_types();
    262262
    263         return wp_list_pluck( array_filter( $all, function ( $column ) use ( $types ) {
     263        return wp_list_pluck( array_filter( $all, function( $column ) use ( $types ) {
    264264            // Strip the (\d) from varchar and char with (21) and over.
    265265            return \in_array( preg_replace( '/\((\d{3}|[3-9]\d|2[1-9])\d*?\)/', '', $column->type ), $types, true );
     
    271271     * Is a new URL a subdomain of the old URL?
    272272     *
     273     * @since 6.2.4
     274     *
    273275     * @param string $old_url - Old URL.
    274276     * @param string $new_url - New URL.
    275277     *
    276      * @since 6.2.4
    277      *
    278278     * @return bool
    279279     */
    280280    public static function is_subdomain( $old_url, $new_url ) {
    281         return false !== strpos( $new_url, $old_url );
     281        return false !== \strpos( $new_url, $old_url );
    282282    }
    283283
Note: See TracChangeset for help on using the changeset viewer.