Jump to content


Photo
- - - - -

Polylang Code In Pagelines Framework Outdated

polylang framework code

  • Please log in to reply
2 replies to this topic

#1 janpeeters

janpeeters

    Advocate

  • Members

  • 307 posts
  • LocationBreda, The Netherlands
  • Country: Country Flag

Posted 21 November 2012 - 09:23 AM

Hi Pagelines,

I'm using Polylang to translate my site. It works mostly well. After the last update to Polylang 0.9.5 my website looked garbled. Contacting the dev about this he answered the following. Maybe this is interesting for you too. I deleted the mentioned code completely and it worked well. But maybe to be backward compatible it should be the replaced code. I know that I might have to delete the code again if Pagelines gets updated any day soon.
Anyway, I thought I let you know.

Jan

------Chouby wrote-------


In Pagelines code, there is an attempt to be compatible with Polylang :) However, it does not seem to work as expected.
In file includes/class.render.css.php (line 349 in 3.7.9):

Please Login or Register to see this Hidden Content

should be replaced by:

Please Login or Register to see this Hidden Content

or even completely removed (Polylang supports the equivalent function of WPML 'icl_get_home_url' since 0.9.4)
Changing this may solve the issue.
----------------------------

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 21 November 2012 - 03:28 PM

Thanks for letting us know!

#3 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 26 November 2012 - 07:26 PM

Removed the code, so it should use icl_get_home_url() in 2.3.6





Also tagged with one or more of these keywords: polylang, framework, code