These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * The template used for displaying page content in page.php |
||
4 | * |
||
5 | * @package WordPress |
||
6 | * @subpackage Strip |
||
7 | */ |
||
8 | |||
9 | ?> |
||
10 | |||
11 | <article id="post-<?php the_ID(); ?>" > |
||
12 | <div class="wrap"> |
||
13 | <?php |
||
14 | if ( '' !== get_the_post_thumbnail() ) : |
||
15 | the_post_thumbnail( 'strip-featured-thumbnail' ); |
||
16 | endif; |
||
17 | ?> |
||
18 | <header class="entry-header"> |
||
19 | <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> |
||
20 | </header><!-- .entry-header --> |
||
21 | |||
22 | <footer class="entry-meta"> |
||
23 | <?php strip_entry_meta(); ?> |
||
24 | |||
25 | View Code Duplication | <?php if ( ! post_password_required() && ( comments_open() || '0' !== get_comments_number() ) ) : ?> |
|
0 ignored issues
–
show
|
|||
26 | <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'strip' ), __( '1 Comment', 'strip' ), __( '% Comments', 'strip' ) ); ?></span> |
||
27 | <?php endif; ?> |
||
28 | |||
29 | <?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?> |
||
30 | </footer><!-- .entry-meta --> |
||
31 | |||
32 | <div class="entry-content clear"> |
||
33 | <?php the_content(); ?> |
||
34 | |||
35 | </div><!-- .entry-content --> |
||
36 | </div><!-- .entry-wrap --> |
||
37 | </article><!-- #post-## --> |
||
38 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.