• Hi

    you may not have notice you are using a Polylang deprecated method.

    PHP Notice: get_post_language was called incorrectly in /var/www/html/wordpress/wp-content/plugins/events-maker/includes/class-metaboxes.php on line 623: the call to $polylang->model->get_post_language() has been deprecated in Polylang 1.8, use PLL()->model->post->get_language() instead.

    Using version 1.6.12 of the plugin but was there as well with the previous version.

    • This topic was modified 9 years, 8 months ago by decarvalhoaa.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dFactory

    (@dfactory)

    Thanks,

    But this is strange – in 1.6.12 this is fixed in favor of PLL()->model->post->get_language()

    Thread Starter decarvalhoaa

    (@decarvalhoaa)

    That is indeed odd. I just rechecked that line and this is what I have in line 632

    $language = PLL()->model->get_post_language( $post_ID );

    I have upgraded via the admin backend without any issues. The file system time-stamps are consistent across all files, so it seems the includes/class-metaboxes.php was also new.
    I have seen that many other notices have been fixed. Perhaps you have missed this one?

    Anyway, it’s a minor issue. Thanks for sharing this fantastic plugin.

    Plugin Author dFactory

    (@dfactory)

    Thanks for the kind words.

    I see you’re know EM very well. Maybe you’d like to help us with beta testing of EM 2 that includes event registration and attendee management system?

    If so just reach us via our contact form https://www.dfactory.eu/contact/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Polylang deprecated method notice’ is closed to new replies.