Closed tangrufus closed 7 years ago
thanks for the catch, it was clearly too late when I was editing that code :) Fixed, and updated settings_errors() on admin page to only show DRA's notices : https://github.com/dmchale/disable-json-api/commit/a4f8cc57ca0558a0d5f9da8862e14e677076712a
admin_notices
hook andshow_admin_notices
method are unnecessary becauseadmin.php
already havesettings_errors();
.https://github.com/dmchale/disable-json-api/blob/1bd871d0104fe7759f7d8615456ca163f142652f/classes/disable-rest-api.php#L193
https://github.com/dmchale/disable-json-api/blob/1bd871d0104fe7759f7d8615456ca163f142652f/admin.php#L23