WordPress Plugin Boilerplate Powered 2.0.5

This article has been written more than 1 years ago, information might old.

I chosen to release a new version of WPBP to be compatible with the latest version of WordPress.

The issue was in the loading of the textdomain that in 4.6 changed in priority. in 4.5 was possible to add a textdomain in bundle with <span class="blob-code-inner"><span class="pl-s1"><span class="x x-first x-last">load_plugin_textdomain</span></span></span> in that way your translation got the maximum priority on loading but on 4.6 with the autoloading of translation from translate.wordpress.org the code is changed.

Now if you want that your translation in bundle is loaded you need to use <span class="blob-code-inner"><span class="pl-s1"><span class="x x-first x-last">load_textdomain</span></span></span>.

The 2.0.5 contain also 2 new libraries:

  • WPBP/Backbone-Modal-View – An easy way to have a modal list view from a json, look at the readme!
  • Yoast/i18n-module – An easy way to alert your user about the status of the translation of your plugin.

For anything is available a Changelog!

See you for the next release!

PS: also the wpbp-generator was updated with a fix and the support for the new version of the boilerplate.

Liked it? Take a second to support Mte90 on Patreon!

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress Plugin Boilerplate Powered 2.0.5

time to read: 1 min
0