Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#46678 closed defect (bug) (fixed)

Don't echo empty annotation

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

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 8 years ago.

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
8 years ago

  • Milestone Awaiting Review → 5.2

#2 @SergeyBiryukov
8 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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
7 years ago

  • Component Plugins → Site Health
Note: See TracTickets for help on using tickets.