AdvancedCustomFields / AdvancedCustomFields/acf

ACF 5.8.0-beta3 wpautop issues

Open
#144 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

This is a good description of what I'm running into, including a fix: https://wordpress.stackexchange.com/questions/321662/how-do-i-disable-wpautop-for-a-specific-block

I'm wondering what exactly is going on in this situation, as, if I include my custom block that includes a call to get_the_excerpt, it seems to apply wpautop to the entire page, every single block. if I remove the get_the_excerpt this doesn't happen and all is well.

This seems like there's probably something going on that would need to be looked at. I can share some specifics on my case if it's helpful, but would rather not post them publicly here if possible...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked WordPress Stack Exchange reproduction and compare page output with and without the custom block's get_the_excerpt call. Trace how wpautop is applied during block rendering; done means reproducing the behavior and identifying the relevant ACF or WordPress interaction, with a focused regression test if the affected code path can be located.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.