WP SEO Structured Data Schema - Version 2.6.15

Version Description

  • PHP Bug Fix

=

Download this release

Release Info

Developer kcseopro
Plugin Icon 128x128 WP SEO Structured Data Schema
Version 2.6.15
Comparing to
See all releases

Code changes from version 2.6.14 to 2.6.15

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: seo, schema, structured data, rich snippets, microdata, json-ld, search engine optimization, local seo, google, sitelinks, schema.org, microformat, serp
5
  Requires at least: 4.5
6
  Tested up to: 5.5
7
- Stable tag: 2.6.14
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -114,6 +114,9 @@ You'll find the [FAQ on WPSEMPlugins.com](https://wpsemplugins.com/wordpress-seo
114
 
115
  == Changelog ==
116
 
 
 
 
117
  == 2.6.14 =
118
  * Fix video embed URL issue
119
 
4
  Tags: seo, schema, structured data, rich snippets, microdata, json-ld, search engine optimization, local seo, google, sitelinks, schema.org, microformat, serp
5
  Requires at least: 4.5
6
  Tested up to: 5.5
7
+ Stable tag: 2.6.15
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
114
 
115
  == Changelog ==
116
 
117
+ == 2.6.15 =
118
+ * PHP Bug Fix
119
+
120
  == 2.6.14 =
121
  * Fix video embed URL issue
122
 
languages/wp-seo-structured-data-schema.pot CHANGED
@@ -13,63 +13,63 @@ msgstr ""
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
 
16
- #: ../lib/classes/KcSeoHelper.php:220
17
  msgid "Pro Version Features"
18
  msgstr ""
19
 
20
- #: ../lib/classes/KcSeoHelper.php:222
21
  msgid "Includes Auto-fill function <---Popular"
22
  msgstr ""
23
 
24
- #: ../lib/classes/KcSeoHelper.php:223
25
  msgid "Supports Custom Post Types beyond default page and posts"
26
  msgstr ""
27
 
28
- #: ../lib/classes/KcSeoHelper.php:224
29
  msgid "Supports WordPress Multisite"
30
  msgstr ""
31
 
32
- #: ../lib/classes/KcSeoHelper.php:225
33
  msgid "Supports more schema types:"
34
  msgstr ""
35
 
36
- #: ../lib/classes/KcSeoHelper.php:227
37
  msgid "Books"
38
  msgstr ""
39
 
40
- #: ../lib/classes/KcSeoHelper.php:228
41
  msgid "Courses"
42
  msgstr ""
43
 
44
- #: ../lib/classes/KcSeoHelper.php:229
45
  msgid "Job Postings"
46
  msgstr ""
47
 
48
- #: ../lib/classes/KcSeoHelper.php:230
49
  msgid "Movies"
50
  msgstr ""
51
 
52
- #: ../lib/classes/KcSeoHelper.php:231, ../lib/functions/KcSeoOptions.php:988
53
  msgid "Music"
54
  msgstr ""
55
 
56
- #: ../lib/classes/KcSeoHelper.php:232, ../lib/functions/KcSeoOptions.php:992
57
  msgid "Recipe"
58
  msgstr ""
59
 
60
- #: ../lib/classes/KcSeoHelper.php:233
61
  msgid "TV Episode"
62
  msgstr ""
63
 
64
- #: ../lib/classes/KcSeoHelper.php:234, ../lib/functions/KcSeoOptions.php:1000
65
  msgid "QAPage"
66
  msgstr ""
67
 
68
- #: ../lib/classes/KcSeoHelper.php:235, ../lib/functions/KcSeoOptions.php:1004
69
  msgid "Item List"
70
  msgstr ""
71
 
72
- #: ../lib/classes/KcSeoHelper.php:241
73
  msgid "Get the Pro Version"
74
  msgstr ""
75
 
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
 
16
+ #: ../lib/classes/KcSeoHelper.php:471
17
  msgid "Pro Version Features"
18
  msgstr ""
19
 
