Plugin Directory

Changeset 2177855


Ignore:
Timestamp:
10/22/2019 10:11:59 PM (6 years ago)
Author:
aveltens
Message:

Version 0.5.1

Location:
wp-linked-data/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-linked-data/trunk/readme.txt

    r2177822 r2177855  
    6666== Changelog ==
    6767
     68= 0.5.1 =
     69
     70* Fix: Serve HTML if HTML is prefered, even if RDF other formats are accepted via wildcard
     71
    6872= 0.5 =
    6973
  • wp-linked-data/trunk/request/WilldurandContentNegotiation.php

    r2177822 r2177855  
    1515        $negotiator = new \Negotiation\Negotiator();
    1616
    17         $priorities   = array('application/ld+json', 'text/turtle', 'text/n3', 'application/n-triples', 'application/rdf+xml', 'application/trig;q=0.1');
     17        $priorities   = array('text/html', 'application/ld+json', 'text/turtle', 'text/n3', 'application/n-triples', 'application/rdf+xml', 'application/trig;q=0.1');
    1818        $mediaType = $negotiator->getBest($acceptHeader, $priorities);
    1919
     
    2828        }
    2929
     30        if ($negotiatedType == "text/html") {
     31            return null;
     32        }
     33
    3034        return $negotiatedType;
    3135
  • wp-linked-data/trunk/wp-linked-data.php

    r2177822 r2177855  
    44Plugin URI: http://wordpress.org/extend/plugins/wp-linked-data/
    55Description: Publishing blog contents as linked data
    6 Version: 0.5
     6Version: 0.5.1
    77Author: Angelo Veltens
    88Author URI: http://angelo.veltens.org/
Note: See TracChangeset for help on using the changeset viewer.