Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#55683 closed defect (bug) (fixed)

Unused variables in WP_Site_Health::get_test_plugin_version

Reported by: david.binda Owned by: SergeyBiryukov
Priority: normal Milestone: 6.1
Component: Site Health Version: 5.2
Severity: normal Keywords: commit has-patch
Cc: Focuses:

Description

I have noticed, that the $plugins_have_updates and $plugin_version variables in WP_Site_Health::get_test_plugin_version method are not being used, and have actually never been used since their introduction in r44986

IMHO, those should be removed in order to make the code more readable.

Attachments (1)

55683.diff​ (718 bytes ) - added by david.binda 5 years ago.

Download all attachments as: .zip

Change History (3)

#1 @mukesh27
5 years ago

  • Keywords commit has-patch added
  • Milestone Awaiting Review → 6.1

Agree with @davidbinda

Patch 55683.diff​ look good to me.

Let's move this ticket to 6.1 consideration and add the commit keyword.

#2 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 53355:

Site Health: Remove unused variables in WP_Site_Health::get_test_plugin_version().

Follow-up to [44986].

Props david.binda, mukesh27.
Fixes #55683.

Note: See TracTickets for help on using tickets.