https://github.com/hex-digital/acf-bug-example
https://github.com/hex-digital/acf-bug-example
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hex-digital/acf-bug-example
- Owner: hex-digital
- Created: 2021-01-31T10:19:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-31T10:43:59.000Z (over 5 years ago)
- Last Synced: 2024-12-27T03:12:27.382Z (over 1 year ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ACF Bug Example
There appears to be a bug when rendering ACF Blocks that use AlpineJS syntax.
A block containing data like this:
```html
```
will escape the trailing quote, meaning the x-init="" is not closed, and the
code will not work.
```html
## Steps to Reproduce
- Clone this repo as a theme into an existing WP installation
- Activate the theme
- Create a page
- Add the "Test Block" to the page
- Publish page
- Go to the page in browser, and view source code
- Observe the above described bug