Make WordPress Core


Ignore:
Timestamp:
04/29/2013 02:48:31 PM (13 years ago)
Author:
nacin
Message:

Variables passed by reference do not need to be set first.

props kovshenin.
see #24222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/shortcodes.php

    r23729 r24129  
    153153function has_shortcode( $content, $tag ) {
    154154    if ( shortcode_exists( $tag ) ) {
    155         $matches = array();
    156155        preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER );
    157156        if ( empty( $matches ) )
Note: See TracChangeset for help on using the changeset viewer.