Merge pull request #4356 from jakxnz/patch-1

Define function as static (line 59)
This commit is contained in:
Ingo Schommer 2015-07-01 09:25:50 +12:00
commit 34539691f6

View File

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