`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. Built from https://develop.svn.wordpress.org/trunk@29742 git-svn-id: http://core.svn.wordpress.org/trunk@29516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d0a327b0b9
commit
b67ba6fb1c
|
@ -544,13 +544,13 @@ class WP_oEmbed {
|
|||
/**
|
||||
* Strip any new lines from the HTML.
|
||||
*
|
||||
* @access private
|
||||
* @access public
|
||||
* @param string $html Existing HTML.
|
||||
* @param object $data Data object from WP_oEmbed::data2html()
|
||||
* @param string $url The original URL passed to oEmbed.
|
||||
* @return string Possibly modified $html
|
||||
*/
|
||||
private function _strip_newlines( $html, $data, $url ) {
|
||||
public function _strip_newlines( $html, $data, $url ) {
|
||||
if ( false !== strpos( $html, "\n" ) )
|
||||
$html = str_replace( array( "\r\n", "\n" ), '', $html );
|
||||
|
||||
|
|
Loading…
Reference in New Issue