Plugin Directory

Changeset 1957075


Ignore:
Timestamp:
10/15/2018 06:38:25 PM (7 years ago)
Author:
vberkel
Message:

Release v1.10.2, New @ids and YT VideoObject fix

Location:
schema-app-structured-data-for-schemaorg/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • schema-app-structured-data-for-schemaorg/trunk/hunch-schema.php

    r1927492 r1957075  
    55 * Plugin URI: http://www.schemaapp.com
    66 * Description: This plugin adds http://schema.org structured data to your website
    7  * Version: 1.10.1
     7 * Version: 1.10.2
    88 * Author: Hunch Manifest
    99 * Author URI: https://www.hunchmanifest.com
  • schema-app-structured-data-for-schemaorg/trunk/lib/HunchSchema/Page.php

    r1911175 r1957075  
    3939            (
    4040                '@type' => 'WebPage',
    41                 '@id' => $Permalink,
     41                '@id' => $Permalink . '#' . $this->schemaType,
    4242            ),
    4343            'headline' => get_the_title(),
  • schema-app-structured-data-for-schemaorg/trunk/lib/HunchSchema/Post.php

    r1911175 r1957075  
    1515
    1616        $this->schema['@type'] = ! empty( $this->Settings['SchemaDefaultTypePost'] ) ? $this->Settings['SchemaDefaultTypePost'] : 'BlogPosting';
     17        $this->schema['mainEntityOfPage']['@id'] = get_permalink() . '#' . $this->schema['@type'];
    1718
    1819
  • schema-app-structured-data-for-schemaorg/trunk/lib/HunchSchema/Thing.php

    r1911175 r1957075  
    260260                $Author = array(
    261261                        '@type' => 'Person',
     262                        '@id' => esc_url(get_author_posts_url(get_the_author_meta('ID', $post->post_author))) . '#Person',
    262263                        'name' => get_the_author_meta('display_name', $post->post_author),
    263264                        'url' => esc_url(get_author_posts_url(get_the_author_meta('ID', $post->post_author))),
     
    409410            {
    410411                // https?://(?:[0-9A-Z-]+\.)?(?:youtu\.be/|youtube(?:-nocookie)?\.com\S*?[^\w\s-])([\w-]{11})(?=[^\w-]|$)(?![?=&+%\w.-]*(?:[\'"][^<>]*>|</a>))[?=&+%\w.-]*
    411                 preg_match_all( '~https?://(?:[0-9A-Z-]+\.)?(?:youtu\.be/|youtube(?:-nocookie)?\.com\S*?[^\w\s-])([\w-]{11})(?=[^\w-]|$)[?=&+%\w.-]*~im', $String, $Matches );
     412                // https?://(?:[0-9A-Z-]+\.)?(?:youtu\.be/|youtube(?:-nocookie)?\.com\S*?[^\w\s-])([\w-]{11})(?=[^\w-]|$)[?=&+%\w.-]*
     413                preg_match_all( '~https?://(?:www\.)?(?:youtu\.be/|youtube(?:-nocookie)?\.com\S*?[^\w\s-])([\w-]{11})(?=[^\w-]|$)[?=&+%\w.-]*~im', $String, $Matches );
    412414
    413415                if ( isset( $Matches[1] ) && count( $Matches[1] ) )
  • schema-app-structured-data-for-schemaorg/trunk/readme.txt

    r1927492 r1957075  
    66Author: Mark van Berkel (vberkel)
    77Requires at least: 3.5
    8 Tested up to: 4.9.7
    9 Stable tag: 1.10.1
     8Tested up to: 4.9.8
     9Stable tag: 1.10.2
    1010License: GPL2
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8484
    8585== Changelog ==
     86= 1.10.2 =
     87- Fix, VideoObject markup generated from Youtube images
     88- Improve, Use #Class based @id's to prevent collisions
     89
    8690= 1.10.1 =
    8791- Fix, Yoast Wordpress SEO breadcrumblist @id collisions
Note: See TracChangeset for help on using the changeset viewer.