Support

Account

Home Forums General Issues Code styling Localization warning about load_textdomain()

Solving

Code styling Localization warning about load_textdomain()

  • Very minor;

    https://wordpress.org/plugins/codestyling-localization/ is flagging a compatibility issue.

    Compatibility: Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that.

    Just wanted to make you aware of this, but it’s not a big deal.

  • This reply has been marked as private.
  • I don’t know why you didn’t fix this.
    You should not use load_textdomain directly. Instead, you should use load_plugin_textdomain here.

    load_plugin_textdomain( 'acf', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );

    load_plugin_textdomain will make customized language file easily. I can just put my language file into wp-content/languages/plugins.

    Please fix it.

  • Hi @wuboy

    Thanks for the bug report.

    Would you mind opening a new support ticket at support@advancedcustomfields.com so that we can bring this to the attention of Elliot?

    Kindly attach a link to this thread for reference.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.