Advertisement
gosunatxrea

collapsArchList.php.diff

Jul 5th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. --- collapsArchList.php.orig    Thu Jul 05 18:34:42 2012
  2. +++ collapsArchList.php Thu Jul 05 18:50:50 2012
  3. @@ -106,7 +106,7 @@
  4.                                   $wpdb->term_taxonomy.term_id
  5.    WHERE post_status='publish' $postTypeQuery $inExcludeYearQuery $inExcludeCatQuery
  6.    GROUP BY $wpdb->posts.ID
  7. -  ORDER BY $wpdb->posts.post_date $sort";
  8. +  ORDER BY $wpdb->posts.post_date $archSortOrder";
  9.  
  10.    $allPosts=$wpdb->get_results($postquery);
  11.  
  12. @@ -359,7 +359,7 @@
  13.        }
  14.        $tmp_text = '';
  15.        if ($postTitleLength>0 && strlen($title_text)>$postTitleLength ) {
  16. -        $tmp_text = substr($title_text, 0, $postTitleLength );
  17. +        $tmp_text = mb_substr($title_text, 0, $postTitleLength );
  18.          $tmp_text .= ' …';
  19.        }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement