WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] Load sequence - YARPP starts before the WordPress init co (5 posts)

  1. AmirHelzer
    Member
    Posted 3 years ago #

    It looks like YARPP is running before the WordPress init hook completes. As a result, WPML sets the language information after YARPP runs and YARPP loads related posts in the default language.

    Can you work on this together with us to make sure that YARPP loads after the WP init completes?

    If so, I'll ask WPML's lead developer to join this discussion and check this together.

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    What YARPP function have you caught running before the init hook completes? There are a few things that happen on plugin code load, but it's not much. What specifically is the issue?

  3. mihaimihai
    Member
    Posted 2 years ago #

    load_plugin_textdomain

    This should normally be called at 'init'.

    http://codex.wordpress.org/I18n_for_WordPress_Developers#Choosing_and_loading_a_domain

    This allows other plugins to hook in too.

    Cheers,
    Mihai

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Mihai, I'm going to push a beta 3.3.3b1 with what I believe is the fix you're requesting. Could you then check to see if the issue is resolved?

  5. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic