', '', $content); } /** * Set the default excerpt length * * @since 0.6 * @return int */ function set_excerpt_length() { return self::EXCERPT_LENGTH; } /** * Add a wrapper to iframes to handle the sizing correctly * * @since 0.6 * @param string $content * @return string */ function wrap_fluid_media($content) { // Match any iframes $pattern = '~|~'; preg_match_all($pattern, $content, $matches); foreach ($matches[0] as $match) { // Wrap matched iframe with div $wrapped_frame = '
' . $match . '
'; // Replace original iframe with new in content $content = str_replace($match, $wrapped_frame, $content); } return $content; } }