I’m getting this error:
Fatal error: Cannot use object of type WP_Error as array in /srv/www/wordpress-themereview-vvv/htdocs/wp-content/plugins/theme-checklist/theme-checklist.php on line 97
That’s this line:
if( is_wp_error($request) && isset($request['response']['code']) && $request['response']['code'] == 200 ) {
Using var_dump to look into $request produces:
]]>object(WP_Error)#349 (2) { [“errors”]=> array(1) { [“http_request_failed”]=> array(1) { [0]=> string(42) “Could not resolve host: themechecklist.org” } } [“error_data”]=> array(0) { } }
This is a great idea.
Here are few checks that are missing
– Sanitization of data when saving to the database.
– Use nonces if not using the settings api
– Check the style.css tags
– Theme name
You might want to add a link to the localization documentation on the site.
https://make.www.ads-software.com/docs/theme-developer-handbook/part-two-theme-functionality/internationalization/