20
+ #: ../lib/classes/KcSeoHelper.php:473
21
  msgid "Includes Auto-fill function <---Popular"
22
  msgstr ""
23
 
24
+ #: ../lib/classes/KcSeoHelper.php:474
25
  msgid "Supports Custom Post Types beyond default page and posts"
26
  msgstr ""
27
 
28
+ #: ../lib/classes/KcSeoHelper.php:475
29
  msgid "Supports WordPress Multisite"
30
  msgstr ""
31
 
32
+ #: ../lib/classes/KcSeoHelper.php:476
33
  msgid "Supports more schema types:"
34
  msgstr ""
35
 
36
+ #: ../lib/classes/KcSeoHelper.php:478
37
  msgid "Books"
38
  msgstr ""
39
 
40
+ #: ../lib/classes/KcSeoHelper.php:479
41
  msgid "Courses"
42
  msgstr ""
43
 
44
+ #: ../lib/classes/KcSeoHelper.php:480
45
  msgid "Job Postings"
46
  msgstr ""
47
 
48
+ #: ../lib/classes/KcSeoHelper.php:481
49
  msgid "Movies"
50
  msgstr ""
51
 
52
+ #: ../lib/classes/KcSeoHelper.php:482, ../lib/functions/KcSeoOptions.php:988
53
  msgid "Music"
54
  msgstr ""
55
 
56
+ #: ../lib/classes/KcSeoHelper.php:483, ../lib/functions/KcSeoOptions.php:992
57
  msgid "Recipe"
58
  msgstr ""
59
 
60
+ #: ../lib/classes/KcSeoHelper.php:484
61
  msgid "TV Episode"
62
  msgstr ""
63
 
64
+ #: ../lib/classes/KcSeoHelper.php:485, ../lib/functions/KcSeoOptions.php:1000
65
  msgid "QAPage"
66
  msgstr ""
67
 
68
+ #: ../lib/classes/KcSeoHelper.php:486, ../lib/functions/KcSeoOptions.php:1004
69
  msgid "Item List"
70
  msgstr ""
71
 
72
+ #: ../lib/classes/KcSeoHelper.php:492
73
  msgid "Get the Pro Version"
74
  msgstr ""
75
 
lib/classes/KcSeoHelper.php CHANGED
@@ -145,13 +145,264 @@ if (!class_exists('KcSeoSettings')):
145
  function imageInfo($attachment_id) {
146
  $data = array();
147
  $imgData = wp_get_attachment_metadata($attachment_id);
148
- $data['url'] = wp_get_attachment_url($attachment_id, "full");
149
  $data['width'] = !empty($imgData['width']) ? absint($imgData['width']) : 0;
150
  $data['height'] = !empty($imgData['height']) ? absint($imgData['height']) : 0;
151
 
152
  return $data;
153
  }
154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  function fix1_2DataMigration() {
156
  global $KcSeoWPSchema;
157
  $fix_1_2 = get_option($KcSeoWPSchema->options['1_2_fix']);
@@ -273,4 +524,4 @@ if (!class_exists('KcSeoSettings')):
273
  }
274
  }
275
 
276
- endif;
145
  function imageInfo($attachment_id) {
146
  $data = array();
147
  $imgData = wp_get_attachment_metadata($attachment_id);
148
+ $data['url'] = wp_get_attachment_url($attachment_id);
149
  $data['width'] = !empty($imgData['width']) ? absint($imgData['width']) : 0;
150
  $data['height'] = !empty($imgData['height']) ? absint($imgData['height']) : 0;
151
 
152
  return $data;
153
  }
154
 
