Plugin Directory

Changeset 1523017


Ignore:
Timestamp:
10/27/2016 10:25:52 AM (9 years ago)
Author:
balessan
Message:

Fix missing files by upgrading to 1.1.1 directly

Location:
wp-ldp
Files:
26 added
3 edited

Legend:

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

    r1523012 r1523017  
    160160                      $post = $loop->post;
    161161                      echo "               {\n";
    162                       echo "                    \"url\": \"" . get_permalink ($post->ID) . "\",\n";
     162                      echo "                    \"@id\": \"" . get_permalink ($post->ID) . "\",\n";
    163163                      echo '                    "dc:title":' . json_encode($post->post_title) . ",\n";
    164164                      $post_content = (!empty($post->post_content) && $post->post_content !== false) ? json_encode(substr($post->post_content, 0, 150)) : "";
  • wp-ldp/trunk/wpldp-settings.php

    r1523012 r1523017  
    2828        * @return {type}            description
    2929        */
    30        function initialize_container() {
    31          if (isset($_GET['settings-updated'])) {
     30       function initialize_container( $force = false ) {
     31         if (isset($_GET['settings-updated']) || $force ) {
    3232           $ldp_container_init = get_option('ldp_container_init', false);
    3333
    34            if ($ldp_container_init) {
     34           if ($ldp_container_init  || $force ) {
    3535             //TODO: Initialize the PAIR containers
    3636             $pair_terms = array(
    37                'project' => array(
    38                   'label' => __('Project', 'wpldp'),
    39                   'rdftype' => 'foaf:project'
    40                 ),
    4137               'initiative' => array(
    4238                  'label' => __('Initiative', 'wpldp'),
     
    7975                  'rdftype' => 'pair:thesis'
    8076                ),
    81                'actor' => array(
    82                   'label' => __('Actor', 'wpldp'),
    83                   'rdftype' => 'pair:actor'
    84                 ),
    8577               'person' => array(
    8678                  'label' => __('Person', 'wpldp'),
    87                   'rdftype' => 'pair:actor'
    88                 ),
    89                'idea' => array(
    90                   'label' => __('Idea', 'wpldp'),
    91                   'rdftype' => 'pair:label'
    92                 ),
    93                'resource' => array(
    94                   'label' => __('Resource', 'wpldp'),
    95                   'rdftype' => 'pair:resource'
     79                  'rdftype' => 'pair:person'
    9680                )
    9781             );
  • wp-ldp/trunk/wpldp.php

    r1523012 r1523017  
    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.1.0
     7 * Version: 1.1.1
    88 * Author: Sylvain LE BON, Benoit ALESSANDRONI
    99 * Author URI: http://www.happy-dev.fr/team/sylvain, http://benoit-alessandroni.fr/
     
    3030       * The current plugin version number
    3131       */
    32       protected static $version_number = '1.1.0';
     32      protected static $version_number = '1.1.1';
    3333
    3434      /**
     
    8282
    8383        if (self::$version_number !== $plugin_version) {
    84           if (self::$version_number == '1.1.0') {
     84          if (self::$version_number >= '1.1.0') {
    8585              //Force reinitializing the ldp containers models:
     86              global $wpLdpSettings;
    8687              if ( !empty( $wpLdpSettings ) ) {
    87                 $wpLdpSettings->initialize_container();
     88                $wpLdpSettings->initialize_container( true );
    8889              }
    8990              $actor_term = get_term_by('slug', 'actor', 'ldp_container');
Note: See TracChangeset for help on using the changeset viewer.