Skip to content

Commit

Permalink
Merge pull request #30 from threadi/feature/updateWcs
Browse files Browse the repository at this point in the history
updated wcs
  • Loading branch information
threadi authored May 5, 2024
2 parents aa14e9b + 9ca9460 commit 5cd6f64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions classes/eml/Controller/class-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,13 @@ public function wp_get_attachment_metadata( array $data, int $attachment_id ): a
* @return string
*/
public function downloadlist_rel_attribute( string $rel_attribute, array $file ): string {
// bail if array is empty
if( empty( $file ) ) {
// bail if array is empty.
if ( empty( $file ) ) {
return $rel_attribute;
}

// bail if id is not given
if( empty( $file['id'] ) ) {
// bail if id is not given.
if ( empty( $file['id'] ) ) {
return $rel_attribute;
}

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
}
},
"require-dev": {
"wp-coding-standards/wpcs": "^3.0.1",
"pronamic/wp-documentor": "^1.3"
"wp-coding-standards/wpcs": "^3.1.0",
"pronamic/wp-documentor": "^1.3.2"
},
"require": {
"php": "^8.0",
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ No, only public files can be used.
= 1.2.1 =
* Added support for hook of plugin "Download List Block with Icons" for mark external files with rel-external
* Updated compatibility-flag for WordPress 6.5.3
* Updated dependencies

0 comments on commit 5cd6f64

Please sign in to comment.