`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.



git-svn-id: https://develop.svn.wordpress.org/trunk@29742 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-09-12 22:53:04 +00:00
parent 578609d31e
commit 0efd852117
1 changed files with 2 additions and 2 deletions

View File

@ -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 );