Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | function wpinv_recurring_subscriptions_list() { |
||
10 | ?> |
||
11 | <div class="wrap"> |
||
12 | <h1> |
||
13 | <?php _e( 'Subscriptions', 'invoicing' ); ?> |
||
14 | <a href="<?php echo esc_url( add_query_arg( array( 'wpi_action' => 'add_subscription' ) ) ); ?>" class="add-new-h2"><?php _e( 'Add New', 'invoicing' ); ?></a> |
||
15 | </h1> |
||
16 | <?php |
||
17 | //$subscribers_table = new EDD_Subscription_Reports_Table(); |
||
|
|||
18 | //$subscribers_table->prepare_items(); |
||
19 | ?> |
||
20 | |||
21 | <form id="subscribers-filter" method="get"> |
||
22 | <input type="hidden" name="post_type" value="download" /> |
||
23 | <input type="hidden" name="page" value="edd-subscriptions" /> |
||
24 | <?php //$subscribers_table->views() ?> |
||
25 | <?php //$subscribers_table->search_box( __( 'Search', 'invoicing' ), 'subscriptions' ) ?> |
||
26 | <?php //$subscribers_table->display() ?> |
||
27 | </form> |
||
28 | </div> |
||
29 | <?php |
||
30 | } |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.