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/forms/widget.php +9 -2 2.30.04.16.9 View file →
@@ -87,9 +87,9 @@
87 87 return;
88 88 }
89 89
90 90 // Directories of assets.
91 - $js_dir = GIVE_PLUGIN_URL . 'assets/dist/';
91 + $js_dir = GIVE_PLUGIN_URL . 'build/assets/dist/';
92 92
93 93 wp_enqueue_script( "{$this->scriptHandle}-js", $js_dir . 'js/admin-widgets.js', [ 'give-admin-scripts' ], GIVE_VERSION, false );
94 94 wp_enqueue_style( "{$this->scriptHandle}-css", $js_dir . 'css/admin-widgets.css', [], GIVE_VERSION, false );
95 95 }
@@ -504,5 +504,12 @@
504 504 <?php
505 505 }
506 506 }
507 507
508 -new Give_Forms_Widget();
508 +
509 +/**
510 + * @since 4.3.0 use widgets_init action and register_widget
511 + */
512 +add_action( 'widgets_init', static function() {
513 + register_widget( 'Give_Forms_Widget' );
514 +} );
515 +