Changeset 1701271
- Timestamp:
- 07/23/2017 10:15:30 PM (9 years ago)
- Location:
- wp-ldp/trunk
- Files:
-
- 3 edited
-
wpldp-api.php (modified) (1 diff)
-
wpldp-site-taxonomy.php (modified) (2 diffs)
-
wpldp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-ldp/trunk/wpldp-api.php
r1701266 r1701271 180 180 'orderby'=> 'menu_order', 181 181 'author' => $user->data->ID, 182 'post_status' => 'any' ,183 'paged'=>$paged184 )); 185 186 if ( $loop->have_posts ()) {182 'post_status' => 'any' 183 ) ); 184 185 $posts = $loop->get_posts(); 186 if ( !empty( $posts ) ) { 187 187 $result["@graph"][0]['posts'] = array( array( ) ); 188 foreach( $ loopas $post ) {188 foreach( $posts as $post ) { 189 189 $current_post_entry = array(); 190 190 $current_post_entry["@id"] = get_permalink($post->ID); -
wp-ldp/trunk/wpldp-site-taxonomy.php
r1701258 r1701271 155 155 156 156 $ldpSiteUrls = array(); 157 foreach ( $terms as $term ){ 158 $possibleUrl = get_term_meta( $term->term_id, "ldp_site_url", true ); 159 if ( $possibleUrl ) { 160 $ldpSiteUrls[] = rtrim( $possibleUrl, '/' ); 157 if ( !empty( $terms ) && !is_wp_error( $terms ) ) { 158 foreach ( $terms as $term ){ 159 $possibleUrl = get_term_meta( $term->term_id, "ldp_site_url", true ); 160 if ( $possibleUrl ) { 161 $ldpSiteUrls[] = rtrim( $possibleUrl, '/' ); 162 } 161 163 } 162 }164 } 163 165 164 166 $outputs = array(); … … 239 241 exit ('Class WpLdpSiteTaxonomy already exists'); 240 242 } 241 242 ?> -
wp-ldp/trunk/wpldp.php
r1701266 r1701271 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: 2.0. 17 * Version: 2.0.2 8 8 * Author: Sylvain LE BON, Benoit ALESSANDRONI 9 9 * Author URI: http://www.happy-dev.fr/team/sylvain, http://benoit-alessandroni.fr/ … … 32 32 * The current plugin version number 33 33 */ 34 protected static $version_number = '2.0. 1';34 protected static $version_number = '2.0.2'; 35 35 36 36 /**
Note: See TracChangeset
for help on using the changeset viewer.