| @@ -20,9 +20,9 @@ | ||
| 20 | 20 | |
| 21 | 21 | // Security check. |
| 22 | 22 | $wp_nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wpnonce'] ) ) : ''; // input var okay. |
| 23 | 23 | if ( ! wp_verify_nonce( $wp_nonce, 'wpda-apps-settings' ) ) { |
| 24 | - wp_die( __( 'ERROR: Not authorized', 'wp-data-access' ) ); | |
| 24 | + wp_die( esc_attr__( 'ERROR: Not authorized', 'wp-data-access' ) ); | |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | if ( 'save' === $action ) { |
| 28 | 28 | |
| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | <form id="wpda_settings_backend" method="post" |
| 48 | 48 | action="?page=<?php echo esc_attr( $this->page ); ?>&tab=apps"> |
| 49 | 49 | <table class="wpda-table-settings"> |
| 50 | 50 | <tr> |
| 51 | - <th><?php echo __( 'Scroll Offset', 'wp-data-access' ); ?></th> | |
| 51 | + <th><?php esc_html_e( 'Scroll Offset', 'wp-data-access' ); ?></th> | |
| 52 | 52 | <td> |
| 53 | 53 | <input |
| 54 | 54 | type="number" step="1" min="0" max="999" name="scroll_offset" maxlength="3" |
| 55 | 55 | value="<?php echo esc_attr( $scroll_offset ); ?>"> |
| @@ -59,21 +59,21 @@ | ||
| 59 | 59 | <div class="wpda-table-settings-button"> |
| 60 | 60 | <input type="hidden" name="action" value="save"/> |
| 61 | 61 | <button type="submit" class="button button-primary"> |
| 62 | 62 | <i class="fas fa-check wpda_icon_on_button"></i> |
| 63 | - <?php echo __( 'Save Apps Settings', 'wp-data-access' ); ?> | |
| 63 | + <?php esc_html_e( 'Save Apps Settings', 'wp-data-access' ); ?> | |
| 64 | 64 | </button> |
| 65 | 65 | <a href="javascript:void(0)" |
| 66 | - onclick="if (confirm('<?php echo __( 'Reset to defaults?', 'wp-data-access' ); ?>')) { | |
| 66 | + onclick="if (confirm('<?php esc_html_e( 'Reset to defaults?', 'wp-data-access' ); ?>')) { | |
| 67 | 67 | jQuery('input[name="action"]').val('setdefaults'); |
| 68 | 68 | jQuery('#wpda_settings_backend').trigger('submit') |
| 69 | 69 | }" |
| 70 | 70 | class="button"> |
| 71 | 71 | <i class="fas fa-times-circle wpda_icon_on_button"></i> |
| 72 | - <?php echo __( 'Reset Apps Settings To Defaults', 'wp-data-access' ); ?> | |
| 72 | + <?php esc_html_e( 'Reset Apps Settings To Defaults', 'wp-data-access' ); ?> | |
| 73 | 73 | </a> |
| 74 | 74 | </div> |
| 75 | - <?php wp_nonce_field( 'wpda-apps-settings', '_wpnonce', false ); ?> | |
| 75 | + <?php esc_attr( wp_nonce_field( 'wpda-apps-settings', '_wpnonce', false ) ); ?> | |
| 76 | 76 | </form> |
| 77 | 77 | <?php |
| 78 | 78 | |
| 79 | 79 | } |