@@ -97,7 +97,8 @@ discard block |
||
97 | 97 | if ( is_integer( $post ) ) { |
98 | 98 | $this->ID = $post; |
99 | 99 | $this->init(); |
100 | - } elseif ( is_a( $post, '\WP_Post' ) ) { |
|
100 | + } |
|
101 | + elseif ( is_a( $post, '\WP_Post' ) ) { |
|
101 | 102 | $this->import( $post ); |
102 | 103 | } |
103 | 104 | } |
@@ -375,7 +376,8 @@ discard block |
||
375 | 376 | if ( $force ) { |
376 | 377 | $text = Helper::trim_words( $this->post_excerpt, $len, false ); |
377 | 378 | $trimmed = true; |
378 | - } else { |
|
379 | + } |
|
380 | + else { |
|
379 | 381 | $text = $this->post_excerpt; |
380 | 382 | } |
381 | 383 | } |
@@ -434,7 +436,8 @@ discard block |
||
434 | 436 | |
435 | 437 | if ( $readmore && isset( $readmore_matches ) && ! empty( $readmore_matches[1] ) ) { |
436 | 438 | $text .= ' <a href="' . $this->get_permalink() . '" class="read-more">' . trim( $readmore_matches[1] ) . '</a>'; |
437 | - } elseif ( $readmore ) { |
|
439 | + } |
|
440 | + elseif ( $readmore ) { |
|
438 | 441 | $text .= ' <a href="' . $this->get_permalink() . '" class="read-more">' . trim( $readmore ) . '</a>'; |
439 | 442 | } |
440 | 443 |