That uses preg_replace() with a backreference in the replacement string. PHP-wise, it works. However, from the embedded view of the gist, you'll see it gets mangled.
Looking in the database, the raw transient seems to be fine, but by the time it gets to the html transient, the $1 is gone. Presumably something in process_gist_html() is the culprit.
Trying with ${1} as the backreference seemed to make no difference.
Try embedding the following:
https://gist.github.com/GaryJones/c2b4fa187066489729cb
That uses
preg_replace()
with a backreference in the replacement string. PHP-wise, it works. However, from the embedded view of the gist, you'll see it gets mangled.Looking in the database, the raw transient seems to be fine, but by the time it gets to the html transient, the
$1
is gone. Presumably something inprocess_gist_html()
is the culprit.Trying with
${1}
as the backreference seemed to make no difference.Any ideas @bradyvercher?