Support » Fixing WordPress » WP Plugins Health Check – PHP Notice: Array to string conversion

  • [24-May-2020 05:31:04 UTC] PHP Notice: Array to string conversion in /home/user/public_html/wordpress/wp-content/plugins/health-check/includes/class-health-check-site-status.php on line 2014

    foreach ( $tests as $test ) {
    	$function = sprintf(
    	'get_test_%s',
    	$test['test']
    	);
    
    	if ( method_exists( $this, $function ) && is_callable( array( $this, $function ) ) ) {
    	$results[] = call_user_func( array( $this, $function ) );
    	} else {
    	$results[] = call_user_func( $test['test'] );
    	}
    	}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.