diff --git a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 b/app/assets/javascripts/discourse/lib/plugin-api.js.es6 index 1ccc1c0671f..b7e04e57eb9 100644 --- a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 +++ b/app/assets/javascripts/discourse/lib/plugin-api.js.es6 @@ -336,7 +336,7 @@ class PluginApi { let _pluginv01; function getPluginApi(version) { version = parseFloat(version); - if (version <= 0.4) { + if (version <= 0.5) { if (!_pluginv01) { _pluginv01 = new PluginApi(version, Discourse.__container__); } diff --git a/plugins/discourse-details/assets/javascripts/initializers/apply-details.js.es6 b/plugins/discourse-details/assets/javascripts/initializers/apply-details.js.es6 index 0e93120da3b..b3f58c7bc42 100644 --- a/plugins/discourse-details/assets/javascripts/initializers/apply-details.js.es6 +++ b/plugins/discourse-details/assets/javascripts/initializers/apply-details.js.es6 @@ -30,6 +30,6 @@ export default { name: "apply-details", initialize() { - withPluginApi('0.1', initializeDetails); + withPluginApi('0.5', initializeDetails); } }; diff --git a/plugins/poll/assets/javascripts/initializers/add-poll-ui-builder.js.es6 b/plugins/poll/assets/javascripts/initializers/add-poll-ui-builder.js.es6 index e1d88715ab0..a5f80d08ddc 100644 --- a/plugins/poll/assets/javascripts/initializers/add-poll-ui-builder.js.es6 +++ b/plugins/poll/assets/javascripts/initializers/add-poll-ui-builder.js.es6 @@ -25,6 +25,6 @@ export default { name: "add-poll-ui-builder", initialize() { - withPluginApi('0.1', initializePollUIBuilder); + withPluginApi('0.5', initializePollUIBuilder); } };