Plugin Directory

Changeset 1320801


Ignore:
Timestamp:
01/04/2016 10:27:27 AM (10 years ago)
Author:
mampf
Message:

Deploy from Git

Location:
wp-jsonld/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-jsonld/trunk/readme.txt

    r1320016 r1320801  
     1[![Stories in Ready](https://badge.waffle.io/bmhm/wp-jsonld.png?label=ready&title=Ready)](https://waffle.io/bmhm/wp-jsonld)
    12=== wp-jsonld ===
    23
     
    78Requires at least: 4.0
    89Tested up to: 4.4
    9 Stable tag: 0.3.1
     10Stable tag: 0.3.2
    1011License: GPLv2 or later
    1112License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1819Original Plugin (discontinued): https://de.wordpress.org/plugins/json-ld-for-article/
    1920
    20 Sadly, he original plugin is not being developed anymore. So I decided to fix some bugs like invalid markup,
     21Sadly, the original plugin is not being developed anymore. So I decided to fix some bugs like invalid markup,
    2122    missing tags, putting objects into fields instead of just URLs for images, and implementing for more than just
    2223    articles.
     
    7879== Changelog ==
    7980
    80 = 0.3 =
     81= 0.3.2 =
     82* Find correct front page.
     83
     84= 0.3.1 =
     85* updated type so release could be pushed.
     86
     87= 0.3.0 =
    8188* Use transients for caching.
    8289* Use tag 'aggregateRating' if YSSR is installed.
    8390
    84 = 0.2 =
     91= 0.2.0 =
    8592* Extended the functionality a bit and completely refactored the code to make it much more readable.
    8693
  • wp-jsonld/trunk/wp-jsonld.php

    r1320408 r1320801  
    33Plugin Name:    WP-JSONLD
    44Description:    WP-JSONLD adds valid schema.org microdata as JSON-LD-script to your blog posts, author pages and articles.
    5 Version:        0.3.1
     5Version:        0.3.2
    66Author:         Benjamin Marwell
    77Original Author:         Mikko Piippo, Tomi Lattu
     
    218218        // this is mean. The Page with posts can be another page
    219219        // than home_url() or site_url().
    220         $blogurl = get_permalink(get_option('page_for_posts'));
     220        if (get_option('show_on_front') == 'page') {
     221            $blogurl = get_permalink(get_option('page_for_posts'));
     222        } else {
     223            $blogurl = home_url('/');
     224        }
    221225        $markup->mainEntityOfPage = $this->createMainEntity('WebPage', $blogurl);
    222226        //$markup->generatedAt = date('Y-m-d H:i:s');
Note: See TracChangeset for help on using the changeset viewer.