WPGlobus – Multilingual Everything! - Version 2.7.13

Version Description

  • (Vendor/Yoast) Init TinyMCE description editor on the term.php page.
  • (Vendor/Yoast) Fixed incorrect rewriting taxonomy metas during the update process.
Download this release

Release Info

Developer tivnet
Plugin Icon 128x128 WPGlobus – Multilingual Everything!
Version 2.7.13
Comparing to
See all releases

Code changes from version 2.7.12 to 2.7.13

includes/builders/assets/wpglobus-admin-builder-56.js CHANGED
@@ -246,13 +246,6 @@ jQuery(document).ready(function ($) {
246
  });
247
 
248
  api.setMultilingualFields();
249
-
250
- /**
251
- * Init Yoast tinymce editor for description.
252
- */
253
- $(document).on( 'tinymce-editor-init', function( event, editor ) {
254
- $( '#' + editor.getContainer().id ).find('iframe').addClass(WPGlobusAdmin.builder.translatableClass).css({'width':''});
255
- });
256
  },
257
  start: function() {
258
  /**
246
  });
247
 
248
  api.setMultilingualFields();
 
 
 
 
 
 
 
249
  },
250
  start: function() {
251
  /**
includes/builders/assets/wpglobus-admin-builder-56.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore;!function(l){var s=WPGlobusCore={strpos:function(t,e,a){a=(t=""+t).indexOf(e,a);return 0<=a&&a},TextFilter:function(t,e,a){if(void 0===t||""===t)return t;var o,n,l=[],i=!1;e=""==e?"en":e,a=void 0===a||""==a?"RETURN_IN_DEFAULT_LANGUAGE":a,l[0]=[],l[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",e),l[0].end=WPGlobusCoreData.locale_tag_end,l[1]=[],l[1].start="\x3c!--:"+e+"--\x3e",l[1].end="\x3c!--:--\x3e",l[2]=[],l[2].start="[:"+e+"]",l[2].end="[:";for(var u=0;u<3;u++)if(!1!==(o=s.strpos(t,l[u].start))){o+=l[u].start.length,t=!1===(n=s.strpos(t,l[u].end,o))?t.substr(o):t.substr(o,n-o),i=!0;break}return i||("RETURN_EMPTY"==a?e==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):e==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=s.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,e){return WPGlobusCoreData.locale_tag_start.replace("%s",e)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(a){var o,n={};return l.each(WPGlobusCoreData.enabled_languages,function(t,e){o=e==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[e]=s.TextFilter(a,e,o)}),n},getString:function(t,e,a){if(void 0===t)return t;void 0===e&&(e=""),void 0===a&&(a=WPGlobusCoreData.language),(t=s.getTranslations(t))[a]=e;var o="";return l.each(t,function(t,e){""!=e&&t!=WPGlobusCoreData.default_language&&(o+=s.addLocaleMarks(e,t))}),o=""!=t[WPGlobusCoreData.default_language]?""==o?t[WPGlobusCoreData.default_language]:s.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o:o}}}(jQuery),jQuery(document).ready(function(n){"use strict";var l;"undefined"!=typeof WPGlobusAdmin&&(l={languageSelectorBoxDelta:0,locationPathname:"/wp-admin/post.php",init:function(){"taxonomy-edit"===WPGlobusAdmin.page?l.taxonomyEdit():l.start()},_info:function(){var t=void 0;0<n("#language").length&&(t=n("#language").val()),console.log("Current language from hidden (#language) : ",t),t=void 0,0<n("#wpglobus-language").length&&(t=n("#wpglobus-language").val()),console.log("Current language from hidden (#wpglobus-language) : ",t),t=void 0,0<n('input[name="wpglobus-language"]').length&&(t=n('input[name="wpglobus-language"]').val()),console.log('Current language from hidden (input[name="wpglobus-language"]) : ',t),t=void 0,0<n('input[name="wpglobus_language"]').length&&(t=n('input[name="wpglobus_language"]').val()),console.log('Current language from hidden (input[name="wpglobus_language"]) : ',t),console.log("Builder : ",WPGlobusAdmin.builder);t=n("#content").val();""==t?console.log("Editor content (#content) : (empty)"):console.log(t)},checkCookie:function(){if(-1!=window.location.search.indexOf("language="))return!1;if("post.php"==WPGlobusAdmin.page&&(null!==(e=wpCookies.get(WPGlobusAdmin.builder.languageCookie))&&history.pushState)){var t=(e=e.split("+"))[0];if(void 0!==e[1]&&e[1]+0==WPGlobusAdmin.$_get.post){var e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search+"&language="+t;return window.history.pushState({path:e},"",e),t}}return!1},setCookie:function(){var t=l.checkCookie();t||void 0===(t=WPGlobusAdmin.$_get.language)&&(t=WPGlobusAdmin.data.default_language),wpCookies.set(WPGlobusAdmin.builder.languageCookie,t+"+"+WPGlobusAdmin.$_get.post,31536e3,l.locationPathname)},setLocationSearch:function(){var t;history.pushState&&-1==window.location.search.indexOf("language=")&&WPGlobusAdmin.data.default_language!=WPGlobusAdmin.currentTab&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search+"&language="+WPGlobusAdmin.currentTab,window.history.pushState({path:t},"",t))},taxonomyEdit:function(){n(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),n(".wrap").tabs(),n(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label"),WPGlobusAdmin.currentTab!==WPGlobusAdmin.data.default_language&&(n(".wpglobus-tax-edit-tab").removeClass("ui-tabs-active ui-state-active"),n("#wpglobus-link-tab-"+WPGlobusAdmin.currentTab).addClass("ui-tabs-active ui-state-active")),n(document).on("click",".wpglobus-tax-edit-tab a",function(t){t.preventDefault();t=n(this).data("href");location.href=t}),l.setMultilingualFields(),n(document).on("tinymce-editor-init",function(t,e){n("#"+e.getContainer().id).find("iframe").addClass(WPGlobusAdmin.builder.translatableClass).css({width:""})})},start:function(){l.setLocationSearch();var a="#postdivrich",o=!0,t="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(a="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),n(t).prepend(n(".wpglobus-post-body-tabs-list")),n.each(WPGlobusAdmin.tabs,function(t,e){"default"===e?(n(a).wrap('<div id="tab-default"></div>'),o&&n(n("#titlediv")).insertBefore(a)):(n(a+"-"+e).wrap('<div id="tab-'+e+'"></div>'),o&&n(n("#titlediv-"+e)).insertBefore(a+"-"+e))}),n(t).addClass("wpglobus-post-body-tabs"),l.setMultilingualFields(),"post.php"===WPGlobusAdmin.page&&this.postEdit()},postEdit:function(){n(document).triggerHandler("wpglobus_after_post_edit")},ajaxPrefilter:function(){n.ajaxPrefilter(function(t,e,a){})},setMultilingualFields:function(){n.each(WPGlobusAdmin.builder.multilingualFields,function(t,e){e=l.getFieldAttrs(e);"function"==typeof WPGlobusAdmin[e.fieldFunction]&&WPGlobusAdmin[e.fieldFunction](e)})},textField:function(t){var e=t.id,a="name",t=document.getElementsByName(e);if(0==t.length&&(a="id",t=document.getElementById(e)),null===t)return!0;("id"==a?n("#"+e):(t=(t=t[0].nodeName).toLowerCase(),n(t+'[name="'+e+'"]'))).addClass(WPGlobusAdmin.builder.translatableClass)},wysiwygField:function(a){n(document).on("wpglobus_wysiwyg_field",function(t,e){e.callback(a)})},fileField:function(t){},getFieldAttrs:function(t){var e={};return"string"==typeof t?e.id=t:"object"==typeof t&&(void 0!==t.id&&(e.id=t.id),void 0!==t.type&&(e.type=t.type,e.fieldFunction=t.type+"Field")),n.extend({},{id:!1,type:"text",fieldFunction:"textField"},e)}},(WPGlobusAdmin=n.extend({},WPGlobusAdmin,l)).init())});
1
+ var WPGlobusCore;!function(l){var s=WPGlobusCore={strpos:function(t,e,a){a=(t=""+t).indexOf(e,a);return 0<=a&&a},TextFilter:function(t,e,a){if(void 0===t||""===t)return t;var o,n,l=[],i=!1;e=""==e?"en":e,a=void 0===a||""==a?"RETURN_IN_DEFAULT_LANGUAGE":a,l[0]=[],l[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",e),l[0].end=WPGlobusCoreData.locale_tag_end,l[1]=[],l[1].start="\x3c!--:"+e+"--\x3e",l[1].end="\x3c!--:--\x3e",l[2]=[],l[2].start="[:"+e+"]",l[2].end="[:";for(var u=0;u<3;u++)if(!1!==(o=s.strpos(t,l[u].start))){o+=l[u].start.length,t=!1===(n=s.strpos(t,l[u].end,o))?t.substr(o):t.substr(o,n-o),i=!0;break}return i||("RETURN_EMPTY"==a?e==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):e==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=s.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,e){return WPGlobusCoreData.locale_tag_start.replace("%s",e)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(a){var o,n={};return l.each(WPGlobusCoreData.enabled_languages,function(t,e){o=e==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[e]=s.TextFilter(a,e,o)}),n},getString:function(t,e,a){if(void 0===t)return t;void 0===e&&(e=""),void 0===a&&(a=WPGlobusCoreData.language),(t=s.getTranslations(t))[a]=e;var o="";return l.each(t,function(t,e){""!=e&&t!=WPGlobusCoreData.default_language&&(o+=s.addLocaleMarks(e,t))}),o=""!=t[WPGlobusCoreData.default_language]?""==o?t[WPGlobusCoreData.default_language]:s.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o:o}}}(jQuery),jQuery(document).ready(function(n){"use strict";var l;"undefined"!=typeof WPGlobusAdmin&&(l={languageSelectorBoxDelta:0,locationPathname:"/wp-admin/post.php",init:function(){"taxonomy-edit"===WPGlobusAdmin.page?l.taxonomyEdit():l.start()},_info:function(){var t=void 0;0<n("#language").length&&(t=n("#language").val()),console.log("Current language from hidden (#language) : ",t),t=void 0,0<n("#wpglobus-language").length&&(t=n("#wpglobus-language").val()),console.log("Current language from hidden (#wpglobus-language) : ",t),t=void 0,0<n('input[name="wpglobus-language"]').length&&(t=n('input[name="wpglobus-language"]').val()),console.log('Current language from hidden (input[name="wpglobus-language"]) : ',t),t=void 0,0<n('input[name="wpglobus_language"]').length&&(t=n('input[name="wpglobus_language"]').val()),console.log('Current language from hidden (input[name="wpglobus_language"]) : ',t),console.log("Builder : ",WPGlobusAdmin.builder);t=n("#content").val();""==t?console.log("Editor content (#content) : (empty)"):console.log(t)},checkCookie:function(){if(-1!=window.location.search.indexOf("language="))return!1;if("post.php"==WPGlobusAdmin.page&&(null!==(e=wpCookies.get(WPGlobusAdmin.builder.languageCookie))&&history.pushState)){var t=(e=e.split("+"))[0];if(void 0!==e[1]&&e[1]+0==WPGlobusAdmin.$_get.post){var e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search+"&language="+t;return window.history.pushState({path:e},"",e),t}}return!1},setCookie:function(){var t=l.checkCookie();t||void 0===(t=WPGlobusAdmin.$_get.language)&&(t=WPGlobusAdmin.data.default_language),wpCookies.set(WPGlobusAdmin.builder.languageCookie,t+"+"+WPGlobusAdmin.$_get.post,31536e3,l.locationPathname)},setLocationSearch:function(){var t;history.pushState&&-1==window.location.search.indexOf("language=")&&WPGlobusAdmin.data.default_language!=WPGlobusAdmin.currentTab&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search+"&language="+WPGlobusAdmin.currentTab,window.history.pushState({path:t},"",t))},taxonomyEdit:function(){n(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),n(".wrap").tabs(),n(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label"),WPGlobusAdmin.currentTab!==WPGlobusAdmin.data.default_language&&(n(".wpglobus-tax-edit-tab").removeClass("ui-tabs-active ui-state-active"),n("#wpglobus-link-tab-"+WPGlobusAdmin.currentTab).addClass("ui-tabs-active ui-state-active")),n(document).on("click",".wpglobus-tax-edit-tab a",function(t){t.preventDefault();t=n(this).data("href");location.href=t}),l.setMultilingualFields()},start:function(){l.setLocationSearch();var a="#postdivrich",o=!0,t="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(a="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),n(t).prepend(n(".wpglobus-post-body-tabs-list")),n.each(WPGlobusAdmin.tabs,function(t,e){"default"===e?(n(a).wrap('<div id="tab-default"></div>'),o&&n(n("#titlediv")).insertBefore(a)):(n(a+"-"+e).wrap('<div id="tab-'+e+'"></div>'),o&&n(n("#titlediv-"+e)).insertBefore(a+"-"+e))}),n(t).addClass("wpglobus-post-body-tabs"),l.setMultilingualFields(),"post.php"===WPGlobusAdmin.page&&this.postEdit()},postEdit:function(){n(document).triggerHandler("wpglobus_after_post_edit")},ajaxPrefilter:function(){n.ajaxPrefilter(function(t,e,a){})},setMultilingualFields:function(){n.each(WPGlobusAdmin.builder.multilingualFields,function(t,e){e=l.getFieldAttrs(e);"function"==typeof WPGlobusAdmin[e.fieldFunction]&&WPGlobusAdmin[e.fieldFunction](e)})},textField:function(t){var e=t.id,a="name",t=document.getElementsByName(e);if(0==t.length&&(a="id",t=document.getElementById(e)),null===t)return!0;("id"==a?n("#"+e):(t=(t=t[0].nodeName).toLowerCase(),n(t+'[name="'+e+'"]'))).addClass(WPGlobusAdmin.builder.translatableClass)},wysiwygField:function(a){n(document).on("wpglobus_wysiwyg_field",function(t,e){e.callback(a)})},fileField:function(t){},getFieldAttrs:function(t){var e={};return"string"==typeof t?e.id=t:"object"==typeof t&&(void 0!==t.id&&(e.id=t.id),void 0!==t.type&&(e.type=t.type,e.fieldFunction=t.type+"Field")),n.extend({},{id:!1,type:"text",fieldFunction:"textField"},e)}},(WPGlobusAdmin=n.extend({},WPGlobusAdmin,l)).init())});
includes/builders/yoast_seo/class-wpglobus-yoast_seo.php CHANGED
@@ -47,7 +47,15 @@ if ( ! class_exists( 'WPGlobus_Yoast_SEO' ) ) :
47
  $this->wpseo_taxonomy_option_name = 'wpseo_taxonomy_meta';
48
  }
49
 
50
- add_filter( "option_{$this->wpseo_taxonomy_option_name}", array( $this, 'filter__wpseo_taxonomy_meta' ), 5, 2 );
 
 
 
 
 
 
 
 
51
 
52
  /**
53
  * @see wordpress-seo\inc\class-wpseo-replace-vars.php
47
  $this->wpseo_taxonomy_option_name = 'wpseo_taxonomy_meta';
48
  }
49
 
50
+ if ( ! empty( $_POST['action'] ) && 'editedtag' === $_POST['action'] ) {
51
+ /**
52
+ * Don't filter the option when saving taxonomy meta.
53
+ * List of meta @see inside `filter__wpseo_taxonomy_meta` function.
54
+ * @since 2.7.13
55
+ */
56
+ } else {
57
+ add_filter( "option_{$this->wpseo_taxonomy_option_name}", array( $this, 'filter__wpseo_taxonomy_meta' ), 5, 2 );
58
+ }
59
 
