@@ -68,11 +68,13 @@ discard block |
||
68 | 68 | */ |
69 | 69 | $module_statuses = apply_filters( 'wordpoints_module_statuses', $module_statuses ); |
70 | 70 | |
71 | - if ( isset( $_REQUEST['module_status'] ) && in_array( wp_unslash( $_REQUEST['module_status'] ), $module_statuses, true ) ) { // WPCS: CSRF OK. |
|
71 | + if ( isset( $_REQUEST['module_status'] ) && in_array( wp_unslash( $_REQUEST['module_status'] ), $module_statuses, true ) ) { |
|
72 | +// WPCS: CSRF OK. |
|
72 | 73 | $status = sanitize_key( $_REQUEST['module_status'] ); // WPCS: CSRF OK. |
73 | 74 | } |
74 | 75 | |
75 | - if ( isset( $_REQUEST['s'] ) ) { // WPCS: CSRF OK. |
|
76 | + if ( isset( $_REQUEST['s'] ) ) { |
|
77 | +// WPCS: CSRF OK. |
|
76 | 78 | $_SERVER['REQUEST_URI'] = add_query_arg( 's', sanitize_text_field( wp_unslash( $_REQUEST['s'] ) ) ); // WPCS: CSRF OK. |
77 | 79 | } |
78 | 80 | |
@@ -311,7 +313,8 @@ discard block |
||
311 | 313 | |
312 | 314 | static $term; |
313 | 315 | |
314 | - if ( is_null( $term ) && isset( $_REQUEST['s'] ) ) { // WPCS: CSRF OK. |
|
316 | + if ( is_null( $term ) && isset( $_REQUEST['s'] ) ) { |
|
317 | +// WPCS: CSRF OK. |
|
315 | 318 | $term = sanitize_text_field( wp_unslash( $_REQUEST['s'] ) ); // WPCS: CSRF OK. |
316 | 319 | } |
317 | 320 | |
@@ -737,9 +740,12 @@ discard block |
||
737 | 740 | <p> |
738 | 741 | <?php if ( ! empty( $module_data['description'] ) ) : ?> |
739 | 742 | <?php echo wp_kses( $module_data['description'] , 'wordpoints_module_description' ); ?> |
740 | - <?php else : ?> |
|
743 | + <?php else { |
|
744 | + : ?> |
|
741 | 745 | |
742 | - <?php endif; ?> |
|
746 | + <?php endif; |
|
747 | +} |
|
748 | +?> |
|
743 | 749 | </p> |
744 | 750 | </div> |
745 | 751 | <div class="<?php echo esc_attr( $class ); ?> second module-version-author-uri"> |