Make WordPress Core


Ignore:
Timestamp:
08/25/2015 08:27:56 PM (11 years ago)
Author:
wonderboymusic
Message:

foreach is a statement, not a function.

See #33491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r33700 r33734  
    341341        $sentences = explode( $open_quote, $haystack );
    342342
    343         foreach( $sentences as $key => &$sentence ) {
     343        foreach ( $sentences as $key => &$sentence ) {
    344344                if ( false === strpos( $sentence, $needle ) ) {
    345345                        continue;
    … …  
    44434443                if ( preg_match_all( $regex, $content, $matches ) ) {
    44444444                        if ( ! empty( $matches[1] ) ) {
    4445                                 foreach( $matches[1] as $emoji ) {
     4445                                foreach ( $matches[1] as $emoji ) {
    44464446                                        /*
    44474447                                         * UTF-32's hex encoding is the same as HTML's hex encoding.
Note: See TracChangeset for help on using the changeset viewer.