| @@ -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 ); |