You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since strpos php function returns boolean false when the provided substring (needle) was not found in the string (haystack), I think this logic is prone to some side-case issues when those chars appears in the first position (which is 0).
To have a better and more reliable and data-agnostic approach I suggest to reword this like:
wordlift-plugin/src/classes/jsonld/class-jsonld-endpoint.php
Lines 235 to 239 in 86717a8
Since
strpos
php function returns booleanfalse
when the provided substring (needle) was not found in the string (haystack), I think this logic is prone to some side-case issues when those chars appears in the first position (which is0
).To have a better and more reliable and data-agnostic approach I suggest to reword this like:
The text was updated successfully, but these errors were encountered: