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 | src/Onboarding/Wizard/FormPreview.php +2 -1 4.15.54.16.9 View file →
@@ -46,13 +46,14 @@
46 46 * Conditionally renders Form Preview markup
47 47 *
48 48 * If the current page query matches the form preview's slug, method renders the form preview.
49 49 *
50 + * @since 4.16.6 add user capability check
50 51 * @since 2.8.0
51 52 **/
52 53 public function setup_form_preview()
53 54 {
54 - if (empty($_GET['page']) || $this->slug !== $_GET['page']) { // WPCS: CSRF ok, input var ok.
55 + if (empty($_GET['page']) || $this->slug !== $_GET['page'] || ! current_user_can('manage_give_settings')) { // WPCS: CSRF ok, input var ok.
55 56 return;
56 57 } else {
57 58 $this->render_page();
58 59 }