| @@ -90,9 +90,8 @@ | ||
| 90 | 90 | $filterBy = null; |
| 91 | 91 | if(isset($_GET["filter"]) && strlen($_GET["filter"]) > 0){ |
| 92 | 92 | $filterBy = filter_input( INPUT_GET, "filter", FILTER_SANITIZE_STRING ); |
| 93 | 93 | } |
| 94 | - $action = $_SERVER["REQUEST_URI"]; | |
| 95 | 94 | echo '<div id="visualizer-search"><form action="" method="get"> |
| 96 | 95 | <input type="text" name="filter" value="' . $filterBy . '"> |
| 97 | 96 | <input type="hidden" name="page" value="visualizer"> |
| 98 | 97 | <input type="submit" class="button button-secondary" value="' . esc_attr__('Search', Visualizer_Plugin::NAME) . '"> |
| @@ -103,13 +102,13 @@ | ||
| 103 | 102 | echo '<ul>'; |
| 104 | 103 | foreach ( $this->types as $type => $label ) { |
| 105 | 104 | echo '<li class="visualizer-list-item">'; |
| 106 | 105 | if ( $type == $this->type ) { |
| 107 | - echo '<a class="page-numbers current" href="', add_query_arg( 'vpage', false ), '">'; | |
| 106 | + echo '<a class="page-numbers current" href="', esc_url(add_query_arg( 'vpage', false )), '">'; | |
| 108 | 107 | echo $label; |
| 109 | 108 | echo '</a>'; |
| 110 | 109 | } else { |
| 111 | - echo '<a class="page-numbers" href="', add_query_arg( array( 'type' => $type, 'vpage' => false ) ), '">'; | |
| 110 | + echo '<a class="page-numbers" href="', esc_url(add_query_arg( array( 'type' => $type, 'vpage' => false ) )), '">'; | |
| 112 | 111 | echo $label; |
| 113 | 112 | echo '</a>'; |
| 114 | 113 | } |
| 115 | 114 | echo '</li>'; |