Make WordPress Core

Ticket #44074: 44074-fix2.diff

File 44074-fix2.diff, 508 bytes (added by jagszent, 5 years ago)

Possible fix #2

  • class-oembed.

    old new  
    737737
    738738                $replaced = str_replace( $replace, $search, $html );
    739739                $stripped = str_replace( array( "\r\n", "\n" ), '', $replaced );
    740                 $pre      = array_values( $found );
    741                 $tokens   = array_keys( $found );
     740                $pre      = array_reverse( array_values( $found ) );
     741                $tokens   = array_reverse( array_keys( $found ) );
    742742
    743743                return str_replace( $tokens, $pre, $stripped );
    744744        }