Can’t hide new layout notice
-
On the admin screen I’m getting “Ultimate WordPress Auction Plugin: Important Message – We have implemented a new layout for the auction list page and auction detail page. The new layout appears by default on both pages. We have given the option to change the layout for auction pages. So, the admin can set the old layout or new layout from the auction settings. Hide Notice“. Clicking “Hide Notice” doesn’t hide it!
The link underlying “Hide Notice” is <my site>/wp-admin/admin.php?page=ultimate-auction&wdm_uwa_plugin_layout_ignore=0
I think there are the following problems in the code:
- wdm_uwa_plugin_layout_notice: nonce that is generated is not included in the link
- wdm_uwa_plugin_layout_ignore: becuase a link is being used, $_GET should be used rather than $_POST
- wdm_uwa_plugin_layout_ignore: if the nonce had been included, the wp_verify_nonce arguments are wrong. Think they should be something like: wp_verify_nonce( ? ? ? ? ? ? ? $_GET[‘ua_layout_wp_n_f’], ‘wdm_uwa_plugin_layout_ignore’ )
Pending a fix I can workaround the problem using this WP CLI:
wp user meta add <user_id> wdm_uwa_plugin_layout_ignore_notice true
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.