PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.0
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.0
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
← All changes | includes/Helpers/EnqueueHelper.php +5 -2 2.2.02.4.0 View file →
@@ -1,11 +1,14 @@
1 1 <?php
2 2 /**
3 3 * Enqueue Easy Invoice form styles
4 4 */
5 +if ( ! defined( 'ABSPATH' ) ) {
6 + exit;
7 +}
5 8 function easy_invoice_enqueue_form_styles() {
6 9 // Only on Easy Invoice admin pages
7 - $page = $_GET['page'] ?? '';
10 + $page = isset($_GET['page']) ? sanitize_key(wp_unslash($_GET['page'])) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
8 11 if (!empty($page) && (
9 12 strpos($page, 'easy-invoice') === 0 ||
10 13 strpos($page, 'easy-quote') === 0 ||
11 14 strpos($page, 'easy-invoice-builder') === 0 ||
@@ -21,9 +24,9 @@
21 24 * Dequeue WordPress default form CSS for Easy Invoice plugin
22 25 */
23 26 function easy_invoice_dequeue_form_styles() {
24 27 // Only on Easy Invoice admin pages
25 - $page = $_GET['page'] ?? '';
28 + $page = isset($_GET['page']) ? sanitize_key(wp_unslash($_GET['page'])) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
26 29 if (!empty($page) && (
27 30 strpos($page, 'easy-invoice') === 0 ||
28 31 strpos($page, 'easy-quote') === 0 ||
29 32 strpos($page, 'easy-invoice-builder') === 0 ||