7 changes: 4 additions & 3 deletions .github/workflows/sync-wporg-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ on:
- '.wordpress-org/**'
jobs:
run:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: "! contains(github.event.head_commit.message, 'chore(release)')"
name: Push assets to wporg
steps:
- uses: actions/checkout@master
- name: WordPress.org plugin asset/readme update
uses: selul/action-wordpress-plugin-asset-update@develop
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_THEMEISLE_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_THEMEISLE_USERNAME }}
IGNORE_OTHER_FILES: true
SVN_USERNAME: ${{ secrets.SVN_THEMEISLE_USERNAME }}
Binary file added .wordpress-org/banner-1544x500.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/banner-772x250.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/icon-128x128.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/icon-256x256.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-1.png
Binary file not shown.
Binary file added .wordpress-org/screenshot-2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-2.png
Binary file not shown.
Binary file added .wordpress-org/screenshot-3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-3.png
Binary file not shown.
Binary file added .wordpress-org/screenshot-4.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-4.png
Binary file not shown.
Binary file added .wordpress-org/screenshot-5.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-5.png
Binary file not shown.
Binary file added .wordpress-org/screenshot-6.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .wordpress-org/screenshot-6.png
Binary file not shown.
Binary file removed .wordpress-org/screenshot-7.png
Binary file not shown.
Binary file removed .wordpress-org/screenshot-8.png
Binary file not shown.
Binary file removed .wordpress-org/screenshot-9.png
Binary file not shown.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
##### [Version 33.0.3](https://github.com/Codeinwp/woocommerce-product-addon/compare/v33.0.2...v33.0.3) (2024-10-04)

- Fixed a PHP warning when saving a Font Picker meta field in the backend
- Fixed an issue where uploaded files appeared twice on the confirmation screen

##### [Version 33.0.2](https://github.com/Codeinwp/woocommerce-product-addon/compare/v33.0.1...v33.0.2) (2024-10-01)

- Fixed a few alignment and UI issues
Expand Down
9 changes: 6 additions & 3 deletions inc/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function ppom_admin_product_meta_column( $column, $post_id ) {
if ( $ppom->has_multiple_meta() ) {
$total_items = count( $ppom->meta_id ); // Get the total number of items.
$current_item = 0; // Counter to track the current iteration.

$has_fields = false;
foreach ( $ppom->meta_id as $meta_id ) {
$current_item++; // Increment the counter.

Expand All @@ -56,10 +56,13 @@ function ppom_admin_product_meta_column( $column, $post_id ) {
if ( $current_item < $total_items ) {
echo ', ';
}
} else {
echo sprintf( __( '<a class="btn button" href="%1$s">%2$s</a>', 'woocommerce-product-addon' ), esc_url( $ppom_settings_url ), 'Add Fields' );
$has_fields = true;
}

}
if( ! $has_fields ) {
echo sprintf( __( '<a class="btn button" href="%1$s">%2$s</a>', 'woocommerce-product-addon' ), esc_url( $ppom_settings_url ), 'Add Fields' );
}
} elseif ( $ppom->ppom_settings ) {
$url_edit = add_query_arg(
array(
Expand Down
5 changes: 0 additions & 5 deletions inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1602,11 +1602,6 @@ function ppom_generate_html_for_files( $file_names, $input_type, $item ) {
$order_html .= '</a>';
}

$order_html .= '<img class="img-thumbnail" style="width:' . esc_attr( ppom_get_thumbs_size() ) . '" src="' . esc_url( $ppom_file_thumb_url ) . '">';

if ( $is_image_file ) {
$order_html .= '</a>';
}

// Requested by Kevin, hiding downloading file button after order on thank you page
// @since version 16.6
Expand Down
5 changes: 3 additions & 2 deletions inc/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ function ( $option ) {
function ( $option ) {

// registering for translation
nm_wpml_register( $option['option'], 'PPOM' );
isset( $option['option'] ) && nm_wpml_register( $option['option'], 'PPOM' );
isset( $option['fontdisplay'] ) && nm_wpml_register( $option['fontdisplay'], 'PPOM' );

// if label key set e.g for palettes or price matrix
isset( $option['label'] ) && nm_wpml_register( $option['label'], 'PPOM' );
Expand All @@ -618,7 +619,7 @@ function ( $option ) {
return $option;

},
$data['options']
$data['options']
);

}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woocommerce-product-addon",
"version": "33.0.2",
"version": "33.0.3",
"description": "PPOM for WooCommerce",
"main": "index.js",
"repository": "https://github.com/Codeinwp/woocommerce-product-addon",
Expand Down
Loading