Yoast / yoast-acf-analysis

WordPress plugin that adds the content of all ACF fields to the Yoast SEO score analysis.
https://wordpress.org/plugins/acf-content-analysis-for-yoast-seo/
GNU General Public License v3.0
61 stars 20 forks source link

Make ACF work with Classic Editor #256

Closed bintzandt closed 4 years ago

bintzandt commented 4 years ago

Summary

We cannot access the core/block-editor store if someone is using the Classic Editor. Therefore, I have added an additional check to see whether the selector is available. The change occurred in #243, which adds support for blocks without checking if blocks are available.

If not, we fallback to the method that we used earlier.

Although this is not the nicest solution, it works. And I do not have enough context to actually create something different here.

This PR can be summarized in the following changelog entry:

Relevant technical choices:

Test instructions

This PR can be tested by following these steps:

  1. Install Yoast SEO, Advanced Custom Fields (5.8.11), Classic Editor (1.5)
  2. Checkout this branch
  3. Activate Yoast ACF Analysis
  4. Add a new Post, see that there are no errors in the console (and that Yoast ACF Analysis works fine).

Please ping devteam-core after merging this PR so that they can create a new RC

Fixes https://yoast.atlassian.net/browse/QAK-1862

maartenleenders commented 4 years ago

👍 errors are gone