Changeset 3216196
- Timestamp:
- 01/03/2025 02:05:17 AM (15 months ago)
- Location:
- go-live-update-urls
- Files:
-
- 8 edited
- 1 copied
-
tags/7.0.2 (copied) (copied from go-live-update-urls/trunk)
-
tags/7.0.2/go-live-update-urls.php (modified) (2 diffs)
-
tags/7.0.2/readme.txt (modified) (7 diffs)
-
tags/7.0.2/src/Core.php (modified) (1 diff)
-
tags/7.0.2/src/Updates.php (modified) (3 diffs)
-
trunk/go-live-update-urls.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (7 diffs)
-
trunk/src/Core.php (modified) (1 diff)
-
trunk/src/Updates.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
go-live-update-urls/tags/7.0.2/go-live-update-urls.php
r3196736 r3216196 6 6 * Author: OnPoint Plugins 7 7 * Author URI: https://onpointplugins.com 8 * Version: 7.0. 18 * Version: 7.0.2 9 9 * Text Domain: go-live-update-urls 10 10 * Domain Path: /languages/ … … 16 16 */ 17 17 18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0. 1' );18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.2' ); 19 19 define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '7.0.0' ); 20 20 define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) ); -
go-live-update-urls/tags/7.0.2/readme.txt
r3196736 r3216196 6 6 Tested up to: 6.7.1 7 7 Requires PHP: 7.4.0 8 Stable tag: 7.0. 18 Stable tag: 7.0.2 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 16 16 17 17 Goes 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. 18 24 19 25 ### Features … … 25 31 * Works on both multisite and single site installs. 26 32 27 ### Updates Entire Site including33 ### Updates Entire Site Including 28 34 29 35 * Posts … … 37 43 * And much more 38 44 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 47 The plugin may also be used to update anything within the database. Including but not limited to: 44 48 45 49 * Domains … … 70 74 1. Parses the data into a replaceable format. 71 75 2. Updates the data. 72 3. Re verts the data to its original format and saves the updated version.76 3. Restores the data to its original format and saves the updated version. 73 77 74 78 #### Gracefully Handle Serialized Data … … 78 82 Go 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. 79 83 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 yoursite.84 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 the site. 81 85 82 86 #### Performance 83 87 84 88 A 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 92 Go 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 85 94 86 95 <h3>Domain Update Process</h3> … … 166 175 == Changelog == 167 176 177 = 7.0.2 = 178 * Adjusted memory limit during counting to assure all tables are counted. 179 168 180 = 7.0.1 = 169 181 * Improved readme. -
go-live-update-urls/tags/7.0.2/src/Core.php
r3159918 r3216196 23 23 protected function hook(): void { 24 24 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 ); 25 26 add_action( 'go-live-update-urls/database/after-update', [ $this, 'flush_caches' ] ); 26 27 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 249 249 * don't store Urls. 250 250 * 251 * @since 6.1.0 252 * 251 253 * @param string $table - Database table to retrieve from. 252 *253 * @since 6.1.0254 254 * 255 255 * @return string[] … … 261 261 $types = Database::instance()->get_column_types(); 262 262 263 return wp_list_pluck( array_filter( $all, function ( $column ) use ( $types ) {263 return wp_list_pluck( array_filter( $all, function( $column ) use ( $types ) { 264 264 // Strip the (\d) from varchar and char with (21) and over. 265 265 return \in_array( preg_replace( '/\((\d{3}|[3-9]\d|2[1-9])\d*?\)/', '', $column->type ), $types, true ); … … 271 271 * Is a new URL a subdomain of the old URL? 272 272 * 273 * @since 6.2.4 274 * 273 275 * @param string $old_url - Old URL. 274 276 * @param string $new_url - New URL. 275 277 * 276 * @since 6.2.4277 *278 278 * @return bool 279 279 */ 280 280 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 ); 282 282 } 283 283 -
go-live-update-urls/trunk/go-live-update-urls.php
r3196736 r3216196 6 6 * Author: OnPoint Plugins 7 7 * Author URI: https://onpointplugins.com 8 * Version: 7.0. 18 * Version: 7.0.2 9 9 * Text Domain: go-live-update-urls 10 10 * Domain Path: /languages/ … … 16 16 */ 17 17 18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0. 1' );18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.2' ); 19 19 define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '7.0.0' ); 20 20 define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) ); -
go-live-update-urls/trunk/readme.txt
r3196736 r3216196 6 6 Tested up to: 6.7.1 7 7 Requires PHP: 7.4.0 8 Stable tag: 7.0. 18 Stable tag: 7.0.2 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 16 16 17 17 Goes 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. 18 24 19 25 ### Features … … 25 31 * Works on both multisite and single site installs. 26 32 27 ### Updates Entire Site including33 ### Updates Entire Site Including 28 34 29 35 * Posts … … 37 43 * And much more 38 44 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 47 The plugin may also be used to update anything within the database. Including but not limited to: 44 48 45 49 * Domains … … 70 74 1. Parses the data into a replaceable format. 71 75 2. Updates the data. 72 3. Re verts the data to its original format and saves the updated version.76 3. Restores the data to its original format and saves the updated version. 73 77 74 78 #### Gracefully Handle Serialized Data … … 78 82 Go 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. 79 83 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 yoursite.84 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 the site. 81 85 82 86 #### Performance 83 87 84 88 A 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 92 Go 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 85 94 86 95 <h3>Domain Update Process</h3> … … 166 175 == Changelog == 167 176 177 = 7.0.2 = 178 * Adjusted memory limit during counting to assure all tables are counted. 179 168 180 = 7.0.1 = 169 181 * Improved readme. -
go-live-update-urls/trunk/src/Core.php
r3159918 r3216196 23 23 protected function hook(): void { 24 24 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 ); 25 26 add_action( 'go-live-update-urls/database/after-update', [ $this, 'flush_caches' ] ); 26 27 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 249 249 * don't store Urls. 250 250 * 251 * @since 6.1.0 252 * 251 253 * @param string $table - Database table to retrieve from. 252 *253 * @since 6.1.0254 254 * 255 255 * @return string[] … … 261 261 $types = Database::instance()->get_column_types(); 262 262 263 return wp_list_pluck( array_filter( $all, function ( $column ) use ( $types ) {263 return wp_list_pluck( array_filter( $all, function( $column ) use ( $types ) { 264 264 // Strip the (\d) from varchar and char with (21) and over. 265 265 return \in_array( preg_replace( '/\((\d{3}|[3-9]\d|2[1-9])\d*?\)/', '', $column->type ), $types, true ); … … 271 271 * Is a new URL a subdomain of the old URL? 272 272 * 273 * @since 6.2.4 274 * 273 275 * @param string $old_url - Old URL. 274 276 * @param string $new_url - New URL. 275 277 * 276 * @since 6.2.4277 *278 278 * @return bool 279 279 */ 280 280 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 ); 282 282 } 283 283
Note: See TracChangeset
for help on using the changeset viewer.