Changeset 1483223
- Timestamp:
- 08/25/2016 09:24:04 AM (9 years ago)
- Location:
- wp-ldp/trunk
- Files:
-
- 2 edited
-
single-ldp_resource.php (modified) (1 diff)
-
wpldp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-ldp/trunk/single-ldp_resource.php
r1483156 r1483223 118 118 echo " \"url\": \"" . get_permalink ($post->ID) . "\",\n"; 119 119 echo ' "dc:title":' . json_encode($post->post_title) . ",\n"; 120 echo ' "sioc:blogPost":' . json_encode(substr($post->post_content, 0, 300)) . "\n"; 120 $post_content = (!empty($post->post_content) && $post->post_content !== false) ? json_encode(substr($post->post_content, 0, 150)) : ""; 121 echo ' "sioc:blogPost":' . $post_content . "\n"; 121 122 if ($count < $loop->post_count) { 122 123 echo " },\n"; -
wp-ldp/trunk/wpldp.php
r1483159 r1483223 5 5 * Description: This is a plugin which aims to emulate the default caracteristics of a Linked Data Platform compatible server 6 6 * Text Domain: wpldp 7 * Version: 1.0. 27 * Version: 1.0.3 8 8 * Author: Sylvain LE BON, Benoit ALESSANDRONI 9 9 * Author URI: http://www.happy-dev.fr/team/sylvain, http://benoit-alessandroni.fr/ … … 22 22 class WpLdp { 23 23 24 protected static $version_number = '1.0. 2';24 protected static $version_number = '1.0.3'; 25 25 26 26 /**
Note: See TracChangeset
for help on using the changeset viewer.