Skip to content

Commit

Permalink
define parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Jun 9, 2016
1 parent 909e400 commit a517947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dps-coauthor-addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Multiple Authors in DPS
*
*/
function be_multiple_authors_in_dps( $output, $original_atts ) {
function be_multiple_authors_in_dps( $output = '', $original_atts = array() ) {

if( ! function_exists( 'coauthors' ) )
return $output;
Expand All @@ -49,4 +49,4 @@ function be_multiple_authors_in_dps( $output, $original_atts ) {
return ' <span class="author">' . call_user_func_array( $function, array( $between, $between_last, $before, $after, $echo ) ) . '</span>';

}
add_filter( 'display_posts_shortcode_author', 'be_multiple_authors_in_dps', 10, 2 );
add_filter( 'display_posts_shortcode_author', 'be_multiple_authors_in_dps', 10, 2 );

0 comments on commit a517947

Please sign in to comment.