PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 3.14.2
GiveWP – Donation Plugin and Fundraising Platform v3.14.2
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 2.31.0 2.31.1 All 253 releases
← All changes | includes/plugin-compatibility.php +24 -7 2.3.13.14.2 View file →
@@ -12,12 +12,31 @@
12 12 */
13 13
14 14
15 15 /**
16 + * If Tickera is active then allow TCPDF calls in HTML.
17 + *
18 + * TCPDF defines this as false by default as a security precaution. Because Tickera uses GiveWP's composer autoloaded
19 + * TCPDF the constant is false. Therefore, we will set it to true so the QR code feature works as expected.
20 + *
21 + * GitHub Issue:
22 + * See: https://tcpdf.org/examples/example_049/
23 + *
24 + * @since 2.5.4
25 + */
26 +function give_tickera_qr_compatibility() {
27 + if ( is_plugin_active( 'tickera-event-ticketing-system/tickera.php' ) ) {
28 + define( 'K_TCPDF_CALLS_IN_HTML', true );
29 + }
30 +}
31 +
32 +add_action( 'plugins_loaded', 'give_tickera_qr_compatibility' );
33 +
34 +/**
16 35 * Disables the mandrill_nl2br filter while sending Give emails.
17 36 *
37 + * @return void
18 38 * @since 1.4
19 - * @return void
20 39 */
21 40 function give_disable_mandrill_nl2br() {
22 41 add_filter( 'mandrill_nl2br', '__return_false' );
23 42 }
@@ -27,11 +46,10 @@
27 46
28 47 /**
29 48 * This function will clear the Yoast SEO sitemap cache on update of settings
30 49 *
50 + * @return void
31 51 * @since 1.8.9
32 - *
33 - * @return void
34 52 */
35 53 function give_clear_seo_sitemap_cache_on_settings_change() {
36 54 // Load required file if the fn 'is_plugin_active' doesn't exists.
37 55 if ( ! function_exists( 'is_plugin_active' ) ) {
@@ -38,10 +56,10 @@
38 56 require_once ABSPATH . 'wp-admin/includes/plugin.php';
39 57 }
40 58
41 59 if ( ( is_plugin_active( 'wordpress-seo/wp-seo.php' )
42 - || is_plugin_active( 'wordpress-seo-premium/wp-seo-premium.php' ) )
43 - && class_exists( 'WPSEO_Sitemaps_Cache' )
60 + || is_plugin_active( 'wordpress-seo-premium/wp-seo-premium.php' ) )
61 + && class_exists( 'WPSEO_Sitemaps_Cache' )
44 62 ) {
45 63
46 64 $forms_singular_option = give_get_option( 'forms_singular' );
47 65 $forms_archive_option = give_get_option( 'forms_singular' );
@@ -68,11 +86,10 @@
68 86 * editor page.
69 87 *
70 88 * See link: https://github.com/impress-org/give/issues/3171#issuecomment-387471355
71 89 *
90 + * @return boolean
72 91 * @since 2.1.3
73 - *
74 - * @return boolean
75 92 */
76 93 function give_elementor_hide_shortcodes_button() {
77 94
78 95 /**