Plugin Directory

Changeset 3285084


Ignore:
Timestamp:
04/30/2025 05:44:55 PM (11 months ago)
Author:
Mat Lipe
Message:

Update to version 7.0.5 from GitHub

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

Legend:

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

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

    r3268980 r3285084  
    44Tags: search and replace, database, urls, domain, update urls
    55Requires at least: 6.2.0
    6 Tested up to: 6.8.0
     6Tested up to: 6.8.1
    77Requires PHP: 7.4.0
    8 Stable tag: 7.0.4
     8Stable tag: 7.0.5
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    124124== Changelog ==
    125125
     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
    126131= 7.0.4 =
    127132* Improve labels on tools page.
  • go-live-update-urls/tags/7.0.5/src/Skip_Rows.php

    r3159918 r3285084  
    7373     * @return void
    7474     */
    75     public function set_current_row_id( $db_id ) {
     75    public function set_current_row_id( $db_id ): void {
    7676        $this->row_id = $db_id;
    7777    }
     
    8383     * @return void
    8484     */
    85     public function skip_current() {
     85    public function skip_current(): void {
    8686        if ( '' === $this->table || 0 === $this->row_id ) {
    8787            _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' );
     
    118118     */
    119119    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;
    124121    }
    125122
     
    135132     * @return void
    136133     */
    137     public function log_error( string $class_name ) {
     134    public function log_error( string $class_name ): void {
    138135        //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`.', [
    140137            $this->row_id,
    141138            $this->table,
     
    143140        ] ) );
    144141    }
    145 
    146 
    147     /**
    148      * Reset all skips for a fresh class.
    149      *
    150      * @return void
    151      */
    152     public static function reset() {
    153         static::$instance = null;
    154     }
    155142}
  • go-live-update-urls/trunk/go-live-update-urls.php

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

    r3268980 r3285084  
    44Tags: search and replace, database, urls, domain, update urls
    55Requires at least: 6.2.0
    6 Tested up to: 6.8.0
     6Tested up to: 6.8.1
    77Requires PHP: 7.4.0
    8 Stable tag: 7.0.4
     8Stable tag: 7.0.5
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    124124== Changelog ==
    125125
     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
    126131= 7.0.4 =
    127132* Improve labels on tools page.
  • go-live-update-urls/trunk/src/Skip_Rows.php

    r3159918 r3285084  
    7373     * @return void
    7474     */
    75     public function set_current_row_id( $db_id ) {
     75    public function set_current_row_id( $db_id ): void {
    7676        $this->row_id = $db_id;
    7777    }
     
    8383     * @return void
    8484     */
    85     public function skip_current() {
     85    public function skip_current(): void {
    8686        if ( '' === $this->table || 0 === $this->row_id ) {
    8787            _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' );
     
    118118     */
    119119    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;
    124121    }
    125122
     
    135132     * @return void
    136133     */
    137     public function log_error( string $class_name ) {
     134    public function log_error( string $class_name ): void {
    138135        //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`.', [
    140137            $this->row_id,
    141138            $this->table,
     
    143140        ] ) );
    144141    }
    145 
    146 
    147     /**
    148      * Reset all skips for a fresh class.
    149      *
    150      * @return void
    151      */
    152     public static function reset() {
    153         static::$instance = null;
    154     }
    155142}
Note: See TracChangeset for help on using the changeset viewer.