WordPress.org

Make WordPress Core

Opened 11 months ago

Closed 11 months ago

Last modified 8 months ago

#46678 closed defect (bug) (fixed)

Don't echo empty annotation

Reported by: afragen Owned by: SergeyBiryukov
Milestone: 5.2 Priority: normal
Severity: normal Version:
Component: Site Health Keywords: servehappy has-patch dev-feedback
Focuses: Cc:
PR Number:

Description

Don't echo an empty annotation from wp_get_update_php_annotation() and the surrounding tags in wp_update_php_annotation() as it's not appropriate.

Attachments (1)

46678.diff (527 bytes) - added by afragen 11 months ago.

Download all attachments as: .zip

Change History (4)

@afragen
11 months ago

#1 @SergeyBiryukov
11 months ago

  • Milestone changed from Awaiting Review to 5.2

#2 @SergeyBiryukov
11 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 45045:

Plugins: In wp_update_php_annotation(), only display the annotation and the surrounding tags if it's not empty.

Props afragen.
Fixes #46678.

#3 @spacedmonkey
8 months ago

  • Component changed from Plugins to Site Health
Note: See TracTickets for help on using tickets.