Version Description
- PHP Bug Fix
=
Download this release
Release Info
Developer | kcseopro |
Plugin | 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 +4 -1
- languages/wp-seo-structured-data-schema.pot +15 -15
- lib/classes/KcSeoHelper.php +253 -2
- wp-seo-structured-data-schema.php +2 -2
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.
|
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:
|
17 |
msgid "Pro Version Features"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: ../lib/classes/KcSeoHelper.php:
|
21 |
msgid "Includes Auto-fill function <---Popular"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: ../lib/classes/KcSeoHelper.php:
|
25 |
msgid "Supports Custom Post Types beyond default page and posts"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: ../lib/classes/KcSeoHelper.php:
|
29 |
msgid "Supports WordPress Multisite"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: ../lib/classes/KcSeoHelper.php:
|
33 |
msgid "Supports more schema types:"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: ../lib/classes/KcSeoHelper.php:
|
37 |
msgid "Books"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: ../lib/classes/KcSeoHelper.php:
|
41 |
msgid "Courses"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: ../lib/classes/KcSeoHelper.php:
|
45 |
msgid "Job Postings"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: ../lib/classes/KcSeoHelper.php:
|
49 |
msgid "Movies"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: ../lib/classes/KcSeoHelper.php:
|
53 |
msgid "Music"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: ../lib/classes/KcSeoHelper.php:
|
57 |
msgid "Recipe"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: ../lib/classes/KcSeoHelper.php:
|
61 |
msgid "TV Episode"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: ../lib/classes/KcSeoHelper.php:
|
65 |
msgid "QAPage"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: ../lib/classes/KcSeoHelper.php:
|
69 |
msgid "Item List"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: ../lib/classes/KcSeoHelper.php:
|
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
|
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 |
+
'’',
|
285 |
+
'&',
|
286 |
+
'<',
|
287 |
+
'>',
|
288 |
+
'€',
|
289 |
+
'‘',
|
290 |
+
'’',
|
291 |
+
'“',
|
292 |
+
'”',
|
293 |
+
'–',
|
294 |
+
'—',
|
295 |
+
'¡',
|
296 |
+
'¢',
|
297 |
+
'£',
|
298 |
+
'¤',
|
299 |
+
'¥',
|
300 |
+
'¦',
|
301 |
+
'§',
|
302 |
+
'¨',
|
303 |
+
'©',
|
304 |
+
'ª',
|
305 |
+
'«',
|
306 |
+
'¬',
|
307 |
+
'®',
|
308 |
+
'¯',
|
309 |
+
'°',
|
310 |
+
'±',
|
311 |
+
'²',
|
312 |
+
'³',
|
313 |
+
'´',
|
314 |
+
'µ',
|
315 |
+
'¶',
|
316 |
+
'·',
|
317 |
+
'¸',
|
318 |
+
'¹',
|
319 |
+
'º',
|
320 |
+
'»',
|
321 |
+
'¼',
|
322 |
+
'½',
|
323 |
+
'¾',
|
324 |
+
'¿',
|
325 |
+
'À',
|
326 |
+
'Á',
|
327 |
+
'Â',
|
328 |
+
'Ã',
|
329 |
+
'Ä',
|
330 |
+
'Å',
|
331 |
+
'Æ',
|
332 |
+
'Ç',
|
333 |
+
'È',
|
334 |
+
'É',
|
335 |
+
'Ê',
|
336 |
+
'Ë',
|
337 |
+
'Ì',
|
338 |
+
'Í',
|
339 |
+
'Î',
|
340 |
+
'Ï',
|
341 |
+
'Ð',
|
342 |
+
'Ñ',
|
343 |
+
'Ò',
|
344 |
+
'Ó',
|
345 |
+
'Ô',
|
346 |
+
'Õ',
|
347 |
+
'Ö',
|
348 |
+
'×',
|
349 |
+
'Ø',
|
350 |
+
'Ù',
|
351 |
+
'Ú',
|
352 |
+
'Û',
|
353 |
+
'Ü',
|
354 |
+
'Ý',
|
355 |
+
'Þ',
|
356 |
+
'ß',
|
357 |
+
'à',
|
358 |
+
'á',
|
359 |
+
'â',
|
360 |
+
'ã',
|
361 |
+
'ä',
|
362 |
+
'å',
|
363 |
+
'æ',
|
364 |
+
'ç',
|
365 |
+
'è',
|
366 |
+
'é',
|
367 |
+
'ê',
|
368 |
+
'ë',
|
369 |
+
'ì',
|
370 |
+
'í',
|
371 |
+
'î',
|
372 |
+
'ï',
|
373 |
+
'ð',
|
374 |
+
'ñ',
|
375 |
+
'ò',
|
376 |
+
'ó',
|
377 |
+
'ô',
|
378 |
+
'õ',
|
379 |
+
'ö',
|
380 |
+
'÷',
|
381 |
+
'ø',
|
382 |
+
'ù',
|
383 |
+
'ú',
|
384 |
+
'û',
|
385 |
+
'ü',
|
386 |
+
'ý',
|
387 |
+
'þ',
|
388 |
+
'ÿ',
|
389 |
+
'Œ',
|
390 |
+
'œ',
|
391 |
+
'‚',
|
392 |
+
'„',
|
393 |
+
'…',
|
394 |
+
'™',
|
395 |
+
'•',
|
396 |
+
'≈'
|
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.
|
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 |
+
}
|