issues on several if statements
-
Hello,
we have issues in several if statements with the following code pieces:
method_exists( $sitepress, …..)We are using Polylang which defines the function “icl_object_id” and therefore the if fails with a fatal error, because $sitepress is null.
Can you please add “… && $sitepress && ….” to the if statements which are beginning with “function_exists(‘icl_object_id’)”, so the error will be catched in the future?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘issues on several if statements’ is closed to new replies.