Changeset 2177855
- Timestamp:
- 10/22/2019 10:11:59 PM (6 years ago)
- Location:
- wp-linked-data/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
request/WilldurandContentNegotiation.php (modified) (2 diffs)
-
wp-linked-data.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-linked-data/trunk/readme.txt
r2177822 r2177855 66 66 == Changelog == 67 67 68 = 0.5.1 = 69 70 * Fix: Serve HTML if HTML is prefered, even if RDF other formats are accepted via wildcard 71 68 72 = 0.5 = 69 73 -
wp-linked-data/trunk/request/WilldurandContentNegotiation.php
r2177822 r2177855 15 15 $negotiator = new \Negotiation\Negotiator(); 16 16 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'); 18 18 $mediaType = $negotiator->getBest($acceptHeader, $priorities); 19 19 … … 28 28 } 29 29 30 if ($negotiatedType == "text/html") { 31 return null; 32 } 33 30 34 return $negotiatedType; 31 35 -
wp-linked-data/trunk/wp-linked-data.php
r2177822 r2177855 4 4 Plugin URI: http://wordpress.org/extend/plugins/wp-linked-data/ 5 5 Description: Publishing blog contents as linked data 6 Version: 0.5 6 Version: 0.5.1 7 7 Author: Angelo Veltens 8 8 Author URI: http://angelo.veltens.org/
Note: See TracChangeset
for help on using the changeset viewer.