Merge pull request #3372 from MichaelCSLWeb/patch-1

Update shortcodes.md
This commit is contained in:
Will Rossiter 2014-08-09 10:09:28 +12:00
commit 855e700689

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,