• Resolved vgstudios

    (@vgstudios)


    Hi. Thank you for your plugin.

    There’s a small problem (as of WordPress 6.7), that might be worth fixing:

    Symptom:

    The plugin will cause a warning with e.g. Query Monitor and will break sites in DEBUG mode:

    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the head-footer-code domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. (This message was added in version 6.7.0.)

    _load_textdomain_just_in_time()
    wp-includes/l10n.php:1355
    get_translations_for_domain()
    wp-includes/l10n.php:1385
    translate()
    wp-includes/l10n.php:194
    _get_plugin_data_markup_translate()
    wp-admin/includes/plugin.php:163
    get_plugin_data()
    wp-admin/includes/plugin.php:114

    Cause:

    get_plugin_data call in head_footer_code.php

    Reason:

    Don’t use get_plugin_data before init hook:
    https://developer.www.ads-software.com/reference/functions/get_plugin_data/#comment-2109

    • This topic was modified 5 days, 10 hours ago by vgstudios. Reason: added problem exists as of WordPress 6.7
Viewing 1 replies (of 1 total)
  • Plugin Author Aleksandar Uro?evi?

    (@urkekg)

    Hi @vgstudios,

    Thank you for choosing the Head & Footer Code plugin for your project and reporting the WP 6.7 compatibility issue, which is resolved in the new version 1.3.7

    Cheers,
    Aleksandar

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.