PHP Warnings in content_timeline_class.php

Closed31127NormalContent Timeline WP
Profile Reply
W3B Client

I’m using WPML with 2 langs: EN and IT (Where IT is the default one). In the backend, editing a timeline setted up as Italian, I’ve a warning about “undefined $lang var” on content_timeline_class.php:230 and a warning about “undefined $my_lang var” on content_timeline_class.php:236.
To resolve the issue I’ve changed lines 230, 231 and 236 like this:

230: <?php if (isset($_GET['lang']))$lang=$_GET['lang'];
231: if(!isset($lang) && defined(‘ICL_LANGUAGE_CODE’))$lang=ICL_LANGUAGE_CODE;

236: $t=wp_my_timeline_get_translations($lang);

now the problem seems fixed and the generated js code has the var my_ctimeline_lang correctly setted to “it”.

Could you please take a look to the problem and eventually fix it?

Thanks in advance,

P.S.: I’m on
WP 4.9.1,
Content Timeline 4.4.4,
WPML 3.8.4


User Description Posted On
Shindiri Support team Administrator


thank you for pointing this out, our developing team will definitely take a closer look and check the potential for upgrading code.

Best regards,
Shindiri Studio |

W3B Client

OK, thanks.

× This ticket is closed.