Skip to content

v1.3.38 — Fix Elementor link extraction

Choose a tag to compare

@cbarnes360 cbarnes360 released this 01 Jul 18:10
· 12 commits to main since this release

Root cause of 0 links_in/links_out on Elementor sites:

PHP's json_encode() without JSON_UNESCAPED_SLASHES stores forward slashes as \/, so URLs in _elementor_data were stored as https:\/\/site.com\/page\/. The regex patterns added in v1.3.37 searched for literal https:// and never matched.

Fix: Replace regex-on-raw-JSON with json_decode() + recursive array traversal. json_decode() automatically unescapes \/ → /, then we walk the decoded structure to collect:

  • Button/link widget url fields (clean strings after decode)
  • Text editor widget HTML strings (run standard href= regex on decoded HTML)

Upgrade + rescan required on any site showing 0 links.