Plugin Directory

Changeset 2293057


Ignore:
Timestamp:
04/27/2020 09:55:01 PM (6 years ago)
Author:
jtroynousky
Message:

v1.0.2: Yoast compatibility

Location:
mdt-reviews
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • mdt-reviews/trunk/class-mdt-reviews-api.php

    r2243975 r2293057  
    6262        global $post;
    6363        $review_json = \MDT\Reviews\Schema::get_structured_data($post);
    64         $json_ld[0]['@graph'][] = $review_json;
     64        if (!empty($review_json) && !empty($review_json['name'])) {
     65            $json_ld[0]['@graph'][] = $review_json;
     66        }
    6567        return $json_ld;
    6668    }
  • mdt-reviews/trunk/mdt-reviews.php

    r2255234 r2293057  
    44 * Plugin URI:  https://github.com/wpcomvip/metro/
    55 * Description: Generate Review Structured Data
    6  * Version:     1.0.1
     6 * Version:     1.0.2
    77 * Author:      Metro.co.uk
    88 * Author URI:  https://github.com/wpcomvip/metro/graphs/contributors
  • mdt-reviews/trunk/readme.txt

    r2255234 r2293057  
    1717== Upgrade Notice ==
    1818
     19= 1.0.2 =
     20* Yoast compatibility.
     21
    1922= 1.0.1 =
    2023* Apply filters to the schema output.
Note: See TracChangeset for help on using the changeset viewer.