Make WordPress Core


Ignore:
Timestamp:
03/27/2019 10:36:37 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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

Props afragen.
Fixes #46678.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r45017 r45045  
    69196919    $annotation = wp_get_update_php_annotation();
    69206920
    6921     echo $before . $annotation . $after;
     6921    if ( $annotation ) {
     6922        echo $before . $annotation . $after;
     6923    }
    69226924}
    69236925
Note: See TracChangeset for help on using the changeset viewer.