Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert change to cope with 0 translations, and instead tackle problem…

… root cause in theme
  • Loading branch information...
commit ec9e554b7b168040b892e118324d8edb0938f9b1 1 parent cbc586a
Simon Wheatley simonwheatley authored
Showing with 6 additions and 7 deletions.
  1. +6 −7 class-comment.php
13 class-comment.php
View
@@ -27,13 +27,12 @@ public function __construct() {
**/
public function comments_template_args( $args ) {
if ( isset( $args[ 'post_id' ] ) && ! empty( $args[ 'post_id' ] ) ) {
- if ( $posts = bbl_get_post_translations( $args[ 'post_id' ] ) ) {
- if ( isset( $args[ 'post__in' ] ) && ! is_array( $args[ 'post__in' ] ) )
- $args[ 'post__in' ] = array();
- foreach ( $posts as & $post )
- $args[ 'post__in' ][] = $post->ID;
- unset( $args[ 'post_id' ] );
- }
+ $posts = bbl_get_post_translations( $args[ 'post_id' ] );
+ if ( isset( $args[ 'post__in' ] ) && ! is_array( $args[ 'post__in' ] ) )
+ $args[ 'post__in' ] = array();
+ foreach ( $posts as & $post )
+ $args[ 'post__in' ][] = $post->ID;
+ unset( $args[ 'post_id' ] );
}
return $args;
}
Please sign in to comment.
Something went wrong with that request. Please try again.