Skip to content

Commit

Permalink
Fix too few arguments error
Browse files Browse the repository at this point in the history
Fixes the following fatal error when viewing a Liveblog:

>  error: Uncaught ArgumentCountError: Too few arguments to function WPCOM_Liveblog::get_liveblog_metadata(), 0 passed in /public_html/wp-content/plugins/liveblog/liveblog.php on line 1853
  • Loading branch information
philipjohn committed Oct 17, 2018
1 parent d3171ff commit 9dd494d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liveblog.php
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ public static function print_liveblog_metadata() {
return;
}

$metadata = self::get_liveblog_metadata();
$metadata = self::get_liveblog_metadata( array(), get_the_ID() );
if ( empty( $metadata ) ) {
return;
}
Expand Down

0 comments on commit 9dd494d

Please sign in to comment.