155
+ static function filter_content($content, $limit = 0) {
156
+ $content = preg_replace('#\[[^\]]+\]#', '', wp_strip_all_tags($content));
157
+ $content = self::characterToHTMLEntity($content);
158
+ if ($limit && strlen($content) > $limit) {
159
+ $content = mb_substr($content, 0, $limit, "utf-8");
160
+ $content = preg_replace('/\W\w+\s*(\W*)$/', '$1', $content);
161
+ }
162
+
163
+ return $content;
164
+ }
165
+
166
+ static function characterToHTMLEntity($str) {
167
+ $replace = array(
168
+ "'",
169
+ '&',
170
+ '<',
171
+ '>',
172
+ '€',
173
+ '‘',
174
+ '’',
175
+ '“',
176
+ '”',
177
+ '–',
178
+ '—',
179
+ '¡',
180
+ '¢',
181
+ '£',
182
+ '¤',
183
+ '¥',
184
+ '¦',
185
+ '§',
186
+ '¨',
187
+ '©',
188
+ 'ª',
189
+ '«',
190
+ '¬',
191
+ '®',
192
+ '¯',
193
+ '°',
194
+ '±',
195
+ '²',
196
+ '³',
197
+ '´',
198
+ 'µ',
199
+ '¶',
200
+ '·',
201
+ '¸',
202
+ '¹',
203
+ 'º',
204
+ '»',
205
+ '¼',
206
+ '½',
207
+ '¾',
208
+ '¿',
209
+ 'À',
210
+ 'Á',
211
+ 'Â',
212
+ 'Ã',
213
+ 'Ä',
214
+ 'Å',
215
+ 'Æ',
216
+ 'Ç',
217
+ 'È',
218
+ 'É',
219
+ 'Ê',
220
+ 'Ë',
221
+ 'Ì',
222
+ 'Í',
223
+ 'Î',
224
+ 'Ï',
225
+ 'Ð',
226
+ 'Ñ',
227
+ 'Ò',
228
+ 'Ó',
229
+ 'Ô',
230
+ 'Õ',
231
+ 'Ö',
232
+ '×',
233
+ 'Ø',
234
+ 'Ù',
235
+ 'Ú',
236
+ 'Û',
237
+ 'Ü',
238
+ 'Ý',
239
+ 'Þ',
240
+ 'ß',
241
+ 'à',
242
+ 'á',
243
+ 'â',
244
+ 'ã',
245
+ 'ä',
246
+ 'å',
247
+ 'æ',
248
+ 'ç',
249
+ 'è',
250
+ 'é',
251
+ 'ê',
252
+ 'ë',
253
+ 'ì',
254
+ 'í',
255
+ 'î',
256
+ 'ï',
257
+ 'ð',
258
+ 'ñ',
259
+ 'ò',
260
+ 'ó',
261
+ 'ô',
262
+ 'õ',
263
+ 'ö',
264
+ '÷',
265
+ 'ø',
266
+ 'ù',
267
+ 'ú',
268
+ 'û',
269
+ 'ü',
270
+ 'ý',
271
+ 'þ',
272
+ 'ÿ',
273
+ 'Œ',
274
+ 'œ',
275
+ '‚',
276
+ '„',
277
+ '…',
278
+ '™',
279
+ '•',
280
+ '˜'
281
+ );
282
+
283
+ $search = array(
284
+ '&#8217;',
285
+ '&amp;',
286
+ '&lt;',
287
+ '&gt;',
288
+ '&euro;',
289
+ '&lsquo;',
290
+ '&rsquo;',
291
+ '&ldquo;',
292
+ '&rdquo;',
293
+ '&ndash;',
294
+ '&mdash;',
295
+ '&iexcl;',
296
+ '&cent;',
297
+ '&pound;',
298
+ '&curren;',
299
+ '&yen;',
300
+ '&brvbar;',
301
+ '&sect;',
302
+ '&uml;',
303
+ '&copy;',
304
+ '&ordf;',
305
+ '&laquo;',
306
+ '&not;',
307
+ '&reg;',
308
+ '&macr;',
309
+ '&deg;',
310
+ '&plusmn;',
311
+ '&sup2;',
312
+ '&sup3;',
313
+ '&acute;',
314
+ '&micro;',
315
+ '&para;',
316
+ '&middot;',
317
+ '&cedil;',
318
+ '&sup1;',
319
+ '&ordm;',
320
+ '&raquo;',
321
+ '&frac14;',
322
+ '&frac12;',
323
+ '&frac34;',
324
+ '&iquest;',
325
+ '&Agrave;',
326
+ '&Aacute;',
327
+ '&Acirc;',
328
+ '&Atilde;',
329
+ '&Auml;',
330
+ '&Aring;',
331
+ '&AElig;',
332
+ '&Ccedil;',
333
+ '&Egrave;',
334
+ '&Eacute;',
335
+ '&Ecirc;',
336
+ '&Euml;',
337
+ '&Igrave;',
338
+ '&Iacute;',
339
+ '&Icirc;',
340
+ '&Iuml;',
341
+ '&ETH;',
342
+ '&Ntilde;',
343
+ '&Ograve;',
344
+ '&Oacute;',
345
+ '&Ocirc;',
346
+ '&Otilde;',
347
+ '&Ouml;',
348
+ '&times;',
349
+ '&Oslash;',
350
+ '&Ugrave;',
351
+ '&Uacute;',
352
+ '&Ucirc;',
353
+ '&Uuml;',
354
+ '&Yacute;',
355
+ '&THORN;',
356
+ '&szlig;',
357
+ '&agrave;',
358
+ '&aacute;',
359
+ '&acirc;',
360
+ '&atilde;',
361
+ '&auml;',
362
+ '&aring;',
363
+ '&aelig;',
364
+ '&ccedil;',
365
+ '&egrave;',
366
+ '&eacute;',
367
+ '&ecirc;',
368
+ '&euml;',
369
+ '&igrave;',
370
+ '&iacute;',
371
+ '&icirc;',
372
+ '&iuml;',
373
+ '&eth;',
374
+ '&ntilde;',
375
+ '&ograve;',
376
+ '&oacute;',
377
+ '&ocirc;',
378
+ '&otilde;',
379
+ '&ouml;',
380
+ '&divide;',
381
+ '&oslash;',
382
+ '&ugrave;',
383
+ '&uacute;',
384
+ '&ucirc;',
385
+ '&uuml;',
386
+ '&yacute;',
387
+ '&thorn;',
388
+ '&yuml;',
389
+ '&OElig;',
390
+ '&oelig;',
391
+ '&sbquo;',
392
+ '&bdquo;',
393
+ '&hellip;',
394
+ '&trade;',
395
+ '&bull;',
396
+ '&asymp;'
397
+ );
398
+
399
+ //REPLACE VALUES
400
+ $str = str_replace($search, $replace, $str);
401
+
402
+ //RETURN FORMATED STRING
403
+ return $str;
404
+ }
405
+
406
  function fix1_2DataMigration() {
407
  global $KcSeoWPSchema;
408
  $fix_1_2 = get_option($KcSeoWPSchema->options['1_2_fix']);
524
  }
525
  }
526
 
527
+ endif;
wp-seo-structured-data-schema.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP SEO Structured Data Schema
4
  * Plugin URI: https://wpsemplugins.com/
5
  * Description: Comprehensive JSON-LD based Structured Data solution for WordPress for adding schema for organizations, businesses, blog posts, ratings & more.
6
- * Version: 2.6.14
7
  * Author: WPSEMPlugins
8
  * Author URI: https://wpsemplugins.com/
9
  * Text Domain: wp-seo-structured-data-schema
@@ -65,4 +65,4 @@ if ( ! function_exists( 'KCSEO_uninstall' ) ) {
65
  }
66
 
67
  }
68
- }
3
  * Plugin Name: WP SEO Structured Data Schema
4
  * Plugin URI: https://wpsemplugins.com/
5
  * Description: Comprehensive JSON-LD based Structured Data solution for WordPress for adding schema for organizations, businesses, blog posts, ratings & more.
6
+ * Version: 2.6.15
7
  * Author: WPSEMPlugins
8
  * Author URI: https://wpsemplugins.com/
9
  * Text Domain: wp-seo-structured-data-schema
65
  }
66
 
67
  }
68
+ }