Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Unused variable assignment in Attachments::create_item() #2081

@danielbachhuber

Description

@danielbachhuber

Not sure what the original intent was with:

$name       = basename( $file['file'] );
$name_parts = pathinfo( $name );
$name       = trim( substr( $name, 0, -(1 + strlen( $name_parts['extension'] ) ) ) );

Scrutinizer also reports this as unused:

$img_url_basename = wp_basename( $data['source_url'] );

Discovered in #2080

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions