| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| | |
| 7 | 7 | | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | | |
| 8 | 8 | | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| | |
| 9 | 9 | | | |
| 10 | - | (c) Jerome Bruandet ~ https://code-profiler.com/ | | |
| 10 | + | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ | | |
| 11 | 11 | +=====================================================================+ |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | if (! defined('ABSPATH') ) { die('Forbidden'); } |
| @@ -35,13 +35,8 @@ | ||
| 35 | 35 | $id = sanitize_text_field( $_REQUEST['id'] ); |
| 36 | 36 | } |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | -// Search query: get rid of slashes added by WordPress | |
| 40 | -if (! empty( $_REQUEST['s'] ) ) { | |
| 41 | - $_REQUEST['s'] = sanitize_text_field ( stripslashes( $_REQUEST['s'] ) ); | |
| 42 | -} | |
| 43 | - | |
| 44 | 39 | if (! empty( $section ) ) { |
| 45 | 40 | // View selected profile |
| 46 | 41 | require 'menu_view_profile.php'; |
| 47 | 42 | |
| @@ -88,9 +83,9 @@ | ||
| 88 | 83 | <?php |
| 89 | 84 | // Search query |
| 90 | 85 | if (! empty( $_REQUEST['s'] ) ) { |
| 91 | 86 | echo '<span class="subtitle">'; |
| 92 | - printf( esc_html__('Filter: %s'), '<code>' . esc_html( $_REQUEST['s'] ) . '</code>'); | |
| 87 | + printf( esc_html__('Filter: %s'), '<code>' . esc_html( stripslashes( $_REQUEST['s'] ) ) . '</code>'); | |
| 93 | 88 | echo '</span>'; |
| 94 | 89 | } |
| 95 | 90 | $CPTableProfiles->prepare_items(); |
| 96 | 91 | $CPTableProfiles->search_box( esc_attr__('Filter', 'code-profiler'), 'search_id'); |
| @@ -106,9 +101,9 @@ | ||
| 106 | 101 | ?> |
| 107 | 102 | <br /> |
| 108 | 103 | </div> |
| 109 | 104 | <div class="alignleft actions bulkactions"> |
| 110 | - <input type="button" class="button-primary" style="min-width:100px" value="<?php esc_attr_e('Help', 'code-profiler')?>" onclick="jQuery('#cp-footer-help').slideToggle(500);"/> | |
| 105 | + <input type="button" class="button button-primary" style="min-width:100px" value="<?php esc_attr_e('Help', 'code-profiler')?>" onclick="jQuery('#cp-footer-help').slideToggle(500);"/> | |
| 111 | 106 | </div> |
| 112 | 107 | </div> |
| 113 | 108 | <?php |
| 114 | 109 | } |