mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user