Skip to content

Commit

Permalink
Setting shortcode content to null if it's an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
ehough committed May 6, 2015
1 parent 48d236c commit 6677136
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -106,6 +106,11 @@ public function onShortcode($optionMap, $content)

private function _buildShortcodeEvent(array $normalizedOptions, $innerContent)
{
if (!$innerContent) {

$innerContent = null;
}

$name = $this->_context->get(tubepress_app_api_options_Names::SHORTCODE_KEYWORD);
$shortcode = new tubepress_lib_impl_shortcode_Shortcode($name, $normalizedOptions, $innerContent);

Expand Down

0 comments on commit 6677136

Please sign in to comment.