inline preg_replace() callbacks

Created on 6 August 2023, 11 months ago
Updated 7 August 2023, 11 months ago

Problem/Motivation

The CodeFilter plugin has a number of preg_replace callbacks():

$text = preg_replace_callback('@<code>(.+?)@s', [get_class($this), 'codeTagCallback'], $text);

These are only used once each, so could be inlined as anonymous functions for greater legibility.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024