PluginProbe
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards / 5.5.85
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards v5.5.85
5.5.85 5.5.84 5.5.83 5.5.82 5.5.81 5.5.80 5.5.79 5.5.77 5.5.76 5.5.75 5.5.73 5.5.72 5.5.22 5.5.23 5.5.29 5.5.3 5.5.31 5.5.32 5.5.34 5.5.35 5.5.36 5.5.37 5.5.4 5.5.40 5.5.41 All 161 releases
← All changes | WPDataAccess/Settings/WPDA_Settings.php +5 -3 5.5.73 → 5.5.85 View file →
@@ -4,8 +4,9 @@
4 4 * Suppress "error - 0 - No summary was found for this file" on phpdoc generation
5 5 *
6 6 * @package WPDataAccess\Settings
7 7 */
8 +// phpcs:disable WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing -- verified on page
8 9 namespace WPDataAccess\Settings;
9 10
10 11 /**
11 12 * Class WPDA_Settings
@@ -63,12 +64,11 @@
63 64 public function __construct( $current_tab ) {
64 65 // Get menu slug of current page.
65 66 if ( isset( $_REQUEST['page'] ) ) {
66 67 $this->page = sanitize_text_field( wp_unslash( $_REQUEST['page'] ) );
67 - // input var okay.
68 68 } else {
69 69 // In order to show a list table we need a page.
70 - wp_die( __( 'ERROR: Wrong arguments [missing page argument]', 'wp-data-access' ) );
70 + wp_die( esc_attr__( 'ERROR: Wrong arguments [missing page argument]', 'wp-data-access' ) );
71 71 }
72 72 $this->current_tab = $current_tab;
73 73 // Tabs array is filled in constructor to add i18n.
74 74 $this->tabs = array(
@@ -102,9 +102,9 @@
102 102 ?>
103 103 <div class="wrap">
104 104 <h1>
105 105 <?php
106 - echo __( 'WP Data Access Settings', 'wp-data-access' );
106 + esc_html_e( 'WP Data Access Settings', 'wp-data-access' );
107 107 ?>
108 108 </h1>
109 109 <?php
110 110 $this->add_tabs();
@@ -137,4 +137,6 @@
137 137 <?php
138 138 }
139 139
140 140 }
141 +
142 +// phpcs:disable WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing