Make WordPress Core

Changeset 44936


Ignore:
Timestamp:
03/19/2019 08:40:02 PM (6 years ago)
Author:
desrosj
Message:

General: Prevent nested paragraph tags when displaying PHP update annotations.

This change utilizes the new parameters accepted by wp_update_php_annotation() introduced in [44935] to prevent nested <p> tags when displaying the PHP update annotation.

Props afragen, desrosj.
Fixes #46269.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php

    r44797 r44936  
    643643                            esc_url( wp_get_update_php_url() )
    644644                        );
    645                         wp_update_php_annotation();
     645                        wp_update_php_annotation( '</p><p><em>', '</em>' );
    646646                    } elseif ( current_user_can( 'update_core' ) ) {
    647647                        printf(
     
    656656                            esc_url( wp_get_update_php_url() )
    657657                        );
    658                         wp_update_php_annotation();
     658                        wp_update_php_annotation( '</p><p><em>', '</em>' );
    659659                    }
    660660                } elseif ( ! $compatible_wp ) {
     
    675675                            esc_url( wp_get_update_php_url() )
    676676                        );
    677                         wp_update_php_annotation();
     677                        wp_update_php_annotation( '</p><p><em>', '</em>' );
    678678                    }
    679679                }
Note: See TracChangeset for help on using the changeset viewer.