Issue Task Resolved

#111117Use str_ends_with() for remaining substr-based suffix checks

Wouter Wolters 10/17/26, 15:15 updated 10/19/26, 19:30

Description

Several suffix checks in the core still extract the end of a string
with substr() and compare the result with an expected suffix.

Use the native str_ends_with() function to express these checks
directly and avoid creating temporary substrings.

Reviews 1

History 13

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-19T19:30:14+00:00" > 10/19/26, 19:30 </span>

    Applied in changeset commit:8f4d88fb74996aa1eefe466f89ed3d82a16a46fd.