| @@ -722,11 +722,8 @@ | ||
| 722 | 722 | } |
| 723 | 723 | #toplevel_page_visualizer ul.wp-submenu li.wp-first-item + li + li + li > a:hover { |
| 724 | 724 | box-shadow: inherit; |
| 725 | 725 | } |
| 726 | - #toplevel_page_visualizer ul.wp-submenu li.wp-first-item + li + li + li + li { | |
| 727 | - display: none; | |
| 728 | - } | |
| 729 | 726 | </style> |
| 730 | 727 | <script type="text/javascript"> |
| 731 | 728 | jQuery( document ).ready( function() { |
| 732 | 729 | jQuery( '#toplevel_page_visualizer' ).on( 'click', 'li:not(.wp-submenu-head, .wp-first-item):eq(2)', function( e ) { |
| @@ -885,9 +882,9 @@ | ||
| 885 | 882 | |
| 886 | 883 | $this->getDisplayFilters( $query_args ); |
| 887 | 884 | |
| 888 | 885 | // Added by Ash/Upwork |
| 889 | - $filterByMeta = ! empty( $_GET['s'] ) ? sanitize_text_field( wp_unslash( $_GET['s'] ) ) : null; // phpcs:ignore WordPress.Security.NonceVerification.Recommended | |
| 886 | + $filterByMeta = filter_input( INPUT_GET, 's', FILTER_SANITIZE_STRING ); | |
| 890 | 887 | if ( $filterByMeta ) { |
| 891 | 888 | $query = array( |
| 892 | 889 | 'key' => Visualizer_Plugin::CF_SETTINGS, |
| 893 | 890 | 'value' => $filterByMeta, |
| @@ -1175,21 +1172,6 @@ | ||
| 1175 | 1172 | <a href="<?php echo tsdk_utmify( Visualizer_Plugin::PRO_TEASER_URL, 'wpml-support', 'visualizer_render_char' ); ?>"target="_blank"><?php esc_html_e( 'Upgrade to PRO to active this translation for charts', 'visualizer' ); ?></a> |
| 1176 | 1173 | </div> |
| 1177 | 1174 | <?php |
| 1178 | 1175 | } |
| 1179 | - } | |
| 1180 | - | |
| 1181 | - /** | |
| 1182 | - * Check chart is enabled or not. | |
| 1183 | - * | |
| 1184 | - * @param string $type Chart ID. | |
| 1185 | - * | |
| 1186 | - * @return bool Default false | |
| 1187 | - */ | |
| 1188 | - public static function checkChartStatus( $type ) { | |
| 1189 | - $types = self::_getChartTypesLocalized( false, false, false, true ); | |
| 1190 | - if ( isset( $types[ $type ] ) ) { | |
| 1191 | - return ! empty( $types[ $type ]['enabled'] ); | |
| 1192 | - } | |
| 1193 | - return false; | |
| 1194 | 1176 | } |
| 1195 | 1177 | } |