WordPress.org

Ready to get started?Download WordPress

Forums

Google Maps Ready!
[resolved] Wrong usage of function __() (3 posts)

  1. Chouby
    Member
    Posted 2 months ago #

    @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/

  2. Ready! Developer
    Member
    Posted 1 month ago #

    Hello.
    This will be fixed in next release, it should come today.

    Regards,
    Alexey.

  3. Chouby
    Member
    Posted 1 month ago #

    Great! So marking this as resolved.
    Frédéric

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.