Skip to content

Commit

Permalink
[#39] fixing PR edits
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-schmidt-viget committed Dec 19, 2023
1 parent d34d4de commit 373f70f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions client-mu-plugins/goodbids/src/classes/Auctions/Auctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ private function add_auction_archive_page(): void {
function () {
$page = array(
'post_type' => 'page',
'post_title' => ucfirst( self::ARCHIVE_SLUG ),
'post_title' => __( 'Auctions', 'goodbids' ),
'post_status' => 'publish',
'post_author' => 1,
'post_name' => self::ARCHIVE_SLUG,
Expand All @@ -517,17 +517,17 @@ function () {
private function set_default_feature_image(): void {
add_filter(
'post_thumbnail_html',
function ( string $html, int $auction_id ) {
function ( string $html, int $post_id ) {
if ( $html ) {
return $html;
}

if ( is_post_type_archive( 'gb-auction' ) ) {
$reward_id = goodbids()->auctions->get_reward_product_id( $auction_id );
$reward_id = goodbids()->auctions->get_reward_product_id( $post_id );
$product = wc_get_product( $reward_id );
$product_html = $product->get_image();
$image_html = $product->get_image();
return sprintf(
$product_html,
$image_html,
);
}
},
Expand Down
2 changes: 1 addition & 1 deletion themes/goodbids-nonprofit/inc/patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function ( array $patterns ): array {
'templateTypes' => [ 'front-page', 'home', 'page' ],
'source' => 'theme',
'inserter' => true,
]
],
];

return array_merge( $patterns, $theme_patterns );
Expand Down

0 comments on commit 373f70f

Please sign in to comment.