Skip to content

Suspicious code fragment #6439

@AppChecker

Description

@AppChecker

Hi!

Please look this code fragment:

if ( preg_match( '/src=["\']([^"\']+)["\']/', $avatar, $matches ) );
      $image['src'] = wp_specialchars_decode( $matches[1], ENT_QUOTES );

Body of if-statement actually is empty. Probably semicolon is excessive.

This possible defect found with AppChecker

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions