| @@ -25,16 +25,12 @@ | ||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Returns Shortcode markup |
| 28 | 28 | * |
| 29 | - * @since 3.7.0 Sanitize attributes | |
| 30 | - * @since 3.0.3 Use static function on array_map callback to pass the id as reference for _give_redirect_form_id to prevent warnings on PHP 8.0.1 or plus | |
| 31 | 29 | * @since 2.9.0 |
| 32 | 30 | **/ |
| 33 | 31 | public function renderCallback($attributes) |
| 34 | 32 | { |
| 35 | - $attributes = give_clean($attributes); | |
| 36 | - | |
| 37 | 33 | $attributes = $this->parseAttributes( |
| 38 | 34 | [ |
| 39 | 35 | 'ids' => [], |
| 40 | 36 | 'tags' => [], |
| @@ -42,9 +38,9 @@ | ||
| 42 | 38 | 'goal' => '1000', |
| 43 | 39 | 'enddate' => '', |
| 44 | 40 | 'color' => '#28c77b', |
| 45 | 41 | 'heading' => 'Example Heading', |
| 46 | - 'image' => GIVE_PLUGIN_URL . 'build/assets/dist/images/onboarding-preview-form-image.min.jpg', | |
| 42 | + 'image' => GIVE_PLUGIN_URL . 'assets/dist/images/onboarding-preview-form-image.min.jpg', | |
| 47 | 43 | 'summary' => 'This is a summary.', |
| 48 | 44 | |
| 49 | 45 | ], |
| 50 | 46 | $attributes, |
| @@ -49,19 +45,11 @@ | ||
| 49 | 45 | ], |
| 50 | 46 | $attributes, |
| 51 | 47 | 'give_multi_form_goal' |
| 52 | 48 | ); |
| 53 | - | |
| 54 | 49 | $multiFormGoal = new MultiFormGoal( |
| 55 | 50 | [ |
| 56 | - 'ids' => array_map( | |
| 57 | - static function ($id) { | |
| 58 | - _give_redirect_form_id($id); | |
| 59 | - | |
| 60 | - return $id; | |
| 61 | - }, | |
| 62 | - $attributes['ids'] | |
| 63 | - ), | |
| 51 | + 'ids' => $attributes['ids'], | |
| 64 | 52 | 'tags' => $attributes['tags'], |
| 65 | 53 | 'categories' => $attributes['categories'], |
| 66 | 54 | 'goal' => $attributes['goal'], |
| 67 | 55 | 'enddate' => $attributes['enddate'], |