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

Remove unused method for fetching preview of single shortcode #764

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

Conversation

goldenapples
Copy link
Contributor

Following on from #743 (comment)

Removes the unused "fetch()" method from Shortcode View constructor (it was confusingly making a request to the 'do_shortcode' ajax endpoint, which was removed a long time ago). Also removes the nonce which is set with each separate query in the bulk_do_shortcode request - since #743, a single nonce is being sent as a top-level field on the request and is being checked by the 'bulk_do_shortcode' endpoint.

This is causing some test failures, because we have specs still testing the shortcode constructor.fetch() function. There's no reason to test this function since its no longer used, but I didn't want to remove the tests without replacing them with tests that cover the .delayedFetch() function, and that will take a bit of thought.

Removes the unused "fetch()" method from Shortcode View constructor (it
was confusingly making a request to the 'do_shortcode' ajax endpoint,
which was removed a long time ago). Also removes the nonce which is set
with each separate query in the bulk_do_shortcode request - since #743,
a single nonce is being sent as a top-level field on the request and is
being checked by the 'bulk_do_shortcode' endpoint.
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