Support » Plugin: Google Maps Ready! » Wrong usage of function __()

  • Resolved Chouby

    (@chouby)


    @google Maps plugin

    Hi!

    I am here following a conflict detected with Polylang. See https://wordpress.org/support/topic/error-on-olt-managerphp-on-line-110 . It seems that in some cases, you pass an array to the method langGmp::_($name) . At least it is the case for this array:

    Array
    (
        [0] => Module
        [1] => options
        [2] => method
        [3] => checkStatistic
        [4] => undefined
    )

    But written as it is currently in 0.5.1.3, the method is an alias of the function __() which cannot handle arrays. This may cause conflicts with plugins using the ‘gettext’ filter which expect a string and not an array. Also your strings will of course not be translated.

    https://wordpress.org/plugins/google-maps-ready/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong usage of function __()’ is closed to new replies.