summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/modules/shortcodes.php
parentUpdating script for Update (diff)
downloadblogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/shortcodes.php')
-rw-r--r--plugins/jetpack/modules/shortcodes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/shortcodes.php b/plugins/jetpack/modules/shortcodes.php
index 23ed63e1..ec4f529a 100644
--- a/plugins/jetpack/modules/shortcodes.php
+++ b/plugins/jetpack/modules/shortcodes.php
@@ -91,7 +91,7 @@ function jetpack_preg_replace_outside_tags( $pattern, $replacement, $content, $s
$textarr = wp_html_split( $content );
unset( $content );
foreach ( $textarr as &$element ) {
- if ( '' === $element || '<' === $element{0} ) {
+ if ( '' === $element || '<' === $element[0] ) {
continue;
}
$element = preg_replace( $pattern, $replacement, $element );
@@ -119,7 +119,7 @@ function jetpack_preg_replace_callback_outside_tags( $pattern, $callback, $conte
$textarr = wp_html_split( $content );
unset( $content );
foreach ( $textarr as &$element ) {
- if ( '' === $element || '<' === $element{0} ) {
+ if ( '' === $element || '<' === $element[0] ) {
continue;
}
$element = preg_replace_callback( $pattern, $callback, $element );