Skip to content

[6.x] Revert throw on mixed pipe/shorthand modifier syntax - #15073

Merged
jasonvarga merged 3 commits into
statamic:6.xfrom
marcorieser:fix/revert-mixed-pipe-shorthand-modifier-error
Aug 4, 2026
Merged

[6.x] Revert throw on mixed pipe/shorthand modifier syntax#15073
jasonvarga merged 3 commits into
statamic:6.xfrom
marcorieser:fix/revert-mixed-pipe-shorthand-modifier-error

Conversation

@marcorieser

@marcorieser marcorieser commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

#14892 added a parser error whenever a tag has both a pipe modifier (|) and a shorthand key=value parameter present, intending to catch the tag-pair mixing case from #13080 ({{ x | mod="value" }} ... {{ /x }}, which silently rendered empty).

However the check fires on any node with both, not just tag pairs — including standalone tags that previously rendered correctly, e.g.:

{{ last_modified | format="U" }}

Reported in #14892 (comment). Verified by reverting the parser change locally and rendering the above against a real date — it produces the correct Unix timestamp, confirming this was working, not "silently failing."

This PR reverts #14892 on 6.x and adds a regression test for the standalone case. A follow-up tracking issue covers reintroducing the throw as a breaking change in the next major version.

Test plan

  • test_pipe_with_shorthand_modifier_parameter_on_standalone_tag_still_renders added — fails against pre-revert code, passes after revert
  • Full CoreModifiersTest and ParserErrorsTest suites pass
Reproduces the case reported in
statamic#14892 (comment) —
a standalone (non-paired) tag mixing pipe and shorthand modifier
syntax used to render fine, but now throws a parser error.
@jasonvarga
jasonvarga merged commit 8050863 into statamic:6.x Aug 4, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants