Changeset 27394
- Timestamp:
- 03/04/2014 07:10:46 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r26868 r27394 156 156 */ 157 157 function has_shortcode( $content, $tag ) { 158 if ( false === strpos( $content, '[' ) ) { 159 return false; 160 } 161 158 162 if ( shortcode_exists( $tag ) ) { 159 163 preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ); … … 186 190 function do_shortcode($content) { 187 191 global $shortcode_tags; 192 193 if ( false === strpos( $content, '[' ) ) { 194 return $content; 195 } 188 196 189 197 if (empty($shortcode_tags) || !is_array($shortcode_tags)) … … 376 384 global $shortcode_tags; 377 385 386 if ( false === strpos( $content, '[' ) ) { 387 return $content; 388 } 389 378 390 if (empty($shortcode_tags) || !is_array($shortcode_tags)) 379 391 return $content;
Note: See TracChangeset
for help on using the changeset viewer.