Skip to content

Commit 8585704

Browse files
fix: file conflicts
2 parents 287716b + 6ebc9af commit 8585704

15 files changed

+29279
-2468
lines changed

.releaserc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins:
99
- - "@semantic-release/release-notes-generator"
1010
- preset: simple-preset
1111
- - "@semantic-release/exec"
12-
- prepareCmd: "export nextReleaseNotes="${nextRelease.notes}" && node bin/update-changelog.js"
12+
- prepareCmd: "export nextReleaseNotes=\"${nextRelease.notes}\" && node bin/update-changelog.js"
1313
- - "@semantic-release/exec"
1414
- prepareCmd: grunt version::${nextRelease.version} && grunt wp_readme_to_markdown
1515
- - "semantic-release-slack-bot"

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
##### [Version 33.0.9](https://github.com/Codeinwp/woocommerce-product-addon/compare/v33.0.8...v33.0.9) (2025-01-08)
2+
3+
- Improved tooltip style in the dashboard
4+
- Enhanced security
5+
- Improved translatable strings
6+
- Fixed conditional field display issue with a select option
7+
18
##### [Version 33.0.8](https://github.com/Codeinwp/woocommerce-product-addon/compare/v33.0.7...v33.0.8) (2024-11-08)
29

310
- Fixed issue with multiple checked options not displaying as checked by default

classes/fields.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,8 @@ function render_all_input_types( $name, $data, $fields_type, $field_index, $valu
990990
$html_input .= '</div>';
991991

992992
$html_input .= '<div class="col-md-3 col-sm-3">';
993+
$html_input .= '<select name="ppom[' . esc_attr( $field_index ) . '][conditions][rules][0][element_values]" class="form-control ppom-conditional-keys ppom-hide-element" data-metatype="element_values">';
994+
$html_input .= '</select>';
993995
$html_input .= '<input name="ppom[' . esc_attr( $field_index ) . '][conditions][rules][0][element_constant]" class="form-control ppom-conditional-keys ppom-hide-element" data-metatype="element_constant" >';
994996

995997
$html_input .= '<div class="ppom-between-input-container ppom-hide-element"> ';

classes/frontend-scripts.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ public static function load_scripts_by_product_id( $product_id, $ppom_id = null,
444444
break;
445445
}
446446

447+
if ( ! empty( $fields_meta['description'] ) ) {
448+
$fields_meta['description'] = wp_strip_all_tags( html_entity_decode( $fields_meta['description'] ) );
449+
}
447450
$inputs_meta_updated[] = $fields_meta;
448451

449452
// Conditional fields

classes/input-meta.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function field_label( $tooltip = true, $desc = true, $asterisk = true ) {
155155

156156
$asterisk_symbol = ( ! empty( $this->required() ) && $this->title() != '' ) ? '<span class="show_required"> *</span>' : '';
157157

158-
$show_desc = ( ! empty( $this->desc() ) ) ? '<span class="show_description ppom-input-desc">' . $this->desc() . '</span>' : '';
158+
$show_desc = ( ! empty( $this->desc() ) ) ? '<span class="show_description ppom-input-desc">' . wp_strip_all_tags( html_entity_decode( $this->desc() ) ) . '</span>' : '';
159159

160160
if ( $desc ) {
161161
$show_desc = apply_filters( 'ppom_field_description', $show_desc, self::$input_meta );

classes/plugin.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,7 @@ function add_ppom_meta_panel() {
974974
public function show_tooltip( $description, $meta ) {
975975
$input_desc = ! empty( $meta['description'] ) ? $meta['description'] : '';
976976
$input_desc = apply_filters( 'ppom_description_content', stripslashes( $input_desc ), $meta );
977+
$input_desc = wp_strip_all_tags( html_entity_decode( $input_desc ) );
977978

978979
// Check if the tooltip is enabled.
979980
if ( isset( $meta['desc_tooltip'] ) && 'on' === $meta['desc_tooltip'] ) {

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/ppom-admin.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,8 +1563,6 @@ header.ppom-modal-header {
15631563
flex-direction: column;
15641564
gap: 30px;
15651565
max-height: 600px;
1566-
overflow-y: auto;
1567-
overflow-x: hidden;
15681566
scrollbar-color: #D8D8D8 white;
15691567
padding-right: 20px;
15701568
}
@@ -1631,6 +1629,8 @@ header.ppom-modal-header {
16311629

16321630
.ppom-fields:has(.ppom-fields-sections) {
16331631
padding: 10px 10px 20px 40px;
1632+
overflow-y: auto;
1633+
overflow-x: hidden;
16341634
}
16351635

16361636
.ppom-search-container input::placeholder {

0 commit comments

Comments
 (0)