PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 13.0.1
Jetpack – WP Security, Backup, Speed, & Growth v13.0.1
12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 14.4.2 All 500 releases
← All changes | modules/shortcodes.php +2 -2 12.2.313.0.1 View file →
@@ -84,9 +84,9 @@
84 84 *
85 85 * @return string $content Replaced post content.
86 86 */
87 87 function jetpack_preg_replace_outside_tags( $pattern, $replacement, $content, $search = null ) {
88 - if ( $search && false === strpos( $content, $search ) ) {
88 + if ( $search && ! str_contains( $content, $search ) ) {
89 89 return $content;
90 90 }
91 91
92 92 $textarr = wp_html_split( $content );
@@ -112,9 +112,9 @@
112 112 *
113 113 * @return string $content Replaced post content.
114 114 */
115 115 function jetpack_preg_replace_callback_outside_tags( $pattern, $callback, $content, $search = null ) {
116 - if ( $search && false === strpos( $content, $search ) ) {
116 + if ( $search && ! str_contains( $content, $search ) ) {
117 117 return $content;
118 118 }
119 119
120 120 $textarr = wp_html_split( $content );