Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #44176, comment 22


Ignore:
Timestamp:
12/19/2019 06:15:33 PM (5 years ago)
Author:
xkon
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44176, comment 22

    v4 v5  
    55The attachment:44176.2.diff :
    66
    7 Creates a new schema as `populate_roles_540()` that adds the 3 privacy caps to the administrator role by default.
     7Creates a new schema as `populate_roles_540()` that adds the 3 privacy caps to the administrator role by default & removes them from map_meta_cap.
    88
    99The 'Tools' is already opening for this role as-is, but I had to adjust the Settings so the Privacy setting could be accessed if someone only had the `manage_privacy_options`. I would love feedback on how to tackle the menu problem as I don't like much the if statement there and not really sure if it's ok to do it that way.