Make WordPress Core

Changeset 29742


Ignore:
Timestamp:
09/12/2014 10:53:04 PM (10 years ago)
Author:
wonderboymusic
Message:

WP_oEmbed::_strip_newlines is called as a filter callback for oembed_dataparse, must be public. It was marked as private for fun in [14109] and then made private officially in [28507].

Fixes #29647 for trunk.

File:
1 edited

Legend:

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

    r29735 r29742  
    545545     * Strip any new lines from the HTML.
    546546     *
    547      * @access private
     547     * @access public
    548548     * @param string $html Existing HTML.
    549549     * @param object $data Data object from WP_oEmbed::data2html()
     
    551551     * @return string Possibly modified $html
    552552     */
    553     private function _strip_newlines( $html, $data, $url ) {
     553    public function _strip_newlines( $html, $data, $url ) {
    554554        if ( false !== strpos( $html, "\n" ) )
    555555            $html = str_replace( array( "\r\n", "\n" ), '', $html );
Note: See TracChangeset for help on using the changeset viewer.