| @@ -215,12 +215,9 @@ | ||
| 215 | 215 | * @access private |
| 216 | 216 | */ |
| 217 | 217 | private function _renderLibrary() { |
| 218 | 218 | // Added by Ash/Upwork |
| 219 | - $filterBy = null; | |
| 220 | - if ( isset( $_GET['s'] ) && strlen( $_GET['s'] ) > 0 ) { | |
| 221 | - $filterBy = filter_input( INPUT_GET, 's', FILTER_SANITIZE_STRING ); | |
| 222 | - } | |
| 219 | + $filterBy = ! empty( $_GET['s'] ) ? sanitize_text_field( wp_unslash( $_GET['s'] ) ) : null; // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 223 | 220 | // Added by Ash/Upwork |
| 224 | 221 | echo $this->custom_css; |
| 225 | 222 | echo '<div id="visualizer-types" class="visualizer-clearfix">'; |
| 226 | 223 | echo '<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><symbol id="list-icon" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8C0 12.42 3.58 16 8 16C12.42 16 16 12.42 16 8C16 3.58 12.42 0 8 0ZM7.385 12.66H6.045L2.805 8.12L4.146 6.87L6.715 9.27L11.856 3.339L13.196 4.279L7.385 12.66Z"/></symbol></svg>'; |