60
  /**
61
  * @see wordpress-seo\inc\class-wpseo-replace-vars.php
includes/js/wpglobus-yoastseo-140.js CHANGED
@@ -100,6 +100,7 @@ jQuery(document).ready( function ($) {
100
  start: function() {
101
  api.accessExtra = api.parseBool(WPGlobusYoastSeo.access_extra);
102
  api.setMetaBoxTitle();
 
103
  if ( ! api.isDefaultLanguage() ) {
104
  if ( 'inactive' == api.moduleState() || ! api.moduleState() ) {
105
  api.setKeywordFieldSuggest();
@@ -261,6 +262,18 @@ jQuery(document).ready( function ($) {
261
  var content = box.text();
262
  box.text(content+' ('+WPGlobusCoreData.en_language_name[ WPGlobusYoastSeo.language ]+')');
263
  }
 
 
 
 
 
 
 
 
 
 
 
 
264
  }
265
  }
266
  WPGlobusYoastSeo = $.extend({}, WPGlobusYoastSeo, api);
100
  start: function() {
101
  api.accessExtra = api.parseBool(WPGlobusYoastSeo.access_extra);
102
  api.setMetaBoxTitle();
103
+ api.initEditors();
104
  if ( ! api.isDefaultLanguage() ) {
105
  if ( 'inactive' == api.moduleState() || ! api.moduleState() ) {
106
  api.setKeywordFieldSuggest();
262
  var content = box.text();
263
  box.text(content+' ('+WPGlobusCoreData.en_language_name[ WPGlobusYoastSeo.language ]+')');
264
  }
265
+ },
266
+ initEditors: function() {
267
+ if ('term.php' == WPGlobusYoastSeo.pagenow) {
268
+ /**
269
+ * Init Yoast tinymce editor for description.
270
+ */
271
+ $(document).on( 'tinymce-editor-init', function( event, editor ) {
272
+ if ( 'description' == editor.id ) {
273
+ $( '#' + editor.getContainer().id ).find('iframe').addClass(WPGlobusAdmin.builder.translatableClass).css({'width':''});
274
+ }
275
+ });
276
+ }
277
  }
