| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | |
| 22 | 22 | // Security check. |
| 23 | 23 | $wp_nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wpnonce'] ) ) : ''; // input var okay. |
| 24 | 24 | if ( ! wp_verify_nonce( $wp_nonce, 'wpda-uninstall-settings-' . WPDA::get_current_user_login() ) ) { |
| 25 | - wp_die( __( 'ERROR: Not authorized', 'wp-data-access' ) ); | |
| 25 | + wp_die( esc_attr__( 'ERROR: Not authorized', 'wp-data-access' ) ); | |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | if ( 'save' === $action ) { |
| 29 | 29 | |
| @@ -64,27 +64,27 @@ | ||
| 64 | 64 | action="?page=<?php echo esc_attr( $this->page ); ?>&tab=uninstall"> |
| 65 | 65 | <table class="wpda-table-settings"> |
| 66 | 66 | <tr> |
| 67 | 67 | <th> |
| 68 | - <?php echo __( 'On Plugin Uninstall', 'wp-data-access' ); ?> | |
| 68 | + <?php esc_html_e( 'On Plugin Uninstall', 'wp-data-access' ); ?> | |
| 69 | 69 | </th> |
| 70 | 70 | <td> |
| 71 | 71 | <label> |
| 72 | 72 | <input type="checkbox" name="delete_plugin" style="margin-right: 0" checked |
| 73 | 73 | disabled="disabled"> |
| 74 | - <?php echo __( 'Delete plugin', 'wp-data-access' ); ?> | |
| 74 | + <?php esc_html_e( 'Delete plugin', 'wp-data-access' ); ?> | |
| 75 | 75 | </label> |
| 76 | 76 | <br/> |
| 77 | 77 | <label> |
| 78 | 78 | <input type="checkbox" name="delete_tables" |
| 79 | 79 | style="margin-right: 0" <?php echo 'on' === $delete_tables ? 'checked' : ''; ?>> |
| 80 | - <?php echo __( 'Delete plugin tables (all data will be lost)', 'wp-data-access' ); ?> | |
| 80 | + <?php esc_html_e( 'Delete plugin tables (all data will be lost)', 'wp-data-access' ); ?> | |
| 81 | 81 | </label> |
| 82 | 82 | <br/> |
| 83 | 83 | <label> |
| 84 | 84 | <input type="checkbox" name="delete_options" |
| 85 | 85 | style="margin-right: 0" <?php echo 'on' === $delete_options ? 'checked' : ''; ?>> |
| 86 | - <?php echo __( 'Delete plugin settings (all settings will be lost)', 'wp-data-access' ); ?> | |
| 86 | + <?php esc_html_e( 'Delete plugin settings (all settings will be lost)', 'wp-data-access' ); ?> | |
| 87 | 87 | </label> |
| 88 | 88 | </td> |
| 89 | 89 | </tr> |
| 90 | 90 | </table> |
| @@ -91,18 +91,18 @@ | ||
| 91 | 91 | <div class="wpda-table-settings-button"> |
| 92 | 92 | <input type="hidden" name="action" value="save"/> |
| 93 | 93 | <button type="submit" class="button button-primary"> |
| 94 | 94 | <i class="fas fa-check wpda_icon_on_button"></i> |
| 95 | - <?php echo __( 'Save Uninstall Settings', 'wp-data-access' ); ?> | |
| 95 | + <?php esc_html_e( 'Save Uninstall Settings', 'wp-data-access' ); ?> | |
| 96 | 96 | </button> |
| 97 | 97 | <a href="javascript:void(0)" |
| 98 | - onclick="if (confirm('<?php echo __( 'Reset to defaults?', 'wp-data-access' ); ?>')) { | |
| 98 | + onclick="if (confirm('<?php esc_html_e( 'Reset to defaults?', 'wp-data-access' ); ?>')) { | |
| 99 | 99 | jQuery('input[name=\'action\']').val('setdefaults'); |
| 100 | 100 | jQuery('#wpda_settings_uninstall').trigger('submit'); |
| 101 | 101 | }" |
| 102 | 102 | class="button button-secondary"> |
| 103 | 103 | <i class="fas fa-times-circle wpda_icon_on_button"></i> |
| 104 | - <?php echo __( 'Reset Uninstall Settings To Defaults', 'wp-data-access' ); ?> | |
| 104 | + <?php esc_html_e( 'Reset Uninstall Settings To Defaults', 'wp-data-access' ); ?> | |
| 105 | 105 | </a> |
| 106 | 106 | </div> |
| 107 | 107 | <?php wp_nonce_field( 'wpda-uninstall-settings-' . WPDA::get_current_user_login(), '_wpnonce', false ); ?> |
| 108 | 108 | </form> |