Skip to content

Commit

Permalink
Updates shortcode attributes, and properly returns options
Browse files Browse the repository at this point in the history
  • Loading branch information
davelester committed Sep 29, 2012
1 parent a22d39d commit 5a3de8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpbadgedisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function wpbadgedisplay_read_shortcodes( $atts ) {
extract( shortcode_atts( array(
'email' => '',
'username' => '',
'badge_name' => ''
'badgename' => ''
), $atts ) );

// Create params array
Expand All @@ -180,7 +180,7 @@ function wpbadgedisplay_read_shortcodes( $atts ) {
do_action('openbadges_shortcode');

$badgedata = wpbadgedisplay_get_public_backpack_contents($openbadgesuserid);
return wpbadgedisplay_return_embed($badgedata);
return wpbadgedisplay_return_embed($badgedata, $options);

// @todo: github ticket #3, if email or username not specified and shortcode is called
// on an author page, automatically retrieve the author email from the plugin
Expand Down

0 comments on commit 5a3de8f

Please sign in to comment.