278
  }
279
  WPGlobusYoastSeo = $.extend({}, WPGlobusYoastSeo, api);
includes/js/wpglobus-yoastseo-140.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(i){"use strict";var a;"undefined"!=typeof WPGlobusCoreData&&"undefined"!=typeof WPGlobusVendor&&(a={initSeoAnalysis:!1,initReadability:!1,accessExtra:!1,parseBool:function(e){return!/^(false|0)$/i.test(e)&&!!e},moduleState:function(){return!!a.accessExtra||("string"==typeof WPGlobusYoastSeo.plus_module&&""!=WPGlobusYoastSeo.plus_module?WPGlobusYoastSeo.plus_module:a.parseBool(WPGlobusYoastSeo.plus_access))},isPremium:function(){return WPGlobusVendor.vendor.WPSEO_PREMIUM},isDefaultLanguage:function(){return a.parseBool(WPGlobusYoastSeo.is_default_language)},isBuilderPage:function(){return a.parseBool(WPGlobusYoastSeo.builder_page)},isBlockEditor:function(){return!(!a.isBuilderPage()||"gutenberg"!==WPGlobusYoastSeo.builder_id)},getSuggest:function(e,t){var o="",s="wpglobus-suggest";if(t=t||{},void 0===e)return o;"inactive"===a.moduleState()?"keyword"==e?o=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_inactive:"analysis"==e?o=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_inactive:"readability"==e?o=WPGlobusVendor.i18n.yoastseo_plus_readability_inactive:"social"==e&&(o=WPGlobusVendor.i18n.yoastseo_plus_social_inactive):"boolean"!=typeof a.moduleState()||a.moduleState()||("keyword"==e?o=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_access:"analysis"==e?o=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_access:"readability"==e?o=WPGlobusVendor.i18n.yoastseo_plus_readability_access:"social"==e&&(o=WPGlobusVendor.i18n.yoastseo_plus_social_access)),s+=" wpglobus-suggest-"+e;e="";if(void 0!==t.id){if(0<i("#"+t.id).length)return!1;e='id="'+t.id+'"'}return"<div "+e+' class="'+s+'" style="font-weight:bold;border:1px solid rgb(221, 221, 221);padding:20px 10px;">'+o+"</div>"},init:function(){a.isBuilderPage()&&a.start()},start:function(){a.accessExtra=a.parseBool(WPGlobusYoastSeo.access_extra),a.setMetaBoxTitle(),a.isDefaultLanguage()||"inactive"!=a.moduleState()&&a.moduleState()||(a.setKeywordFieldSuggest(),a.setSeoAnalysisSuggest(),a.setReadabilitySuggest(),a.setSocialSuggest(),a.attachListeners())},setSocialSuggest:function(){setTimeout(function(){var e=i("#wpseo-section-social");1==e.length&&e.empty().append(a.getSuggest("social",{id:"wpglobus-suggest-social-metabox"}))},500),a.isBlockEditor()&&new MutationObserver(function(e){e.forEach(function(e){e=i(e.addedNodes).find("div.yoast-modal-content");if(1==e.length){if(0<e.find("#yoast-snippet-preview-container").length)return!0;e.find("div").each(function(){var e,t=i(this),o=t.attr("class")||"";-1!==o.indexOf("SocialMetadataPreviewForm__")&&((e=a.getSuggest("social",{id:"wpglobus-suggest-social-modal"}))&&t.after(e),t.empty()),-1!==o.indexOf("shared__FormSection")&&t.empty()})}})}).observe(i("body.block-editor-page")[0],{childList:!0,subtree:!0})},setKeywordFieldSuggest:function(){a.isBlockEditor()?setTimeout(function(){var e=i("#focus-keyword-input-sidebar").parent("div");1==e.length&&e.empty().append(a.getSuggest("keyword")),1==(e=i("#focus-keyword-input-metabox").parent("div")).length&&e.empty().append(a.getSuggest("keyword"))},2e3):setTimeout(function(){var e=i("#focus-keyword-input-metabox").parent("div");1==e.length&&e.empty().append(a.getSuggest("keyword"))},2e3)},setReadabilitySuggest:function(){var e=i(".yoast-aria-tabs li").eq(1);i(document).on("click",e,function(e){a.initReadability||setTimeout(function(){i("#wpseo-meta-section-readability div").each(function(e,t){t=i(t);if(-1!==t.attr("class").indexOf("ContentAnalysis__ContentAnalysisContainer"))return t.empty().append(a.getSuggest("readability")),!1}),a.initReadability=!0},100)})},setSeoAnalysisSuggest:function(){var t;setTimeout(function(){var e=i("#yoast-seo-analysis-collapsible-metabox").parents("div");void 0!==e[0]&&(t=e[0])},500),i(document).on("click",t,function(e){setTimeout(function(){var o=!1;i("#wpseo-metabox-root span").each(function(e,t){t=i(t).attr("class");if(void 0===t)return!0;if(-1!==t.indexOf("SeoAnalysis__")){t=t.split(" ")[0];return o=i("."+t).next(),!1}}),o&&o.empty().append(a.getSuggest("analysis"))},300)})},attachListeners:function(){var e;a.isBlockEditor()&&(i(document).on("click",".yoast.components-panel__body",function(e){setTimeout(function(){i("div").each(function(e,t){var o=i(t).attr("class");void 0!==o&&-1!=o.indexOf("ContentAnalysis__ContentAnalysisContainer")&&i(t).empty().append(a.getSuggest("analysis"))})},200)}),e=document.querySelector('[aria-label="Yoast SEO"]'),i(document).on("click",e,function(e){setTimeout(function(){var e=i("#focus-keyword-input-sidebar").parent("div");1==e.length&&e.empty().append(a.getSuggest("keyword"))},100)}))},setMetaBoxTitle:function(){var e,t=i("#wpseo_meta .hndle");1!=t.length&&1!=(t=i("#wpseo_meta > h2 > span")).length||(e=t.text(),t.text(e+" ("+WPGlobusCoreData.en_language_name[WPGlobusYoastSeo.language]+")"))}},WPGlobusYoastSeo=i.extend({},WPGlobusYoastSeo,a),WPGlobusYoastSeo.init())});
1
+ jQuery(document).ready(function(i){"use strict";var n;"undefined"!=typeof WPGlobusCoreData&&"undefined"!=typeof WPGlobusVendor&&(n={initSeoAnalysis:!1,initReadability:!1,accessExtra:!1,parseBool:function(e){return!/^(false|0)$/i.test(e)&&!!e},moduleState:function(){return!!n.accessExtra||("string"==typeof WPGlobusYoastSeo.plus_module&&""!=WPGlobusYoastSeo.plus_module?WPGlobusYoastSeo.plus_module:n.parseBool(WPGlobusYoastSeo.plus_access))},isPremium:function(){return WPGlobusVendor.vendor.WPSEO_PREMIUM},isDefaultLanguage:function(){return n.parseBool(WPGlobusYoastSeo.is_default_language)},isBuilderPage:function(){return n.parseBool(WPGlobusYoastSeo.builder_page)},isBlockEditor:function(){return!(!n.isBuilderPage()||"gutenberg"!==WPGlobusYoastSeo.builder_id)},getSuggest:function(e,t){var o="",s="wpglobus-suggest";if(t=t||{},void 0===e)return o;"inactive"===n.moduleState()?"keyword"==e?o=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_inactive:"analysis"==e?o=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_inactive:"readability"==e?o=WPGlobusVendor.i18n.yoastseo_plus_readability_inactive:"social"==e&&(o=WPGlobusVendor.i18n.yoastseo_plus_social_inactive):"boolean"!=typeof n.moduleState()||n.moduleState()||("keyword"==e?o=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_access:"analysis"==e?o=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_access:"readability"==e?o=WPGlobusVendor.i18n.yoastseo_plus_readability_access:"social"==e&&(o=WPGlobusVendor.i18n.yoastseo_plus_social_access)),s+=" wpglobus-suggest-"+e;e="";if(void 0!==t.id){if(0<i("#"+t.id).length)return!1;e='id="'+t.id+'"'}return"<div "+e+' class="'+s+'" style="font-weight:bold;border:1px solid rgb(221, 221, 221);padding:20px 10px;">'+o+"</div>"},init:function(){n.isBuilderPage()&&n.start()},start:function(){n.accessExtra=n.parseBool(WPGlobusYoastSeo.access_extra),n.setMetaBoxTitle(),n.initEditors(),n.isDefaultLanguage()||"inactive"!=n.moduleState()&&n.moduleState()||(n.setKeywordFieldSuggest(),n.setSeoAnalysisSuggest(),n.setReadabilitySuggest(),n.setSocialSuggest(),n.attachListeners())},setSocialSuggest:function(){setTimeout(function(){var e=i("#wpseo-section-social");1==e.length&&e.empty().append(n.getSuggest("social",{id:"wpglobus-suggest-social-metabox"}))},500),n.isBlockEditor()&&new MutationObserver(function(e){e.forEach(function(e){e=i(e.addedNodes).find("div.yoast-modal-content");if(1==e.length){if(0<e.find("#yoast-snippet-preview-container").length)return!0;e.find("div").each(function(){var e,t=i(this),o=t.attr("class")||"";-1!==o.indexOf("SocialMetadataPreviewForm__")&&((e=n.getSuggest("social",{id:"wpglobus-suggest-social-modal"}))&&t.after(e),t.empty()),-1!==o.indexOf("shared__FormSection")&&t.empty()})}})}).observe(i("body.block-editor-page")[0],{childList:!0,subtree:!0})},setKeywordFieldSuggest:function(){n.isBlockEditor()?setTimeout(function(){var e=i("#focus-keyword-input-sidebar").parent("div");1==e.length&&e.empty().append(n.getSuggest("keyword")),1==(e=i("#focus-keyword-input-metabox").parent("div")).length&&e.empty().append(n.getSuggest("keyword"))},2e3):setTimeout(function(){var e=i("#focus-keyword-input-metabox").parent("div");1==e.length&&e.empty().append(n.getSuggest("keyword"))},2e3)},setReadabilitySuggest:function(){var e=i(".yoast-aria-tabs li").eq(1);i(document).on("click",e,function(e){n.initReadability||setTimeout(function(){i("#wpseo-meta-section-readability div").each(function(e,t){t=i(t);if(-1!==t.attr("class").indexOf("ContentAnalysis__ContentAnalysisContainer"))return t.empty().append(n.getSuggest("readability")),!1}),n.initReadability=!0},100)})},setSeoAnalysisSuggest:function(){var t;setTimeout(function(){var e=i("#yoast-seo-analysis-collapsible-metabox").parents("div");void 0!==e[0]&&(t=e[0])},500),i(document).on("click",t,function(e){setTimeout(function(){var o=!1;i("#wpseo-metabox-root span").each(function(e,t){t=i(t).attr("class");if(void 0===t)return!0;if(-1!==t.indexOf("SeoAnalysis__")){t=t.split(" ")[0];return o=i("."+t).next(),!1}}),o&&o.empty().append(n.getSuggest("analysis"))},300)})},attachListeners:function(){var e;n.isBlockEditor()&&(i(document).on("click",".yoast.components-panel__body",function(e){setTimeout(function(){i("div").each(function(e,t){var o=i(t).attr("class");void 0!==o&&-1!=o.indexOf("ContentAnalysis__ContentAnalysisContainer")&&i(t).empty().append(n.getSuggest("analysis"))})},200)}),e=document.querySelector('[aria-label="Yoast SEO"]'),i(document).on("click",e,function(e){setTimeout(function(){var e=i("#focus-keyword-input-sidebar").parent("div");1==e.length&&e.empty().append(n.getSuggest("keyword"))},100)}))},setMetaBoxTitle:function(){var e,t=i("#wpseo_meta .hndle");1!=t.length&&1!=(t=i("#wpseo_meta > h2 > span")).length||(e=t.text(),t.text(e+" ("+WPGlobusCoreData.en_language_name[WPGlobusYoastSeo.language]+")"))},initEditors:function(){"term.php"==WPGlobusYoastSeo.pagenow&&i(document).on("tinymce-editor-init",function(e,t){"description"==t.id&&i("#"+t.getContainer().id).find("iframe").addClass(WPGlobusAdmin.builder.translatableClass).css({width:""})})}},WPGlobusYoastSeo=i.extend({},WPGlobusYoastSeo,n),WPGlobusYoastSeo.init())});
includes/vendor/yoast-seo/class-wpglobus-yoastseo140.php CHANGED
@@ -1478,6 +1478,7 @@ class WPGlobus_YoastSEO {
1478
  array(
1479
  'version' => WPGLOBUS_VERSION,
1480
  'wpseo_version' => WPSEO_VERSION,
 
1481
  'src_version' => $src_version,
1482
  'builder_id' => WPGlobus::Config()->builder->get('id'),
1483
  'builder_page' => WPGlobus::Config()->builder->is_builder_page() ? 'true' : 'false',
1478
  array(
1479
  'version' => WPGLOBUS_VERSION,
1480
  'wpseo_version' => WPSEO_VERSION,
1481
+ 'pagenow' => $pagenow,
1482
  'src_version' => $src_version,
1483
  'builder_id' => WPGlobus::Config()->builder->get('id'),
1484
  'builder_page' => WPGlobus::Config()->builder->is_builder_page() ? 'true' : 'false',
readme.txt CHANGED
@@ -220,6 +220,10 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
220
 
221
  == Changelog ==
222
 
 
 
 
 
223
  = 2.7.12 =
224
  * (Core/JS) Force init `WPGlobusDialogApp` before using.
225
 
@@ -236,15 +240,6 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
236
  * (Core) Added language switcher to the admin bar for the posts in the Builder mode.
237
  * (POMO) Ukrainian translations completed (thanks go to Jack Willson)
238
 
239
- = 2.7.8 =
240
- * (Vendor/ACF) Fixed an issue with empty ACF fields.
241
-
242
- = Earlier versions and Add-ons =
243
-
244
- * [See the complete changelog here](https://github.com/WPGlobus/WPGlobus/blob/master/CHANGELOG.md)
245
- * [WPGlobus for WooCommerce](https://wpglobus.com/extensions/woocommerce-wpglobus/woocommerce-wpglobus-changelog/)
246
- * [WPGlobus Plus](https://wpglobus.com/extensions/wpglobus-plus/changelog/)
247
-
248
  == Demo Sites ==
249
 
250
  * [WPGlobus.com](https://wpglobus.com/):
220
 
221
  == Changelog ==
222
 
223
+ = 2.7.13 =
224
+ * (Vendor/Yoast) Init `TinyMCE` description editor on the `term.php` page.
225
+ * (Vendor/Yoast) Fixed incorrect rewriting taxonomy metas during the update process.
226
+
227
  = 2.7.12 =
228
  * (Core/JS) Force init `WPGlobusDialogApp` before using.
229
 
240
  * (Core) Added language switcher to the admin bar for the posts in the Builder mode.
241
  * (POMO) Ukrainian translations completed (thanks go to Jack Willson)
242
 
 
 
 
 
 
 
 
 
 
243
  == Demo Sites ==
244
 
245
  * [WPGlobus.com](https://wpglobus.com/):
wpglobus.php CHANGED
@@ -15,7 +15,7 @@
15
  * Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
16
  * Text Domain: wpglobus
17
  * Domain Path: /languages/
18
- * Version: 2.7.12
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
@@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
44
  exit;
45
  }
46
 
47
- define( 'WPGLOBUS_VERSION', '2.7.12' );
48
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
49
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
50
 
15
  * Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
16
  * Text Domain: wpglobus
17
  * Domain Path: /languages/
18
+ * Version: 2.7.13
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
44
  exit;
45
  }
46
 
47
+ define( 'WPGLOBUS_VERSION', '2.7.13' );
48
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
49
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
50