[wp-trac] [WordPress Trac] #44000: Add notification bubble to Tools menu for GDPR export/erase requests
WordPress Trac
noreply at wordpress.org
Thu May 10 11:45:51 UTC 2018
#44000: Add notification bubble to Tools menu for GDPR export/erase requests
----------------------------+------------------------------
Reporter: scott.deluzio | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch gdpr | Focuses:
----------------------------+------------------------------
Comment (by birgire):
[attachment:44000.2.diff] is a suggestion that uses the
{{{wp_count_user_requests()}}} function approach in #44034. The patch
there would need to be applied here as well to test.
This counts the ''confirmed'' user requests for both export and erase, and
add them together.
It also checks for the {{{erase_others_personal_data}}} and
{{{erase_others_personal_data}}} capabilities, before displaying the
bubble count.
So this approach can handle the case if user has e.g.
{{{erase_others_personal_data}}} but not {{{erase_others_personal_data}}},
so it would only display the bubble count for confirmed erase requests.
Further adjustments would be to add bubble counts to the sub-menus.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44000#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list