Skip to content

Commit

Permalink
* Update Freemius SDK
Browse files Browse the repository at this point in the history
* Fix for deprecation notices
* Fix for issue with mux shortcode
* Fix for bug in storage tool
  • Loading branch information
jawngee committed Mar 9, 2024
1 parent b437125 commit c48a1cd
Show file tree
Hide file tree
Showing 38 changed files with 965 additions and 351 deletions.
2 changes: 1 addition & 1 deletion classes/Tools/Storage/StorageTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,7 @@ public function forcedImageDownsize( $fail, $id, $size )
return $fail;
}
$meta = wp_get_attachment_metadata( $id );
if ( empty($meta) ) {
if ( empty($meta) || is_wp_error( $meta ) ) {
return $fail;
}
if ( !isset( $meta['sizes'] ) ) {
Expand Down
4 changes: 2 additions & 2 deletions classes/Tools/Video/Player/VideoPlayerShortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public function renderShortCode( $attrs )
$tagAttributeList[] = 'playsInline';
}
$preload = arrayPath( $attrs, 'preload', null );
if ( $preload !== null ) {
$tagAttributeList[] = "preload='{$preload}'";
if ( $preload !== null && in_array( strtolower( $preload ), [ 'auto', 'metadata', 'none' ] ) ) {
$tagAttributeList[] = "preload='" . strtolower( $preload ) . "'";
}
$tagAttributes = implode( ' ', $tagAttributeList );
$classes = "mux-player";
Expand Down
2 changes: 1 addition & 1 deletion external/Freemius/assets/css/admin/account.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c48a1cd

Please sign in to comment.