You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A quick heads up for something that was troubling our setup.
On the Add new theme screen, we were getting this error:
"An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums."
Seems like interfering the themes_api in this screen won't behave nicely. Mostly because not all arguments are present in the request. We've fixed it by adding this:
if ( !property_exists($args, 'slug') ) return false;
right before this line:
if ( $args->slug != $theme_base )
return false;
Just wanted to share it here, in case someone needs that too.
Thanks for this great library!
The text was updated successfully, but these errors were encountered:
Hi there!
A quick heads up for something that was troubling our setup.
On the Add new theme screen, we were getting this error:
"An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums."
Seems like interfering the themes_api in this screen won't behave nicely. Mostly because not all arguments are present in the request. We've fixed it by adding this:
if ( !property_exists($args, 'slug') ) return false;
right before this line:
if ( $args->slug != $theme_base ) return false;
Just wanted to share it here, in case someone needs that too.
Thanks for this great library!
The text was updated successfully, but these errors were encountered: