Changeset 3436295
- Timestamp:
- 01/09/2026 08:52:58 PM (6 weeks ago)
- Location:
- microdata-to-json-ld-converter
- Files:
-
- 10 edited
- 1 copied
-
tags/1.7.1 (copied) (copied from microdata-to-json-ld-converter/trunk)
-
tags/1.7.1/README.md (modified) (2 diffs)
-
tags/1.7.1/includes/class-mdtj-schema-validator.php (modified) (1 diff)
-
tags/1.7.1/includes/class-microdata-to-json-ld-converter.php (modified) (2 diffs)
-
tags/1.7.1/microdata-to-json-ld-converter.php (modified) (1 diff)
-
tags/1.7.1/readme.txt (modified) (2 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/includes/class-mdtj-schema-validator.php (modified) (1 diff)
-
trunk/includes/class-microdata-to-json-ld-converter.php (modified) (2 diffs)
-
trunk/microdata-to-json-ld-converter.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
microdata-to-json-ld-converter/tags/1.7.1/README.md
r3406275 r3436295 7 7 * **Tags:** schema.org, Microdata, json-ld, seo, structured data 8 8 * **Requires at least:** 5.5 9 * **Tested up to:** 6. 810 * **Stable tag:** 1.7 9 * **Tested up to:** 6.9 10 * **Stable tag:** 1.7.1 11 11 * **Requires PHP:** 7.2 12 12 * **License:** GPLv2 or later … … 125 125 ## Changelog 126 126 127 ### 1.7.1 128 * **FIX:** Improved HTML cleanup by removing <link> tags that contain itemprop attributes when "Remove Inline Microdata" is enabled. 129 * **FIX:** Updated regex to include 'itemid' for removal, producing cleaner HTML and satisfying W3C validation requirements 130 131 127 132 ### 1.7 128 133 **ENHANCEMENT:** Expanded content attribute support to all HTML tags. Machine-readable data (e.g., content="2025-11-30") now correctly takes precedence over human-readable text on <span> and <div> elements. -
microdata-to-json-ld-converter/tags/1.7.1/includes/class-mdtj-schema-validator.php
r3406275 r3436295 2 2 /** 3 3 * Schema.org Validator Class 4 * @version 1.7 4 * @version 1.7.1 5 5 */ 6 6 class MDTJ_Schema_Validator { -
microdata-to-json-ld-converter/tags/1.7.1/includes/class-microdata-to-json-ld-converter.php
r3406275 r3436295 2 2 /** 3 3 * Main plugin class. 4 * @version 1.7 5 * 4 * @version 1.7.1 5 * v1.7.1 - Improved HTML cleanup. Updated regex to include 'itemid' to entirely remove <link> tags that contain an itemprop attribute when "Remove Inline Microdata" is enabled, preventing W3C validation errors in the body. 6 6 * v1.7 - Expanded content attribute support to all HTML tags. Machine-readable data (e.g., content="2025-11-30") now correctly takes precedence over human-readable text on <span> and <div> elements. 7 7 * v1.6.6 - Improved input handling and enhanced security against parameter manipulation attacks. Direct $_GET parameter access now properly uses wp_unslash() before sanitization. JSON-LD schema output now used separated script tag construction and includes security annotations for safe content. … … 276 276 public function process_html_buffer($buffer) { 277 277 if (get_option('mdtj_remove_microdata')) { 278 $buffer = preg_replace('/< meta[^>]*\sitemprop\s*=\s*(["\'])(?:(?!\1).)*\1[^>]*\/?>/i', '', $buffer);279 $buffer = preg_replace( '/\s(itemprop|itemscope|itemtype )="[^"]*"/i', '', $buffer );280 $buffer = preg_replace( '/\s(itemprop|itemscope|itemtype )=\'[^\']*\'/i', '', $buffer );278 $buffer = preg_replace('/<(meta|link)[^>]*\sitemprop\s*=\s*(["\'])(?:(?!\2).)*\2[^>]*\/?>/i', '', $buffer); 279 $buffer = preg_replace( '/\s(itemprop|itemscope|itemtype|itemid)="[^"]*"/i', '', $buffer ); 280 $buffer = preg_replace( '/\s(itemprop|itemscope|itemtype|itemid)=\'[^\']*\'/i', '', $buffer ); 281 281 $buffer = str_replace( ' itemscope', '', $buffer ); 282 282 } -
microdata-to-json-ld-converter/tags/1.7.1/microdata-to-json-ld-converter.php
r3406275 r3436295 4 4 * Plugin URI: https://www.sethcreates.com/plugins-for-wordpress/microdata-to-json-ld-converter/ 5 5 * Description: Converts Microdata to JSON-LD, validates it against best practices, and optionally removes the original markup. Includes a bulk rebuild tool. 6 * Version: 1.7 6 * Version: 1.7.1 7 7 * Author: Seth Smigelski 8 8 * Author URI: https://www.sethcreates.com/plugins-for-wordpress/ -
microdata-to-json-ld-converter/tags/1.7.1/readme.txt
r3406275 r3436295 3 3 Tags: schema.org, Microdata, json-ld, seo, structured data 4 4 Requires at least: 5.5 5 Tested up to: 6. 86 Stable tag: 1.7 5 Tested up to: 6.9 6 Stable tag: 1.7.1 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later … … 97 97 98 98 == Changelog == 99 = 1.7.1 = 100 * **FIX:** Improved HTML cleanup by removing <link> tags that contain itemprop attributes when "Remove Inline Microdata" is enabled. 101 * **FIX:** Updated regex to include 'itemid' for removal, producing cleaner HTML and satisfying W3C validation requirements 99 102 100 103 = 1.7 = -
microdata-to-json-ld-converter/trunk/README.md
r3406275 r3436295 7 7 * **Tags:** schema.org, Microdata, json-ld, seo, structured data 8 8 * **Requires at least:** 5.5 9 * **Tested up to:** 6. 810 * **Stable tag:** 1.7 9 * **Tested up to:** 6.9 10 * **Stable tag:** 1.7.1 11 11 * **Requires PHP:** 7.2 12 12 * **License:** GPLv2 or later … … 125 125 ## Changelog 126 126 127 ### 1.7.1 128 * **FIX:** Improved HTML cleanup by removing <link> tags that contain itemprop attributes when "Remove Inline Microdata" is enabled. 129 * **FIX:** Updated regex to include 'itemid' for removal, producing cleaner HTML and satisfying W3C validation requirements 130 131 127 132 ### 1.7 128 133 **ENHANCEMENT:** Expanded content attribute support to all HTML tags. Machine-readable data (e.g., content="2025-11-30") now correctly takes precedence over human-readable text on <span> and <div> elements. -
microdata-to-json-ld-converter/trunk/includes/class-mdtj-schema-validator.php
r3406275 r3436295 2 2 /** 3 3 * Schema.org Validator Class 4 * @version 1.7 4 * @version 1.7.1 5 5 */ 6 6 class MDTJ_Schema_Validator { -
microdata-to-json-ld-converter/trunk/includes/class-microdata-to-json-ld-converter.php
r3406275 r3436295 2 2 /** 3 3 * Main plugin class. 4 * @version 1.7 5 * 4 * @version 1.7.1 5 * v1.7.1 - Improved HTML cleanup. Updated regex to include 'itemid' to entirely remove <link> tags that contain an itemprop attribute when "Remove Inline Microdata" is enabled, preventing W3C validation errors in the body. 6 6 * v1.7 - Expanded content attribute support to all HTML tags. Machine-readable data (e.g., content="2025-11-30") now correctly takes precedence over human-readable text on <span> and <div> elements. 7 7 * v1.6.6 - Improved input handling and enhanced security against parameter manipulation attacks. Direct $_GET parameter access now properly uses wp_unslash() before sanitization. JSON-LD schema output now used separated script tag construction and includes security annotations for safe content. … … 276 276 public function process_html_buffer($buffer) { 277 277 if (get_option('mdtj_remove_microdata')) { 278 $buffer = preg_replace('/< meta[^>]*\sitemprop\s*=\s*(["\'])(?:(?!\1).)*\1[^>]*\/?>/i', '', $buffer);279 $buffer = preg_replace( '/\s(itemprop|itemscope|itemtype )="[^"]*"/i', '', $buffer );280 $buffer = preg_replace( '/\s(itemprop|itemscope|itemtype )=\'[^\']*\'/i', '', $buffer );278 $buffer = preg_replace('/<(meta|link)[^>]*\sitemprop\s*=\s*(["\'])(?:(?!\2).)*\2[^>]*\/?>/i', '', $buffer); 279 $buffer = preg_replace( '/\s(itemprop|itemscope|itemtype|itemid)="[^"]*"/i', '', $buffer ); 280 $buffer = preg_replace( '/\s(itemprop|itemscope|itemtype|itemid)=\'[^\']*\'/i', '', $buffer ); 281 281 $buffer = str_replace( ' itemscope', '', $buffer ); 282 282 } -
microdata-to-json-ld-converter/trunk/microdata-to-json-ld-converter.php
r3406275 r3436295 4 4 * Plugin URI: https://www.sethcreates.com/plugins-for-wordpress/microdata-to-json-ld-converter/ 5 5 * Description: Converts Microdata to JSON-LD, validates it against best practices, and optionally removes the original markup. Includes a bulk rebuild tool. 6 * Version: 1.7 6 * Version: 1.7.1 7 7 * Author: Seth Smigelski 8 8 * Author URI: https://www.sethcreates.com/plugins-for-wordpress/ -
microdata-to-json-ld-converter/trunk/readme.txt
r3406275 r3436295 3 3 Tags: schema.org, Microdata, json-ld, seo, structured data 4 4 Requires at least: 5.5 5 Tested up to: 6. 86 Stable tag: 1.7 5 Tested up to: 6.9 6 Stable tag: 1.7.1 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later … … 97 97 98 98 == Changelog == 99 = 1.7.1 = 100 * **FIX:** Improved HTML cleanup by removing <link> tags that contain itemprop attributes when "Remove Inline Microdata" is enabled. 101 * **FIX:** Updated regex to include 'itemid' for removal, producing cleaner HTML and satisfying W3C validation requirements 99 102 100 103 = 1.7 =
Note: See TracChangeset
for help on using the changeset viewer.