WPGlobus – Multilingual Everything! - Version 2.5.16

Version Description

  • (Core/Meta) Fixed PHP Warning: count(): Parameter must be an array or an object that implements Countable.
  • (Vendor/Yoast) Removed unneeded code. Small tweaks.
Download this release

Release Info

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

Code changes from version 2.5.15 to 2.5.16

includes/admin/meta/class-wpglobus-meta.php CHANGED
@@ -132,16 +132,19 @@ if ( ! class_exists( 'WPGlobus_Meta' ) ) :
132
  $id_column = 'meta_id';
133
 
134
  $raw_meta_key = $meta_key;
135
-
136
- // Compare existing value to new value if no prev value given and the key exists only once.
 
 
 
137
  if ( empty( $prev_value ) ) {
138
- $old_value = get_metadata( $meta_type, $object_id, $meta_key );
139
- if ( 1 === count( $old_value ) ) {
140
- if ( ! empty( $old_value[0] ) && $old_value[0] === $meta_value ) {
141
  return false;
142
  }
143
  }
144
- }
145
 
146
  $_meta_value = $meta_value;
147
  /**
@@ -279,7 +282,6 @@ if ( ! class_exists( 'WPGlobus_Meta' ) ) :
279
  wp_cache_delete( $object_id, $meta_type . '_meta' );
280
 
281
  return true;
282
-
283
  }
284
 
285
  /**
132
  $id_column = 'meta_id';
133
 
134
  $raw_meta_key = $meta_key;
135
+
136
+ /**
137
+ * Compare existing value to new value if no prev value given and the key exists only once.
138
+ * @since 2.5.16 Fixed PHP Warning: count(): Parameter must be an array or an object that implements Countable.
139
+ */
140
  if ( empty( $prev_value ) ) {
141
+ $old_value = get_metadata_raw( $meta_type, $object_id, $meta_key );
142
+ if ( is_countable( $old_value ) && count( $old_value ) === 1 ) {
143
+ if ( $old_value[0] === $meta_value ) {
144
  return false;
145
  }
146
  }
147
+ }
148
 
149
  $_meta_value = $meta_value;
150
  /**
282
  wp_cache_delete( $object_id, $meta_type . '_meta' );
283
 
284
  return true;
 
285
  }
286
 
287
  /**
includes/js/wpglobus-yoastseo-140.js CHANGED
@@ -3,19 +3,16 @@
3
  * Interface JS functions
4
  *
5
  * @since 2.4
 
6
  *
7
  * @package WPGlobus
8
  */
9
  /*jslint browser: true*/
10
- /*global jQuery, console, wpseoReplaceVarsL10n, WPGlobusVendor, WPGlobusCoreData*/
11
 
