Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion includes/class-listings-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,15 @@ public function get_ad_alerts( $ad ) {
}

if ( get_awpcp_option( 'imagesapprove' ) == 1 ) {
$alerts[] = __( 'If you have uploaded images your images will not show up until an admin has approved them.', 'another-wordpress-classifieds-plugin' );
$payment_term = $this->listing_renderer->get_payment_term( $ad );

if (
awpcp_are_images_allowed()
&& is_object( $payment_term )
&& (int) $payment_term->images > 0
) {
$alerts[] = __( 'If you have uploaded images your images will not show up until an admin has approved them.', 'another-wordpress-classifieds-plugin' );
}
}

return $alerts;
Expand Down
Loading