Update shortcodes.md

Replaced $args with $arguments as $args wasn't correct
This commit is contained in:
Michael 2014-08-08 16:02:10 +01:00
parent 95097a4a0e
commit 52624e7505

View File

@ -85,8 +85,8 @@ plus some `width` and `height` arguments. We'll add defaults to those in our sho
urlencode($address),
urlencode($address)
);
$width = (isset($args['width']) && $args['width']) ? $args['width'] : 400;
$height = (isset($args['height']) && $args['height']) ? $args['height'] : 300;
$width = (isset($arguments['width']) && $arguments['width']) ? $arguments['width'] : 400;
$height = (isset($arguments['height']) && $arguments['height']) ? $arguments['height'] : 300;
return sprintf(
'<iframe width="%d" height="%d" src="%s" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>',
$width,