Skip to content

Commit cfe98ef

Browse files
authored
Merge pull request #9795 from awesomemotive/release/3.5.1
Release 3.5.1
2 parents 1bab96c + 6e92a3a commit cfe98ef

File tree

167 files changed

+14975
-20482
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+14975
-20482
lines changed

assets/css/admin/general/_upgrade.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@
1919
color: colors.$white;
2020
border-color: colors.$edd-pro-upgrade;
2121
}
22+
23+
.edd-settings-content {
24+
.edd-pro-upgrade,
25+
.edd-pro-upgrade:hover {
26+
text-decoration: underline !important;
27+
}
28+
}

assets/css/admin/promos/_overlay.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
margin: 2em auto;
5454
gap: 0 1.5em;
5555

56+
&--2-col {
57+
grid-template-columns: repeat( 2, auto );
58+
}
59+
5660
li {
5761
display: flex;
5862
gap: .5em;

assets/css/edd-admin-rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/edd-admin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
58.1 KB
Loading

assets/js/admin/downloads/supports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function updateSupports ( supports, supportedValue ) {
2323
return;
2424
}
2525
const elementSupports = element.getAttribute( 'data-edd-supports-' + supports );
26-
if ( elementSupports.split( ',' ).includes( supportedValue ) || ( supportedValue.length && 'any' === supportedValue && elementSupports === 'true' ) ) {
26+
if ( elementSupports.split( ',' ).includes( supportedValue ) || ( supportedValue.length && 'false' !== supportedValue && 'any' === elementSupports ) ) {
2727
element.classList.remove( 'edd-hidden' );
2828
} else {
2929
element.classList.add( 'edd-hidden' );

assets/js/admin/orders/order-details/address.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ jQueryReady( () => {
8282
success( response ) {
8383
let { tax_rate: rate } = response;
8484

85-
// Make a percentage.
86-
rate = rate * 100;
85+
// Make a percentage and round to avoid floating point precision issues.
86+
// This mirrors the PHP round( $rate * 100, 4 ) in edd_get_formatted_tax_rate().
87+
rate = Math.round( (rate * 100) * 10000 ) / 10000;
8788

8889
overviewState.set( 'hasTax', {
8990
...overviewState.get( 'hasTax' ),

assets/js/edd-admin-downloads.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/edd-admin-orders.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/edd-ajax.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)