Avoid running a bunch of regex on every post save by string matching first
Closed this issue · 0 comments
danielbachhuber commented
Across the board, where we're running regex for the shortcode reversal, we should first use stripos()
to see if our expected string has the possibility of existing in the body.
This will help ensure we only bear the burden of running regex when we actually need to.