Ticket #26343: recursive-has_shortcodes.diff
File recursive-has_shortcodes.diff, 528 bytes (added by , 10 years ago) |
---|
-
wp-includes/shortcodes.php
165 165 return false; 166 166 167 167 foreach ( $matches as $shortcode ) { 168 if ( $tag === $shortcode[2] ) 168 if ( $tag === $shortcode[2] ) { 169 169 return true; 170 } else if ( isset( $shortcode[5] ) && has_shortcode( $shortcode[5], $tag ) ) { 171 return has_shortcode( $shortcode[5], $tag ); 172 } 170 173 } 171 174 } 172 175 return false;