Merge pull request #3838 from marijnkampf/patch-2

DOCS Corrected example to work when copied and pasted.
This commit is contained in:
Daniel Hensby 2015-01-30 11:34:25 +00:00
commit 83e64901c4

View File

@ -57,7 +57,7 @@ First we need to define a callback for the shortcode.
);
public function MyShortCodeMethod($arguments, $content = null, $parser = null, $tagName) {
return str_replace($content, "<em>$content</em>", $this->Content);
return "<em>" . $tagName . "</em> " . $content . "; " . count($arguments) . " arguments.";
}
}