Plugin Directory

Changeset 1903802

Timestamp:
07/04/2018 07:52:45 AM (6 years ago)
Author:
mdawaffe
Message:

Fix a Fatal Error under PHP 5.2: Don't use Short Array Syntax

https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-expecting-simple-payments-php/

Use array() instead of [] in Simple Payments Widget.

https://github.com/Automattic/jetpack/pull/9859

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/widgets/simple-payments.php

    r1899629 r1903802  
    218218            }
    219219
    220             wp_send_json_success( [
     220            wp_send_json_success(
    221221                'product_post_id' => $product_post_id,
    222222                'product_post_title' => $params['post_title'],
    223             ] );
     223            );
    224224        }
    225225
Note: See TracChangeset for help on using the changeset viewer.