🔥 HOT: Changeset/ - Full Archive

Changeset 2584414


Ignore:
Timestamp:
08/17/2021 07:23:00 PM (4 years ago)
Author:
oakesjosh
Message:

2.1.9 trunk changes

Location:
ithemes-sync/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • ithemes-sync/trunk/functions.php

    r2359026 r2584414  
    551551        $details = self::get_function_results( $functions, $details );
    552552       
    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' ) ) {
    556554            $details['mysqli_get_server_info'] = @mysqli_get_server_info( $GLOBALS['wpdb']->dbh );
    557555        }
     
    572570        $details = self::get_function_results( $functions, $details );
    573571       
    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' ) ) {
    577573            $details['mysqli_get_host_info'] = @mysqli_get_host_info( $GLOBALS['wpdb']->dbh );
    578574        }
     
    710706           
    711707            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 ) );
    713709            } else if ( defined( $function ) && empty( $args ) ) {
    714710                $data[$var] = constant( $function );
  • ithemes-sync/trunk/history.txt

    r2430532 r2584414  
    2422422.1.8 - 2020-12-02 - Josh Oakes
    243243    Bug Fix: Improved support for plugins using their own updater
     2442.1.9 - 2021-08-17 - Josh Oakes
     245    Enhancement: PHP 8 compatibility
  • ithemes-sync/trunk/init.php

    r2430532 r2584414  
    55Description: Manage updates to your WordPress sites easily in one place.
    66Author: iThemes
    7 Version: 2.1.8
     7Version: 2.1.9
    88Author URI: http://ithemes.com/
    99Domain Path: /lang/
  • ithemes-sync/trunk/lang/ithemes-sync.pot

    r2430532 r2584414  
    1 # Copyright (C) 2020 iThemes Sync
     1# Copyright (C) 2021 iThemes Sync
    22# This file is distributed under the same license as the iThemes Sync package.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: iThemes Sync 2.1.8\n"
     5"Project-Id-Version: iThemes Sync 2.1.9\n"
    66"Report-Msgid-Bugs-To: http://ithemes.com/support/\n"
    7 "POT-Creation-Date: 2020-12-02 20:22:21+00:00\n"
    8 "PO-Revision-Date: 2020-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"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=UTF-8\n"
  • ithemes-sync/trunk/readme.txt

    r2430532 r2584414  
    44Requires at least: 4.5
    55Requires PHP: 5.6
    6 Tested up to: 5.5.3
    7 Stable tag: 2.1.8
     6Tested up to: 5.8
     7Stable tag: 2.1.9
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/quick-guide-gplv3.html
     
    8888== Changelog ==
    8989
     90= 2.1.9 =
     91* Enhancement: PHP 8 compatibility
     92
    9093= 2.1.8 =
    9194* Bug Fix: Improved support for plugins using their own updater
  • ithemes-sync/trunk/verbs/db-optimization.php

    r1881423 r2584414  
    7777            return array('success' => 0);
    7878        }
    79         foreach( (array) $this->arguments['args']['selected'] as $selected ) {
     79        foreach( (array) $this->arguments['args']['selected'] as $key => $selected ) {
    8080            $function = empty( $this->registered_optimizations[$selected] ) ? false : $this->registered_optimizations[$selected];
    8181            if ( ! empty( $function ) && is_callable( array( $this, $function ) ) && false !== ( $result = $this->$function( 'run' ) ) ) {
     
    105105                $this->update_last_run_var( 'delete-trackback-urls' );
    106106                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) . ")" ) ) {
    108108                        return true;
    109109                    }
     
    318318                $this->update_last_run_var( 'delete-orphaned-commentmeta' );
    319319                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 ) . ")" ) ) {
    321321                        return true;
    322322                    }
  • ithemes-sync/trunk/verbs/manage-options.php

    r1669854 r2584414  
    6666        foreach ( $data as $id => $params ) {
    6767            if ( ! is_array( $function ) ) {
    68                 $response[$id] = call_user_func_array( $function, $params );
     68                $response[$id] = call_user_func_array( $function, array_values( $params ) );
    6969                continue;
    7070            }
  • ithemes-sync/trunk/verbs/manage-roles.php

    r1669854 r2584414  
    6363        foreach ( $data as $id => $params ) {
    6464            if ( ! is_array( $function ) ) {
    65                 $response[$id] = call_user_func_array( $function, $params );
     65                $response[$id] = call_user_func_array( $function, array_values( $params ) );
    6666                continue;
    6767            }
     
    8888           
    8989            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 ) );
    9191            } else {
    9292                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 ) );
    9494                }
    9595            }
  • ithemes-sync/trunk/verbs/manage-users.php

    r1669854 r2584414  
    7979        foreach ( $data as $id => $params ) {
    8080            if ( ! is_array( $function ) ) {
    81                 $response[$id] = call_user_func_array( $function, $params );
     81                $response[$id] = call_user_func_array( $function, array_values( $params ) );
    8282                continue;
    8383            }
     
    104104           
    105105            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 ) );
    107107            } else {
    108108                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 ) );
    110110                }
    111111            }
Note: See TracChangeset for help on using the changeset viewer.