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

props kovshenin.
see #24222.



git-svn-id: https://develop.svn.wordpress.org/trunk@24129 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-04-29 14:48:31 +00:00
parent b7274b03af
commit 12e7328690
5 changed files with 0 additions and 16 deletions
-1
View File
@@ -152,7 +152,6 @@ function shortcode_exists( $tag ) {
*/
function has_shortcode( $content, $tag ) {
if ( shortcode_exists( $tag ) ) {
$matches = array();
preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER );
if ( empty( $matches ) )
return false;