Make WordPress Core


Ignore:
Timestamp:
04/12/2019 09:51:58 PM (6 years ago)
Author:
SergeyBiryukov
Message:

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

Props afragen.
Fixes #46680.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r45140 r45184  
    305305                esc_url( wp_get_update_php_url() )
    306306            );
    307             $compat .= '</p><p><em>' . wp_get_update_php_annotation() . '</em>';
     307
     308            $annotation = wp_get_update_php_annotation();
     309
     310            if ( $annotation ) {
     311                $compat .= '</p><p><em>' . $annotation . '</em>';
     312            }
    308313        }
    309314
Note: See TracChangeset for help on using the changeset viewer.