Plugin Directory

Changeset 3436295


Ignore:
Timestamp:
01/09/2026 08:52:58 PM (6 weeks ago)
Author:
sethsm
Message:

Update to version 1.7.1 from GitHub

Location:
microdata-to-json-ld-converter
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • microdata-to-json-ld-converter/tags/1.7.1/README.md

    r3406275 r3436295  
    77* **Tags:** schema.org, Microdata, json-ld, seo, structured data
    88* **Requires at least:** 5.5
    9 * **Tested up to:** 6.8
    10 * **Stable tag:** 1.7
     9* **Tested up to:** 6.9
     10* **Stable tag:** 1.7.1
    1111* **Requires PHP:** 7.2
    1212* **License:** GPLv2 or later
     
    125125## Changelog
    126126
     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
    127132### 1.7
    128133**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  
    22/**
    33 * Schema.org Validator Class
    4  * @version 1.7
     4 * @version 1.7.1
    55 */
    66class MDTJ_Schema_Validator {
  • microdata-to-json-ld-converter/tags/1.7.1/includes/class-microdata-to-json-ld-converter.php

    r3406275 r3436295  
    22/**
    33 * 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.
    66 * 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.
    77 * 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.
     
    276276    public function process_html_buffer($buffer) {
    277277        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 );
    281281            $buffer = str_replace( ' itemscope', '', $buffer );
    282282        }
  • microdata-to-json-ld-converter/tags/1.7.1/microdata-to-json-ld-converter.php

    r3406275 r3436295  
    44 * Plugin URI:  https://www.sethcreates.com/plugins-for-wordpress/microdata-to-json-ld-converter/
    55 * 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
    77 * Author:      Seth Smigelski
    88 * Author URI:  https://www.sethcreates.com/plugins-for-wordpress/
  • microdata-to-json-ld-converter/tags/1.7.1/readme.txt

    r3406275 r3436295  
    33Tags: schema.org, Microdata, json-ld, seo, structured data
    44Requires at least: 5.5
    5 Tested up to: 6.8
    6 Stable tag: 1.7
     5Tested up to: 6.9
     6Stable tag: 1.7.1
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    9797
    9898== 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
    99102
    100103= 1.7 =
  • microdata-to-json-ld-converter/trunk/README.md

    r3406275 r3436295  
    77* **Tags:** schema.org, Microdata, json-ld, seo, structured data
    88* **Requires at least:** 5.5
    9 * **Tested up to:** 6.8
    10 * **Stable tag:** 1.7
     9* **Tested up to:** 6.9
     10* **Stable tag:** 1.7.1
    1111* **Requires PHP:** 7.2
    1212* **License:** GPLv2 or later
     
    125125## Changelog
    126126
     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
    127132### 1.7
    128133**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  
    22/**
    33 * Schema.org Validator Class
    4  * @version 1.7
     4 * @version 1.7.1
    55 */
    66class MDTJ_Schema_Validator {
  • microdata-to-json-ld-converter/trunk/includes/class-microdata-to-json-ld-converter.php

    r3406275 r3436295  
    22/**
    33 * 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.
    66 * 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.
    77 * 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.
     
    276276    public function process_html_buffer($buffer) {
    277277        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 );
    281281            $buffer = str_replace( ' itemscope', '', $buffer );
    282282        }
  • microdata-to-json-ld-converter/trunk/microdata-to-json-ld-converter.php

    r3406275 r3436295  
    44 * Plugin URI:  https://www.sethcreates.com/plugins-for-wordpress/microdata-to-json-ld-converter/
    55 * 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
    77 * Author:      Seth Smigelski
    88 * Author URI:  https://www.sethcreates.com/plugins-for-wordpress/
  • microdata-to-json-ld-converter/trunk/readme.txt

    r3406275 r3436295  
    33Tags: schema.org, Microdata, json-ld, seo, structured data
    44Requires at least: 5.5
    5 Tested up to: 6.8
    6 Stable tag: 1.7
     5Tested up to: 6.9
     6Stable tag: 1.7.1
    77Requires PHP: 7.2
    88License: GPLv2 or later
     
    9797
    9898== 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
    99102
    100103= 1.7 =
Note: See TracChangeset for help on using the changeset viewer.