PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | includes/filters.php +3 -2 2.30.04.16.9 View file →
@@ -332,8 +332,9 @@
332 332
333 333 /**
334 334 * Validate active gateway value before returning result.
335 335 *
336 + * @since 4.9.0 rename function - PHP 8 compatibility
336 337 * @since 2.1.0
337 338 *
338 339 * @param $value
339 340 *
@@ -338,9 +339,9 @@
338 339 * @param $value
339 340 *
340 341 * @return array
341 342 */
342 -function __give_validate_active_gateways( $value ) {
343 +function give_validate_active_gateways( $value ) {
343 344 $gateways = array_keys( give_get_payment_gateways() );
344 345 $active_gateways = is_array( $value ) ? array_keys( $value ) : [];
345 346
346 347 // Remove deactivated payment gateways.
@@ -368,5 +369,5 @@
368 369
369 370 return $value;
370 371 }
371 372
372 -add_filter( 'give_get_option_gateways', '__give_validate_active_gateways', 10, 1 );
373 +add_filter( 'give_get_option_gateways', 'give_validate_active_gateways', 10, 1 );