PR-5.4-dev Success

User tests: Successful: Unsuccessful:

avatar janschoenherr
janschoenherr
24 Sep 2025

Summary of Changes

Just a bit of code cleanup.

Testing Instructions

Use custom offline message on the offline page.

Actual result BEFORE applying this Pull Request

no change

Expected result AFTER applying this Pull Request

no change

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar janschoenherr janschoenherr - open - 24 Sep 2025
avatar janschoenherr janschoenherr - change - 24 Sep 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Sep 2025
Category Front End Templates (site)
avatar janschoenherr janschoenherr - change - 25 Sep 2025
Labels Added: PR-5.4-dev
avatar joomla-cms-bot joomla-cms-bot - change - 25 Sep 2025
Category Front End Templates (site) Front End com_users Templates (site)
avatar janschoenherr
janschoenherr - comment - 25 Sep 2025

@richard67 Thanks, found a couple of more places.

avatar laoneo
laoneo - comment - 25 Sep 2025

What is the benefit here? Not saying the change is wrong, but is there a performance gain or so?

avatar richard67
richard67 - comment - 25 Sep 2025

What is the benefit here? Not saying the change is wrong, but is there a performance gain or so?

@laoneo There is a performance gain as str_replace checks the whole string for spaces, while trim only checks beginning and end, which functionally is sufficient here.

avatar laoneo
laoneo - comment - 25 Sep 2025

But trim checks multiple characters. Anyway, don't want to block this. But not sure if the override notification is worth the change.

avatar richard67
richard67 - comment - 25 Sep 2025

No need to hurry anyway. It might go into 5.4.1 and 6.0.1 because we are short before preparing RC 1, and between RC 1 and stable we only want to fix regressions, if some.

Add a Comment

Login with GitHub to post a comment