Changes between Version 1 and Version 2 of Ticket #51827, comment 16
- Timestamp:
- 11/22/2020 08:35:13 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #51827, comment 16
v1 v2 6 6 > you'll get a `Sorry, you are not allowed to access this page.` error from WP...that is to be expected, since the Updates screen is not allowed when file mods are disallowed :-) 7 7 8 Right. Checking `wp_is_file_mod_allowed()` there is mostly for completeness. In theory a plugin would be able to use the `file_mod_allowed` filter and allow loading of the Update screen even when `DISALLOW_FILE_MODS` is defined and true, but disallow the actual update .8 Right. Checking `wp_is_file_mod_allowed()` there is mostly for completeness. In theory a plugin would be able to use the `file_mod_allowed` filter and allow loading of the Update screen even when `DISALLOW_FILE_MODS` is defined and true, but disallow the actual update (see the `#context` param in https://developer.wordpress.org/reference/hooks/file_mod_allowed/).