Plugin Directory

Changeset 1483223


Ignore:
Timestamp:
08/25/2016 09:24:04 AM (9 years ago)
Author:
balessan
Message:

Fixing bug with SIOC:content and updating version number for forcing update

Location:
wp-ldp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-ldp/trunk/single-ldp_resource.php

    r1483156 r1483223  
    118118                      echo "                    \"url\": \"" . get_permalink ($post->ID) . "\",\n";
    119119                      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";
    121122                      if ($count < $loop->post_count) {
    122123                        echo "               },\n";
  • wp-ldp/trunk/wpldp.php

    r1483159 r1483223  
    55 * Description: This is a plugin which aims to emulate the default caracteristics of a Linked Data Platform compatible server
    66 * Text Domain: wpldp
    7  * Version: 1.0.2
     7 * Version: 1.0.3
    88 * Author: Sylvain LE BON, Benoit ALESSANDRONI
    99 * Author URI: http://www.happy-dev.fr/team/sylvain, http://benoit-alessandroni.fr/
     
    2222    class WpLdp {
    2323
    24       protected static $version_number = '1.0.2';
     24      protected static $version_number = '1.0.3';
    2525
    2626      /**
Note: See TracChangeset for help on using the changeset viewer.