This plugin could hide/deny add new theme button
onnimonni opened this issue · 4 comments
Hey!
I'm using whoops errors in my local development. Sometimes the local WordPress can't reach the internet and I'll get warning like this one:
I want to have these warnings displayed in the frontend so that I can find problems in my code asap. Your plugin seems to solve most of these issues but not this one:
What I was trying to do:
When I go to themes folder I can see the Add new button.
If I click it all the hooks from this plugin and WordPress create a situation where I'll get error like this one:
What I wanted to achieve:
I'll review. the "add new theme" can also allow a local upload of a zip file, which we don't want to prevent happening
I know it does, I just didn't find anything which would disable only the connections to wp.org servers.
Thanks in advance :)!
I don't think there is, which is why I'm hiding it via CSS. but I'll look some more.
OK. Upon further digging, I was setting items inside the theme API call wrong. I'm making an update that'll fix the error return. There's still a small bit of CSS to load for the page to remove the bar itself (since that can't be moved otherwise)