Go to settings for this field group and make sure it is available for post, page and product, in order to be able to fully test it. See screenshot below.
Within the field group add a new field. It is easiest if the field type is text area
If you open a post/page/product with classic editor, the the field should appear at the bottom.
Test analyses
Create a post/page/product.
Add some text for example this sample
(Minimum of 300 words such as to be sure that all analyses are available).
Passive voice
Add a passive sentence to the custom field. For example: The cat was greeted by the dog.
Make sure that the percentage of passive sentences increases. (When using the example text, it increases from 60% to 61.3%
Inclusive language
Add a non inclusive word to the custom field. For example midget.
Make sure that midget is recognized by inclusive language analysis.
Keyphrase analyses
Add apple as the keyphrase.
Add the word apple to the custom field.
Look at keyphrase density and keyphrase distribution. Make sure that the count of keyphrases is 1 higher. When using the example text, the count goes from 24 times to 25 times.
Paragraph length
Add a paragraph of at least 150 words to the custom field. (You can copy/past the last paragraph from the example text.
Make sure the number of too long paragraphs is upped by one. If you use the example text, the number of too long paragraphs goes from 1 to 2.
Test compatibility with previous wordpress versions
This bug was probably caused by a change in wordpress core. So it is good to confirm it still works with older versions.
Downgrade wordpress to 5.9. You can use WP Downgrade plugin for that.
Repeat the tests above.
Upgrade wordpress back to the most recent version (6.1.1. at the time of writing).
Test with wordproof disabled
Disable the wordproof plugin. Repeat the tests above.
Test block editor.
Make sure that the behaviour in the block editor is not affected.
Summary
This bug was caused by wordproof being activated for a yet unknown reason.
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
This PR can be tested by following these steps:
NOTE: highlighting is not possible in custom fields. This is known. This issue was created for that.
Prep
19508-the-content-in-acf-fields-is-not-detected-for-analysis-when-classic-editor-is-used
composer install
yarn
yarn build
(NOTE: notgrunt build
)custom fields
text area
Test analyses
Passive voice
The cat was greeted by the dog.
Inclusive language
midget
.Keyphrase analyses
apple
as the keyphrase.apple
to the custom field.Paragraph length
Test compatibility with previous wordpress versions
This bug was probably caused by a change in wordpress core. So it is good to confirm it still works with older versions.
Test with wordproof disabled
Test block editor.
Make sure that the behaviour in the block editor is not affected.
Repeat with Page and woo-product.
Fixes #19508