Changeset 3285084
- Timestamp:
- 04/30/2025 05:44:55 PM (11 months ago)
- Location:
- go-live-update-urls
- Files:
-
- 6 edited
- 1 copied
-
tags/7.0.5 (copied) (copied from go-live-update-urls/trunk)
-
tags/7.0.5/go-live-update-urls.php (modified) (2 diffs)
-
tags/7.0.5/readme.txt (modified) (2 diffs)
-
tags/7.0.5/src/Skip_Rows.php (modified) (5 diffs)
-
trunk/go-live-update-urls.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Skip_Rows.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
go-live-update-urls/tags/7.0.5/go-live-update-urls.php
r3268966 r3285084 6 6 * Author: OnPoint Plugins 7 7 * Author URI: https://onpointplugins.com 8 * Version: 7.0. 48 * Version: 7.0.5 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. 4' );18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.5' ); 19 19 define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '7.0.4' ); 20 20 define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) ); -
go-live-update-urls/tags/7.0.5/readme.txt
r3268980 r3285084 4 4 Tags: search and replace, database, urls, domain, update urls 5 5 Requires at least: 6.2.0 6 Tested up to: 6.8. 06 Tested up to: 6.8.1 7 7 Requires PHP: 7.4.0 8 Stable tag: 7.0. 48 Stable tag: 7.0.5 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 124 124 == Changelog == 125 125 126 = 7.0.5 = 127 * Officially added support for PHP 8.4. 128 * Improved `Skip_Rows` unit testing. 129 * Tested to WordPress 6.8.1. 130 126 131 = 7.0.4 = 127 132 * Improve labels on tools page. -
go-live-update-urls/tags/7.0.5/src/Skip_Rows.php
r3159918 r3285084 73 73 * @return void 74 74 */ 75 public function set_current_row_id( $db_id ) {75 public function set_current_row_id( $db_id ): void { 76 76 $this->row_id = $db_id; 77 77 } … … 83 83 * @return void 84 84 */ 85 public function skip_current() {85 public function skip_current(): void { 86 86 if ( '' === $this->table || 0 === $this->row_id ) { 87 87 _doing_it_wrong( __METHOD__, esc_html__( 'You must set a table and DB id before skipping a row.', 'go-live-update-urls' ), '6.5.0' ); … … 118 118 */ 119 119 public function get_primary_key( $table ) { 120 if ( ! isset( $this->primary_keys[ $table ] ) ) { 121 return null; 122 } 123 return $this->primary_keys[ $table ]; 120 return $this->primary_keys[ $table ] ?? null; 124 121 } 125 122 … … 135 132 * @return void 136 133 */ 137 public function log_error( string $class_name ) {134 public function log_error( string $class_name ): void { 138 135 //phpcs:ignore -- We want to use the PHP error log. 139 error_log(vsprintf( 'Go Live skipped row `%s` in the table `%s` because it contains an unavailable PHP class named `%s`.', [136 \error_log( \vsprintf( 'Go Live skipped row `%s` in the table `%s` because it contains an unavailable PHP class named `%s`.', [ 140 137 $this->row_id, 141 138 $this->table, … … 143 140 ] ) ); 144 141 } 145 146 147 /**148 * Reset all skips for a fresh class.149 *150 * @return void151 */152 public static function reset() {153 static::$instance = null;154 }155 142 } -
go-live-update-urls/trunk/go-live-update-urls.php
r3268966 r3285084 6 6 * Author: OnPoint Plugins 7 7 * Author URI: https://onpointplugins.com 8 * Version: 7.0. 48 * Version: 7.0.5 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. 4' );18 define( 'GO_LIVE_UPDATE_URLS_VERSION', '7.0.5' ); 19 19 define( 'GO_LIVE_UPDATE_URLS_REQUIRED_PRO_VERSION', '7.0.4' ); 20 20 define( 'GO_LIVE_UPDATE_URLS_URL', plugin_dir_url( __FILE__ ) ); -
go-live-update-urls/trunk/readme.txt
r3268980 r3285084 4 4 Tags: search and replace, database, urls, domain, update urls 5 5 Requires at least: 6.2.0 6 Tested up to: 6.8. 06 Tested up to: 6.8.1 7 7 Requires PHP: 7.4.0 8 Stable tag: 7.0. 48 Stable tag: 7.0.5 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 124 124 == Changelog == 125 125 126 = 7.0.5 = 127 * Officially added support for PHP 8.4. 128 * Improved `Skip_Rows` unit testing. 129 * Tested to WordPress 6.8.1. 130 126 131 = 7.0.4 = 127 132 * Improve labels on tools page. -
go-live-update-urls/trunk/src/Skip_Rows.php
r3159918 r3285084 73 73 * @return void 74 74 */ 75 public function set_current_row_id( $db_id ) {75 public function set_current_row_id( $db_id ): void { 76 76 $this->row_id = $db_id; 77 77 } … … 83 83 * @return void 84 84 */ 85 public function skip_current() {85 public function skip_current(): void { 86 86 if ( '' === $this->table || 0 === $this->row_id ) { 87 87 _doing_it_wrong( __METHOD__, esc_html__( 'You must set a table and DB id before skipping a row.', 'go-live-update-urls' ), '6.5.0' ); … … 118 118 */ 119 119 public function get_primary_key( $table ) { 120 if ( ! isset( $this->primary_keys[ $table ] ) ) { 121 return null; 122 } 123 return $this->primary_keys[ $table ]; 120 return $this->primary_keys[ $table ] ?? null; 124 121 } 125 122 … … 135 132 * @return void 136 133 */ 137 public function log_error( string $class_name ) {134 public function log_error( string $class_name ): void { 138 135 //phpcs:ignore -- We want to use the PHP error log. 139 error_log(vsprintf( 'Go Live skipped row `%s` in the table `%s` because it contains an unavailable PHP class named `%s`.', [136 \error_log( \vsprintf( 'Go Live skipped row `%s` in the table `%s` because it contains an unavailable PHP class named `%s`.', [ 140 137 $this->row_id, 141 138 $this->table, … … 143 140 ] ) ); 144 141 } 145 146 147 /**148 * Reset all skips for a fresh class.149 *150 * @return void151 */152 public static function reset() {153 static::$instance = null;154 }155 142 }
Note: See TracChangeset
for help on using the changeset viewer.