12
  jQuery(document).ready( function ($) {
13
  'use strict';
14
 
15
- if ( typeof wpseoReplaceVarsL10n === 'undefined' ) {
16
- return;
17
- }
18
-
19
  if ( typeof WPGlobusCoreData === 'undefined' ) {
20
  return;
21
  }
@@ -27,10 +24,14 @@ jQuery(document).ready( function ($) {
27
  var api = {
28
  initSeoAnalysis: false,
29
  initReadability: false,
 
30
  parseBool: function(b) {
31
  return !(/^(false|0)$/i).test(b) && !!b;
32
  },
33
  moduleState: function(){
 
 
 
34
  if ( 'string' === typeof WPGlobusYoastSeo.plus_module ) {
35
  if ( '' != WPGlobusYoastSeo.plus_module ) {
36
  return WPGlobusYoastSeo.plus_module;
@@ -59,6 +60,8 @@ jQuery(document).ready( function ($) {
59
  suggest = WPGlobusVendor.i18n.yoastseo_plus_page_analysis_inactive;
60
  } else if( 'readability' == type ) {
61
  suggest = WPGlobusVendor.i18n.yoastseo_plus_readability_inactive;
 
 
62
  }
63
  } else if( 'boolean' == typeof api.moduleState() && ! api.moduleState() ) {
64
  if ( 'keyword' == type ) {
@@ -67,9 +70,11 @@ jQuery(document).ready( function ($) {
67
  suggest = WPGlobusVendor.i18n.yoastseo_plus_page_analysis_access;
68
  } else if( 'readability' == type ) {
69
  suggest = WPGlobusVendor.i18n.yoastseo_plus_readability_access;
70
- }
 
 
71
  }
72
- suggest = '<div class="wpglobus-suggest" style="font-weight:bold;border:1px solid rgb(221, 221, 221);height:35px;width:90%;padding:8px 10px;">'+suggest+'</div>';
73
  return suggest;
74
  },
75
  init: function() {
@@ -78,16 +83,26 @@ jQuery(document).ready( function ($) {
78
  }
79
  },
80
  start: function() {
 
81
  api.setMetaBoxTitle();
82
  if ( ! api.isDefaultLanguage() ) {
83
  if ( 'inactive' == api.moduleState() || ! api.moduleState() ) {
84
- api.setKeywordField();
85
- api.setSeoAnalysis();
86
- api.setReadability();
 
87
  }
88
  }
89
  },
90
- setKeywordField: function() {
 
 
 
 
 
 
 
 
91
  setTimeout( function(){
92
  var box = $('#focus-keyword-input-metabox').parent('div');
93
  if ( box.length == 1 ) {
@@ -95,7 +110,7 @@ jQuery(document).ready( function ($) {
95
  }
96
  }, 2000);
97
  },
98
- setReadability: function() {
99
  var selector = $('.yoast-aria-tabs li').eq(1);
100
  $(document).on('click', selector, function(ev) {
101
  if ( ! api.initReadability ) {
@@ -112,7 +127,7 @@ jQuery(document).ready( function ($) {
112
  }
113
  });
114
  },
115
- setSeoAnalysis: function() {
116
  var container;
117
  setTimeout( function(){
118
  var containers = $('#yoast-seo-analysis-collapsible-metabox').parents('div');
@@ -124,9 +139,12 @@ jQuery(document).ready( function ($) {
124
  setTimeout( function(){
125
  var boxAnalysis = false;
126
  $('#wpseo-metabox-root span').each(function(i, elm){
127
- var $elm = $(elm);
128
- if ( -1 !== $elm.attr('class').indexOf('SeoAnalysis__') ) {
129
- var _class = $elm.attr('class').split(' ')[0];
 
 
 
130
  boxAnalysis = $('.'+_class).next();
131
  return false;
132
  }
3
  * Interface JS functions
4
  *
5
  * @since 2.4
6
+ * @since 2.5.16 Removed unneeded code. Small tweaks.
7
  *
8
  * @package WPGlobus
9
  */
10
  /*jslint browser: true*/
11
+ /*global jQuery, console, WPGlobusVendor, WPGlobusCoreData*/
12
 
13
  jQuery(document).ready( function ($) {
14
  'use strict';
15
 
 
 
 
 
16
  if ( typeof WPGlobusCoreData === 'undefined' ) {
17
  return;
18
  }
24
  var api = {
25
  initSeoAnalysis: false,
26
  initReadability: false,
27
+ accessExtra: false,
28
  parseBool: function(b) {
29
  return !(/^(false|0)$/i).test(b) && !!b;
30
  },
31
  moduleState: function(){
32
+ if ( api.accessExtra ) {
33
+ return true;
34
+ }
35
  if ( 'string' === typeof WPGlobusYoastSeo.plus_module ) {
36
  if ( '' != WPGlobusYoastSeo.plus_module ) {
37
  return WPGlobusYoastSeo.plus_module;
60
  suggest = WPGlobusVendor.i18n.yoastseo_plus_page_analysis_inactive;
61
  } else if( 'readability' == type ) {
62
  suggest = WPGlobusVendor.i18n.yoastseo_plus_readability_inactive;
63
+ } else if( 'social' == type ) {
64
+ suggest = WPGlobusVendor.i18n.yoastseo_plus_social_inactive;
65
  }
66
  } else if( 'boolean' == typeof api.moduleState() && ! api.moduleState() ) {
67
  if ( 'keyword' == type ) {
70
  suggest = WPGlobusVendor.i18n.yoastseo_plus_page_analysis_access;
71
  } else if( 'readability' == type ) {
72
  suggest = WPGlobusVendor.i18n.yoastseo_plus_readability_access;
73
+ } else if( 'social' == type ) {
74
+ suggest = WPGlobusVendor.i18n.yoastseo_plus_social_access;
75
+ }
76
  }
77
+ suggest = '<div class="wpglobus-suggest" style="font-weight:bold;border:1px solid rgb(221, 221, 221);padding:20px 10px;">'+suggest+'</div>';
78
  return suggest;
79
  },
80
  init: function() {
83
  }
84
  },
85
  start: function() {
86
+ api.accessExtra = api.parseBool(WPGlobusYoastSeo.access_extra);
87
  api.setMetaBoxTitle();
88
  if ( ! api.isDefaultLanguage() ) {
89
  if ( 'inactive' == api.moduleState() || ! api.moduleState() ) {
90
+ api.setKeywordFieldSuggest();
91
+ api.setSeoAnalysisSuggest();
92
+ api.setReadabilitySuggest();
93
+ // api.setSocialSuggest(); @since 2.5.16 @W.I.P
94
  }
95
  }
96
  },
97
+ setSocialSuggest: function() {
98
+ setTimeout( function(){
99
+ var $box = $('#wpseo-section-social');
100
+ if ( $box.length == 1 ) {
101
+ $box.empty().append( api.getSuggest('social') );
102
+ }
103
+ }, 500);
104
+ },
105
+ setKeywordFieldSuggest: function() {
106
  setTimeout( function(){
107
  var box = $('#focus-keyword-input-metabox').parent('div');
108
  if ( box.length == 1 ) {
110
  }
111
  }, 2000);
112
  },
113
+ setReadabilitySuggest: function() {
114
  var selector = $('.yoast-aria-tabs li').eq(1);
115
  $(document).on('click', selector, function(ev) {
116
  if ( ! api.initReadability ) {
127
  }
128
  });
129
  },
130
+ setSeoAnalysisSuggest: function() {
131
  var container;
132
  setTimeout( function(){
133
  var containers = $('#yoast-seo-analysis-collapsible-metabox').parents('div');
139
  setTimeout( function(){
140
  var boxAnalysis = false;
141
  $('#wpseo-metabox-root span').each(function(i, elm){
142
+ var classes = $(elm).attr('class');
143
+ if ( 'undefined' === typeof classes ) {
144
+ return true;
145
+ }
146
+ if ( -1 !== classes.indexOf('SeoAnalysis__') ) {
147
+ var _class = classes.split(' ')[0];
148
  boxAnalysis = $('.'+_class).next();
149
  return false;
150
  }
includes/js/wpglobus-yoastseo-140.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(n){"use strict";var a;"undefined"!=typeof wpseoReplaceVarsL10n&&"undefined"!=typeof WPGlobusCoreData&&"undefined"!=typeof WPGlobusVendor&&(a={initSeoAnalysis:!1,initReadability:!1,parseBool:function(e){return!/^(false|0)$/i.test(e)&&!!e},moduleState:function(){return"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)},getSuggest:function(e){var t="";return void 0===e?t:("inactive"===a.moduleState()?"keyword"==e?t=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_inactive:"analysis"==e?t=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_inactive:"readability"==e&&(t=WPGlobusVendor.i18n.yoastseo_plus_readability_inactive):"boolean"!=typeof a.moduleState()||a.moduleState()||("keyword"==e?t=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_access:"analysis"==e?t=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_access:"readability"==e&&(t=WPGlobusVendor.i18n.yoastseo_plus_readability_access)),t='<div class="wpglobus-suggest" style="font-weight:bold;border:1px solid rgb(221, 221, 221);height:35px;width:90%;padding:8px 10px;">'+t+"</div>")},init:function(){a.isBuilderPage()&&a.start()},start:function(){a.setMetaBoxTitle(),a.isDefaultLanguage()||"inactive"!=a.moduleState()&&a.moduleState()||(a.setKeywordField(),a.setSeoAnalysis(),a.setReadability())},setKeywordField:function(){setTimeout(function(){var e=n("#focus-keyword-input-metabox").parent("div");1==e.length&&e.empty().append(a.getSuggest("keyword"))},2e3)},setReadability:function(){var e=n(".yoast-aria-tabs li").eq(1);n(document).on("click",e,function(e){a.initReadability||setTimeout(function(){n("#wpseo-meta-section-readability div").each(function(e,t){var o=n(t);if(-1!==o.attr("class").indexOf("ContentAnalysis__ContentAnalysisContainer"))return o.empty().append(a.getSuggest("readability")),!1}),a.initReadability=!0},100)})},setSeoAnalysis:function(){var t;setTimeout(function(){var e=n("#yoast-seo-analysis-collapsible-metabox").parents("div");void 0!==e[0]&&(t=e[0])},500),n(document).on("click",t,function(e){setTimeout(function(){var s=!1;n("#wpseo-metabox-root span").each(function(e,t){var o=n(t);if(-1!==o.attr("class").indexOf("SeoAnalysis__")){var a=o.attr("class").split(" ")[0];return s=n("."+a).next(),!1}}),s&&s.empty().append(a.getSuggest("analysis"))},300)})},setMetaBoxTitle:function(){var e,t=n("#wpseo_meta .hndle");1!=t.length&&1!=(t=n("#wpseo_meta > h2 > span")).length||(e=t.text(),t.text(e+" ("+WPGlobusCoreData.en_language_name[WPGlobusYoastSeo.language]+")"))}},WPGlobusYoastSeo=n.extend({},WPGlobusYoastSeo,a),WPGlobusYoastSeo.init())});
1
+ jQuery(document).ready(function(i){"use strict";var o;"undefined"!=typeof WPGlobusCoreData&&"undefined"!=typeof WPGlobusVendor&&(o={initSeoAnalysis:!1,initReadability:!1,accessExtra:!1,parseBool:function(e){return!/^(false|0)$/i.test(e)&&!!e},moduleState:function(){return!!o.accessExtra||("string"==typeof WPGlobusYoastSeo.plus_module&&""!=WPGlobusYoastSeo.plus_module?WPGlobusYoastSeo.plus_module:o.parseBool(WPGlobusYoastSeo.plus_access))},isPremium:function(){return WPGlobusVendor.vendor.WPSEO_PREMIUM},isDefaultLanguage:function(){return o.parseBool(WPGlobusYoastSeo.is_default_language)},isBuilderPage:function(){return o.parseBool(WPGlobusYoastSeo.builder_page)},getSuggest:function(e){var t="";return void 0===e?t:("inactive"===o.moduleState()?"keyword"==e?t=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_inactive:"analysis"==e?t=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_inactive:"readability"==e?t=WPGlobusVendor.i18n.yoastseo_plus_readability_inactive:"social"==e&&(t=WPGlobusVendor.i18n.yoastseo_plus_social_inactive):"boolean"!=typeof o.moduleState()||o.moduleState()||("keyword"==e?t=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_access:"analysis"==e?t=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_access:"readability"==e?t=WPGlobusVendor.i18n.yoastseo_plus_readability_access:"social"==e&&(t=WPGlobusVendor.i18n.yoastseo_plus_social_access)),t='<div class="wpglobus-suggest" style="font-weight:bold;border:1px solid rgb(221, 221, 221);padding:20px 10px;">'+t+"</div>")},init:function(){o.isBuilderPage()&&o.start()},start:function(){o.accessExtra=o.parseBool(WPGlobusYoastSeo.access_extra),o.setMetaBoxTitle(),o.isDefaultLanguage()||"inactive"!=o.moduleState()&&o.moduleState()||(o.setKeywordFieldSuggest(),o.setSeoAnalysisSuggest(),o.setReadabilitySuggest())},setSocialSuggest:function(){setTimeout(function(){var e=i("#wpseo-section-social");1==e.length&&e.empty().append(o.getSuggest("social"))},500)},setKeywordFieldSuggest:function(){setTimeout(function(){var e=i("#focus-keyword-input-metabox").parent("div");1==e.length&&e.empty().append(o.getSuggest("keyword"))},2e3)},setReadabilitySuggest:function(){var e=i(".yoast-aria-tabs li").eq(1);i(document).on("click",e,function(e){o.initReadability||setTimeout(function(){i("#wpseo-meta-section-readability div").each(function(e,t){var s=i(t);if(-1!==s.attr("class").indexOf("ContentAnalysis__ContentAnalysisContainer"))return s.empty().append(o.getSuggest("readability")),!1}),o.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 a=!1;i("#wpseo-metabox-root span").each(function(e,t){var s=i(t).attr("class");if(void 0===s)return!0;if(-1!==s.indexOf("SeoAnalysis__")){var o=s.split(" ")[0];return a=i("."+o).next(),!1}}),a&&a.empty().append(o.getSuggest("analysis"))},300)})},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,o),WPGlobusYoastSeo.init())});
includes/vendor/yoast-seo/class-wpglobus-yoastseo140.php CHANGED
@@ -984,6 +984,9 @@ class WPGlobus_YoastSEO {
984
 
985
  $yoastseo_plus_meta_keywords_access = '';
986
  $yoastseo_plus_meta_keywords_inactive = '';
 
 
 
987
 
988
  if ( WPGlobus::Config()->builder->is_builder_page() ) {
989
 
@@ -1001,40 +1004,52 @@ class WPGlobus_YoastSEO {
1001
  }
1002
 
1003
  $yoastseo_plus_readability_access = sprintf(
1004
- __( 'Please see %1s to get access to Analysis results in %2s with YoastSEO.', '' ),
1005
  '<a href="https://wpglobus.com/product/wpglobus-plus/#yoastseo" target="_blank">WPGlobus Plus</a>',
1006
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1007
  );
1008
  $yoastseo_plus_readability_inactive = sprintf(
1009
- __( 'Please activate %1sYoast SEO Plus%2s module to get access to Analysis results in %3s with YoastSEO.', '' ),
1010
  '<a href="'.$_url.'">',
1011
  '</a>',
1012
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1013
  );
1014
 
1015
  $yoastseo_plus_page_analysis_access = sprintf(
1016
- __( 'Please see %1s to get access to Analysis results in %2s with YoastSEO.', '' ),
1017
  '<a href="https://wpglobus.com/product/wpglobus-plus/#yoastseo" target="_blank">WPGlobus Plus</a>',
1018
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1019
  );
1020
  $yoastseo_plus_page_analysis_inactive = sprintf(
1021
- __( 'Please activate %1sYoast SEO Plus%2s module to get access to Analysis results in %3s with YoastSEO.', '' ),
1022
  '<a href="'.$_url.'">',
1023
  '</a>',
1024
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1025
  );
1026
 
1027
  $yoastseo_plus_meta_keywords_access = sprintf(
1028
- __( 'Please see %1s to get access to Focus keyphrase in %2s with YoastSEO.', '' ),
1029
  '<a href="https://wpglobus.com/product/wpglobus-plus/#yoastseo" target="_blank">WPGlobus Plus</a>',
1030
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1031
  );
1032
  $yoastseo_plus_meta_keywords_inactive = sprintf(
1033
- __( 'Please activate %1sYoast SEO Plus%2s module to get access to Focus keyphrase in %1s with YoastSEO.', '' ),
 
 
 
 
 
 
 
 
 
 
 
 
1034
  '<a href="'.$_url.'">',
1035
  '</a>',
1036
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1037
- );
1038
  }
1039
 
1040
  $i18n = array(
@@ -1043,7 +1058,9 @@ class WPGlobus_YoastSEO {
1043
  'yoastseo_plus_page_analysis_access' => $yoastseo_plus_page_analysis_access,
1044
  'yoastseo_plus_page_analysis_inactive' => $yoastseo_plus_page_analysis_inactive,
1045
  'yoastseo_plus_meta_keywords_access' => $yoastseo_plus_meta_keywords_access,
1046
- 'yoastseo_plus_meta_keywords_inactive' => $yoastseo_plus_meta_keywords_inactive
 
 
1047
  );
1048
 
1049
  $src_version = false;
@@ -1114,6 +1131,7 @@ class WPGlobus_YoastSEO {
1114
  'is_default_language' => WPGlobus::Config()->builder->is_default_language() ? true : false,
1115
  'src_version_premium' => $src_version_premium,
1116
  'plus_module' => self::$plus_module,
 
1117
  )
1118
  );
1119
 
@@ -1129,9 +1147,7 @@ class WPGlobus_YoastSEO {
1129
  );
1130
 
1131
  endif;
1132
-
1133
  }
1134
-
1135
  }
1136
 
1137
  /**
@@ -1210,7 +1226,7 @@ class WPGlobus_YoastSEO {
1210
  *
1211
  * @since 2.4.14
1212
  * @since 2.4.15 Localize description.
1213
- * @since 2.5.1 Added support of taxonomies.
1214
  *
1215
  * @scope front
1216
  * @param array $graph_piece Array of graph piece.
@@ -1247,6 +1263,6 @@ class WPGlobus_YoastSEO {
1247
  return $graph_piece;
1248
  }
1249
 
1250
- } // class
1251
 
1252
  # --- EOF
984
 
985
  $yoastseo_plus_meta_keywords_access = '';
986
  $yoastseo_plus_meta_keywords_inactive = '';
987
+
988
+ $yoastseo_plus_social_access = '';
989
+ $yoastseo_plus_social_inactive = '';
990
 
991
  if ( WPGlobus::Config()->builder->is_builder_page() ) {
992
 
1004
  }
1005
 
1006
  $yoastseo_plus_readability_access = sprintf(
1007
+ esc_html__( 'Please see %1s to get access to Analysis results in %2s with YoastSEO.', '' ),
1008
  '<a href="https://wpglobus.com/product/wpglobus-plus/#yoastseo" target="_blank">WPGlobus Plus</a>',
1009
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1010
  );
1011
  $yoastseo_plus_readability_inactive = sprintf(
1012
+ esc_html__( 'Please activate %1sYoast SEO Plus%2s module to get access to Analysis results in %3s with YoastSEO.', '' ),
1013
  '<a href="'.$_url.'">',
1014
  '</a>',
1015
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1016
  );
1017
 
1018
  $yoastseo_plus_page_analysis_access = sprintf(
1019
+ esc_html__( 'Please see %1s to get access to Analysis results in %2s with YoastSEO.', '' ),
1020
  '<a href="https://wpglobus.com/product/wpglobus-plus/#yoastseo" target="_blank">WPGlobus Plus</a>',
1021
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1022
  );
1023
  $yoastseo_plus_page_analysis_inactive = sprintf(
1024
+ esc_html__( 'Please activate %1sYoast SEO Plus%2s module to get access to Analysis results in %3s with YoastSEO.', '' ),
1025
  '<a href="'.$_url.'">',
1026
  '</a>',
1027
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1028
  );
1029
 
1030
  $yoastseo_plus_meta_keywords_access = sprintf(
1031
+ esc_html__( 'Please see %1s to get access to Focus keyphrase in %2s with YoastSEO.', '' ),
1032
  '<a href="https://wpglobus.com/product/wpglobus-plus/#yoastseo" target="_blank">WPGlobus Plus</a>',
1033
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1034
  );
1035
  $yoastseo_plus_meta_keywords_inactive = sprintf(
1036
+ esc_html__( 'Please activate %1sYoast SEO Plus%2s module to get access to Focus keyphrase in %1s with YoastSEO.', '' ),
1037
+ '<a href="'.$_url.'">',
1038
+ '</a>',
1039
+ WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1040
+ );
1041
+
1042
+ $yoastseo_plus_social_access = sprintf(
1043
+ esc_html__( 'Please see %1s to get access to Social Tab content in %2s with YoastSEO.', '' ),
1044
+ '<a href="https://wpglobus.com/product/wpglobus-plus/#yoastseo" target="_blank">WPGlobus Plus</a>',
1045
+ WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1046
+ );
1047
+ $yoastseo_plus_social_inactive = sprintf(
1048
+ esc_html__( 'Please activate %1sYoast SEO Plus%2s module to get access to Social Tab content in %1s with YoastSEO.', '' ),
1049
  '<a href="'.$_url.'">',
1050
  '</a>',
1051
  WPGlobus::Config()->en_language_name[ WPGlobus::Config()->builder->get_language() ]
1052
+ );
1053
  }
1054
 
1055
  $i18n = array(
1058
  'yoastseo_plus_page_analysis_access' => $yoastseo_plus_page_analysis_access,
1059
  'yoastseo_plus_page_analysis_inactive' => $yoastseo_plus_page_analysis_inactive,
1060
  'yoastseo_plus_meta_keywords_access' => $yoastseo_plus_meta_keywords_access,
1061
+ 'yoastseo_plus_meta_keywords_inactive' => $yoastseo_plus_meta_keywords_inactive,
1062
+ 'yoastseo_plus_social_access' => $yoastseo_plus_social_access,
1063
+ 'yoastseo_plus_social_inactive' => $yoastseo_plus_social_inactive
1064
  );
1065
 
1066
  $src_version = false;
1131
  'is_default_language' => WPGlobus::Config()->builder->is_default_language() ? true : false,
1132
  'src_version_premium' => $src_version_premium,
1133
  'plus_module' => self::$plus_module,
1134
+ 'access_extra' => ( defined( 'WPGLOBUS_YOAST_SEO_ACCESS_EXTRA' ) && WPGLOBUS_YOAST_SEO_ACCESS_EXTRA ) ? 'true' : 'false'
1135
  )
1136
  );
1137
 
1147
  );
1148
 
1149
  endif;
 
1150
  }
 
1151
  }
1152
 
1153
  /**
1226
  *
1227
  * @since 2.4.14
1228
  * @since 2.4.15 Localize description.
1229
+ * @since 2.5.1 Added support of taxonomies.
1230
  *
1231
  * @scope front
1232
  * @param array $graph_piece Array of graph piece.
1263
  return $graph_piece;
1264
  }
1265
 
1266
+ } // class WPGlobus_YoastSEO.
1267
 
1268
  # --- EOF
languages/wpglobus.pot CHANGED
@@ -1,8 +1,8 @@
1
- # Copyright (C) 2020 WPGlobus 2.5.15
2
- # This file is distributed under the same license as the WPGlobus 2.5.15 package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPGlobus 2.5.15\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
1
+ # Copyright (C) 2020 WPGlobus 2.5.16
2
+ # This file is distributed under the same license as the WPGlobus 2.5.16 package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPGlobus 2.5.16\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -217,6 +217,11 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
217
 
218
  == Changelog ==
219
 
 
 
 
 
 
220
  = 2.5.15 =
221
 
222
  * (Core/Filters) Don't apply multilingual filter on disabled post types (issue #90).
@@ -228,12 +233,6 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
228
  * (Builders/Gutenberg) Language switcher CSS tweaks to prevent showing oversize flag images in some themes.
229
  * (Core/Post Types) Added post types of the `Gutenberg` plugin to the hidden types array.
230
 
231
- = 2.5.13 =
232
-
233
- * (Core/Post Types) Added post types of the `Schema & Structured Data for WP & AMP` plugin to the hidden types array.
234
- * (Core/Options) Added `anchor` attribute to the render `WPGlobusOptions_wpglobus_dropdown` class.
235
- * (Core/Options) Minor code tweaks.
236
-
237
  = Earlier versions and Add-ons =
238
 
239
  * [See the complete changelog here](https://github.com/WPGlobus/WPGlobus/blob/master/CHANGELOG.md)
217
 
218
  == Changelog ==
219
 
220
+ = 2.5.16 =
221
+
222
+ * (Core/Meta) Fixed PHP Warning: count(): Parameter must be an array or an object that implements Countable.
223
+ * (Vendor/Yoast) Removed unneeded code. Small tweaks.
224
+
225
  = 2.5.15 =
226
 
227
  * (Core/Filters) Don't apply multilingual filter on disabled post types (issue #90).
233
  * (Builders/Gutenberg) Language switcher CSS tweaks to prevent showing oversize flag images in some themes.
234
  * (Core/Post Types) Added post types of the `Gutenberg` plugin to the hidden types array.
235
 
 
 
 
 
 
 
236
  = Earlier versions and Add-ons =
237
 
238
  * [See the complete changelog here](https://github.com/WPGlobus/WPGlobus/blob/master/CHANGELOG.md)
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.5.15
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
42
  exit;
43
  }
44
 
45
- define( 'WPGLOBUS_VERSION', '2.5.15' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
48
 
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.5.16
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
42
  exit;
43
  }
44
 
45
+ define( 'WPGLOBUS_VERSION', '2.5.16' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
48