Skip to content

Commit

Permalink
Fix a PHP error. (#113)
Browse files Browse the repository at this point in the history
* [N/A] Fix a PHP error.
* [N/A] Fix another PHP error
  • Loading branch information
bd-viget authored Dec 21, 2023
1 parent 1bc4629 commit eb3a604
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 3 additions & 5 deletions client-mu-plugins/goodbids/blocks/reward-product/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
* @package GoodBids
*/

$goal = goodbids()->auctions->get_goal( goodbids()->auctions->get_auction_id() );
$estimated_value = goodbids()->auctions->get_estimated_value( $auction_id );
$expected_high_bid = goodbids()->auctions->get_expected_high_bid( $auction_id );
$goal = goodbids()->auctions->get_goal();
$estimated_value = goodbids()->auctions->get_estimated_value();
$expected_high_bid = goodbids()->auctions->get_expected_high_bid();
?>


<section <?php block_attr( $block ); ?>>
<?php
// Goal
Expand Down
12 changes: 7 additions & 5 deletions client-mu-plugins/goodbids/src/classes/Auctions/Auctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,11 +723,13 @@ public function metrics_meta_box(): void {

$bid_product = wc_get_product( $this->get_bid_product_id( $auction_id ) );

printf(
'<p><strong>%s</strong><br>%s</p>',
esc_html__( 'Current Bid', 'goodbids' ),
wp_kses_post( wc_price( $bid_product->get_price() ) )
);
if ( $bid_product ) :
printf(
'<p><strong>%s</strong><br>%s</p>',
esc_html__( 'Current Bid', 'goodbids' ),
wp_kses_post( wc_price( $bid_product->get_price() ) )
);
endif;

$last_bid = $this->get_last_bid( $auction_id );

Expand Down

0 comments on commit eb3a604

Please sign in to comment.