Changeset 2584414
- Timestamp:
- 08/17/2021 07:23:00 PM (4 years ago)
- Location:
- ithemes-sync/trunk
- Files:
-
- 9 edited
-
functions.php (modified) (3 diffs)
-
history.txt (modified) (1 diff)
-
init.php (modified) (1 diff)
-
lang/ithemes-sync.pot (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
verbs/db-optimization.php (modified) (3 diffs)
-
verbs/manage-options.php (modified) (1 diff)
-
verbs/manage-roles.php (modified) (2 diffs)
-
verbs/manage-users.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ithemes-sync/trunk/functions.php
r2359026 r2584414 551 551 $details = self::get_function_results( $functions, $details ); 552 552 553 if ( ! isset( $GLOBALS['wpdb'] ) || ( empty( $GLOBALS['wpdb']->use_mysqli ) && self::is_callable_function( 'mysql_get_server_info' ) ) ) { 554 $details['mysql_get_server_info'] = @mysql_get_server_info(); 555 } else if ( isset( $GLOBALS['wpdb']->dbh ) && self::is_callable_function( 'mysqli_get_server_info' ) ) { 553 if ( isset( $GLOBALS['wpdb']->dbh ) && self::is_callable_function( 'mysqli_get_server_info' ) ) { 556 554 $details['mysqli_get_server_info'] = @mysqli_get_server_info( $GLOBALS['wpdb']->dbh ); 557 555 } … … 572 570 $details = self::get_function_results( $functions, $details ); 573 571 574 if ( ! isset( $GLOBALS['wpdb'] ) || ( empty( $GLOBALS['wpdb']->use_mysqli ) && self::is_callable_function( 'mysql_get_host_info' ) ) ) { 575 $details['mysql_get_host_info'] = @mysql_get_host_info(); 576 } else if ( isset( $GLOBALS['wpdb']->dbh ) && self::is_callable_function( 'mysqli_get_host_info' ) ) { 572 if ( isset( $GLOBALS['wpdb']->dbh ) && self::is_callable_function( 'mysqli_get_host_info' ) ) { 577 573 $details['mysqli_get_host_info'] = @mysqli_get_host_info( $GLOBALS['wpdb']->dbh ); 578 574 } … … 710 706 711 707 if ( self::is_callable_function( $function ) ) { 712 $data[$var] = call_user_func_array( $function, $args);708 $data[$var] = call_user_func_array( $function, array_values( $args ) ); 713 709 } else if ( defined( $function ) && empty( $args ) ) { 714 710 $data[$var] = constant( $function ); -
ithemes-sync/trunk/history.txt
r2430532 r2584414 242 242 2.1.8 - 2020-12-02 - Josh Oakes 243 243 Bug Fix: Improved support for plugins using their own updater 244 2.1.9 - 2021-08-17 - Josh Oakes 245 Enhancement: PHP 8 compatibility -
ithemes-sync/trunk/init.php
r2430532 r2584414 5 5 Description: Manage updates to your WordPress sites easily in one place. 6 6 Author: iThemes 7 Version: 2.1. 87 Version: 2.1.9 8 8 Author URI: http://ithemes.com/ 9 9 Domain Path: /lang/ -
ithemes-sync/trunk/lang/ithemes-sync.pot
r2430532 r2584414 1 # Copyright (C) 202 0iThemes Sync1 # Copyright (C) 2021 iThemes Sync 2 2 # This file is distributed under the same license as the iThemes Sync package. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: iThemes Sync 2.1. 8\n"5 "Project-Id-Version: iThemes Sync 2.1.9\n" 6 6 "Report-Msgid-Bugs-To: http://ithemes.com/support/\n" 7 "POT-Creation-Date: 202 0-12-02 20:22:21+00:00\n"8 "PO-Revision-Date: 202 0-MO-DA HO:MI+ZONE\n"7 "POT-Creation-Date: 2021-08-17 18:11:56+00:00\n" 8 "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=UTF-8\n" -
ithemes-sync/trunk/readme.txt
r2430532 r2584414 4 4 Requires at least: 4.5 5 5 Requires PHP: 5.6 6 Tested up to: 5. 5.37 Stable tag: 2.1. 86 Tested up to: 5.8 7 Stable tag: 2.1.9 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/quick-guide-gplv3.html … … 88 88 == Changelog == 89 89 90 = 2.1.9 = 91 * Enhancement: PHP 8 compatibility 92 90 93 = 2.1.8 = 91 94 * Bug Fix: Improved support for plugins using their own updater -
ithemes-sync/trunk/verbs/db-optimization.php
r1881423 r2584414 77 77 return array('success' => 0); 78 78 } 79 foreach( (array) $this->arguments['args']['selected'] as $ selected ) {79 foreach( (array) $this->arguments['args']['selected'] as $key => $selected ) { 80 80 $function = empty( $this->registered_optimizations[$selected] ) ? false : $this->registered_optimizations[$selected]; 81 81 if ( ! empty( $function ) && is_callable( array( $this, $function ) ) && false !== ( $result = $this->$function( 'run' ) ) ) { … … 105 105 $this->update_last_run_var( 'delete-trackback-urls' ); 106 106 if ( $result = $wpdb->get_col( "SELECT ID FROM $wpdb->posts WHERE pinged !='' OR to_ping != ''" ) ) { 107 if ( $wpdb->query( "UPDATE $wpdb->posts SET pinged = '', to_ping = '' WHERE ID IN (" . implode( $result, ',') . ")" ) ) {107 if ( $wpdb->query( "UPDATE $wpdb->posts SET pinged = '', to_ping = '' WHERE ID IN (" . implode( ',', $result) . ")" ) ) { 108 108 return true; 109 109 } … … 318 318 $this->update_last_run_var( 'delete-orphaned-commentmeta' ); 319 319 if ( $result = $wpdb->get_col( "SELECT meta_id FROM $wpdb->commentmeta WHERE comment_id NOT IN (SELECT comment_ID FROM $wpdb->comments);" ) ) { 320 if ( $wpdb->query( "DELETE FROM $wpdb->commentmeta WHERE meta_id IN (" . implode( $result, ',') . ")" ) ) {320 if ( $wpdb->query( "DELETE FROM $wpdb->commentmeta WHERE meta_id IN (" . implode(',', $result ) . ")" ) ) { 321 321 return true; 322 322 } -
ithemes-sync/trunk/verbs/manage-options.php
r1669854 r2584414 66 66 foreach ( $data as $id => $params ) { 67 67 if ( ! is_array( $function ) ) { 68 $response[$id] = call_user_func_array( $function, $params);68 $response[$id] = call_user_func_array( $function, array_values( $params ) ); 69 69 continue; 70 70 } -
ithemes-sync/trunk/verbs/manage-roles.php
r1669854 r2584414 63 63 foreach ( $data as $id => $params ) { 64 64 if ( ! is_array( $function ) ) { 65 $response[$id] = call_user_func_array( $function, $params);65 $response[$id] = call_user_func_array( $function, array_values( $params ) ); 66 66 continue; 67 67 } … … 88 88 89 89 if ( ! is_array( $params[0] ) ) { 90 $response[$id] = call_user_func_array( array( $role, $function ), $params);90 $response[$id] = call_user_func_array( array( $role, $function ), array_values( $params ) ); 91 91 } else { 92 92 foreach ( $params as $index => $param ) { 93 $response[$id][$index] = call_user_func_array( array( $role, $function ), $param);93 $response[$id][$index] = call_user_func_array( array( $role, $function ), array_values( $param ) ); 94 94 } 95 95 } -
ithemes-sync/trunk/verbs/manage-users.php
r1669854 r2584414 79 79 foreach ( $data as $id => $params ) { 80 80 if ( ! is_array( $function ) ) { 81 $response[$id] = call_user_func_array( $function, $params);81 $response[$id] = call_user_func_array( $function, array_values( $params ) ); 82 82 continue; 83 83 } … … 104 104 105 105 if ( ! is_array( $params[0] ) ) { 106 $response[$id] = call_user_func_array( array( $user, $function ), $params);106 $response[$id] = call_user_func_array( array( $user, $function ), array_values( $params ) ); 107 107 } else { 108 108 foreach ( $params as $index => $param ) { 109 $response[$id][$index] = call_user_func_array( array( $user, $function ), $param);109 $response[$id][$index] = call_user_func_array( array( $user, $function ), array_values( $param ) ); 110 110 } 111 111 }
Note: See TracChangeset
for help on using the changeset viewer.