Permalink
Browse files

Merge branch 'master' of github.com:devgeniem/dustpress

  • Loading branch information...
Nomafin committed Jun 5, 2017
2 parents 336a1ba + bac704a commit 1f1696ba32373970eadbc949a8fe9fbfeb7ea1d0
Showing with 9 additions and 5 deletions.
  1. +7 −3 classes/query.php
  2. +1 −1 dustpress.php
  3. +1 −1 partials/menuitem.dust
View
@@ -203,10 +203,14 @@ public static function get_posts( $args ) {
self::$query = new WP_Query( $options );
// Get the permalink of the post
if ( is_array( self::$query->posts ) && count( self::$query->posts ) > 0 ) {
// Get the permalink of the post if objects were found.
if (
is_array( self::$query->posts ) &&
self::$query->query_vars['fields'] !== 'ids' &&
count( self::$query->posts ) > 0
) {
foreach ( self::$query->posts as &$p ) {
$p->permalink = get_permalink( $p->ID );
$p->permalink = get_permalink( $p->ID );
}
}
View
@@ -6,7 +6,7 @@
Author: Miika Arponen & Ville Siltala / Geniem Oy
Author URI: http://www.geniem.com
License: GPLv3
Version: 1.6.4
Version: 1.6.5
*/
final class DustPress {
View
@@ -1,5 +1,5 @@
<li{?classes} class="{#classes}{.}{@sep} {/sep}{/classes}"{/classes} id="menu_item_{object_id}">
<a href="{url}">{title|s}</a>
<a href="{url}"{?target} target="{target}"{/target}>{title|s}</a>
{?show_submenu}
{@eq key=depth value=depth_now}

0 comments on commit 1f1696b

Please sign in to comment.