Commit 0148161
committed
Admin: prevent PHP fatal error inside of get_transient_value_type()
This commit lowers the priority of the "is_object( json_decode( $value ) )" check and places it inside of a "is_string()" call.
See: https://wordpress.org/support/topic/2-0-0-warning-json_decode-expects-parameter-1-to-be-string-object-given-in/
Fixes #59.1 parent 69dd863 commit 0148161
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | 828 | | |
833 | 829 | | |
834 | 830 | | |
| |||
859 | 855 | | |
860 | 856 | | |
861 | 857 | | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
862 | 863 | | |
863 | 864 | | |
864 | 865 | | |
| |||
0 commit comments