@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | $display_count = 0; |
100 | 100 | foreach ( $posts as $post ) { |
101 | - $display_count ++; |
|
101 | + $display_count++; |
|
102 | 102 | if ( $display_count > $limit ) { |
103 | 103 | break; |
104 | 104 | } |
@@ -108,8 +108,8 @@ discard block |
||
108 | 108 | $html .= '</div>'; |
109 | 109 | } |
110 | 110 | |
111 | - $html .= '</div>';// Text div. |
|
112 | - $html .= '</div><p></p>';// Main div. |
|
111 | + $html .= '</div>'; // Text div. |
|
112 | + $html .= '</div><p></p>'; // Main div. |
|
113 | 113 | |
114 | 114 | return $html; |
115 | 115 | |
@@ -217,12 +217,12 @@ discard block |
||
217 | 217 | $count = 0; |
218 | 218 | |
219 | 219 | foreach ( $words as $index => $word ) { |
220 | - $count ++; |
|
220 | + $count++; |
|
221 | 221 | if ( $count > $after_count ) { |
222 | 222 | $p_index = strpos( $word, '</p>' ); |
223 | 223 | // Make sure the paragraph tag is not wrapped in another element like a blockquote. |
224 | 224 | if ( false !== $p_index && false === strpos( $word, '</p></' ) ) { |
225 | - $words[ $index ] = substr_replace( $word, $this->shortcode_output( array() ), $p_index + 4, 0 ); |
|
225 | + $words[$index] = substr_replace( $word, $this->shortcode_output( array() ), $p_index + 4, 0 ); |
|
226 | 226 | $this->posts = array(); |
227 | 227 | break; |
228 | 228 | } |