Skip to content

Commit

Permalink
fix for php 7.4 - ThemeFuse#3915 - Deprecated: Array and string offse…
Browse files Browse the repository at this point in the history
…t access syntax with curly braces is deprecated in ...\wp-content\plugins\unyson\framework\includes\option-types\wp-editor\includes\class-fw-wp-editor-settings.php on line 192
  • Loading branch information
Yura committed Mar 13, 2020
1 parent f0fd64e commit 612353f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function get_preinit_data_for_editor() {
&&
!empty($setting)
&&
in_array($setting{0}, array('[', '{'), true)
in_array($setting[0], array('[', '{'), true) // [0] fixes https://github.com/ThemeFuse/Unyson/issues/3915
&&
! is_null($decoded = json_decode($setting))
) {
Expand Down

0 comments on commit 612353f

Please sign in to comment.