PluginProbe
Booking Calendar / 11.8.3
Booking Calendar v11.8.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
← All changes | includes/_capacity/resource_support.php +4 -3 10.1.311.8.3 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2
3 -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly //FixIn: 9.8.0.4
3 +if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly // FixIn: 9.8.0.4.
4 4
5 5
6 6 class WPBC_RESOURCE_SUPPORT {
7 7
@@ -62,9 +62,9 @@
62 62 * @return array|mixed|object|stdClass[]|null
63 63 */
64 64 function get__sql__booking_resources__arr() {
65 65
66 - // CACHE - GET :: check if such request was cached and get it ----------------------------------------------- //FixIn: 9.7.3.14
66 + // CACHE - GET :: check if such request was cached and get it ----------------------------------------------- // FixIn: 9.7.3.14.
67 67 $params_for_cache = maybe_serialize( $this->resource_id_arr );
68 68 $cache_result = wpbc_cache__get( 'WPBC_RESOURCE_SUPPORT__sql', $params_for_cache );
69 69 if ( ! is_null( $cache_result ) ) {
70 70 return $cache_result;
@@ -137,11 +137,12 @@
137 137 */
138 138 if ( empty( $sql_args ) ) {
139 139 $sql_prepared = $sql['start_select'] . $sql['from'] . $sql['where'] . $sql['order'] . $sql['limit'];
140 140 } else {
141 + /* phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare */
141 142 $sql_prepared = $wpdb->prepare( $sql['start_select'] . $sql['from'] . $sql['where'] . $sql['order'] . $sql['limit'] , $sql_args );
142 143 }
143 -
144 + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter
144 145 $bookings_sql_obj = $wpdb->get_results( $sql_prepared );
145 146
146 147 // CACHE - SAVE :: ------------------------------------------------------------------------------------------------
147 148 $cache_result = wpbc_cache__save( 'WPBC_RESOURCE_SUPPORT__sql', $params_for_cache, $bookings_sql_obj );