Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed WordPress theme API request that was failing. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zinigor
Copy link

@zinigor zinigor commented Mar 18, 2020

Also doing so removed a dependency and used curl instead to fetch the theme metadata.

The problem for me was the ./update script was failing with an error message saying that an object was passed into strlen inside the request class. I started digging why it was failing and reached the point where I found that the API request to WordPress theme API was no longer working, it returned the Action not implemented error.

I decided to see how it worked in the WordPress core and made it to work with a GET request instead of a POST request, getting rid of the Request class in the process. If you decide to merge this PR, the class can be removed from the code entirely, if it's not used anywhere outside this script.

Also doing so removed a dependency and used curl instead to fetch the theme metadata.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant