diff --git a/composer.json b/composer.json index 4cb86865..76a9655b 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ } ], "require": { - "php": ">=5.3.0", + "php": ">=5.6.0", "ayecode/wp-font-awesome-settings": "^1.0", "ayecode/wp-super-duper": "^1.0", "ayecode/wp-ayecode-ui": "^0", diff --git a/includes/admin/register-settings.php b/includes/admin/register-settings.php index f21398e0..aa340603 100644 --- a/includes/admin/register-settings.php +++ b/includes/admin/register-settings.php @@ -522,8 +522,8 @@ function wpinv_get_pages( $with_slug = false, $default_label = null ) { // Add sorting $sql .= " ORDER BY post_title ASC"; - // Prepare the SQL query to include the excluded pages - $pages = $wpdb->get_results( $wpdb->prepare( $sql, ...$exclude_pages ) ); + // Prepare the SQL query to include the excluded pages only if we have placeholders + $pages = $exclude_pages_placeholders ? $wpdb->get_results( $wpdb->prepare( $sql, ...$exclude_pages ) ) : $wpdb->get_results( $sql ); $pages_options = array(); diff --git a/invoicing.php b/invoicing.php index 3c5dd024..ee1ea1d6 100644 --- a/invoicing.php +++ b/invoicing.php @@ -3,7 +3,7 @@ * Plugin Name: GetPaid * Plugin URI: https://wpinvoicing.com/ * Description: A lightweight and VAT compliant payments and invoicing plugin. - * Version: 2.8.13 + * Version: 2.8.14 * Author: AyeCode Ltd * Author URI: https://wpinvoicing.com * Text Domain: invoicing @@ -23,7 +23,7 @@ } if ( ! defined( 'WPINV_VERSION' ) ) { - define( 'WPINV_VERSION', '2.8.13' ); + define( 'WPINV_VERSION', '2.8.14' ); } // Include the main Invoicing class. diff --git a/readme.txt b/readme.txt index e94af55d..9713888c 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.ko-fi.com/stiofan Tags: payments, invoicing, Paypal, Stripe, payment Requires at least: 4.9 Tested up to: 6.6 -Stable tag: 2.8.13 +Stable tag: 2.8.14 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -144,6 +144,9 @@ Automatic updates should work seamlessly. To avoid unforeseen problems, we alway == Changelog == += 2.8.14 - 2024-09-26 = +* wpinv_get_pages() using prepare when not needed causes PHP notice - FIXED + = 2.8.13 - 2024-09-16 = * Authorize.net documentation links updated - CHANGED * Composer packages updated - UPDATED