Make WordPress Core

Changeset 45119


Ignore:
Timestamp:
04/06/2019 03:35:44 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Site Health: Restore backticks in "Copy to clipboard" functionality, accidentally removed in [45044].

The backticks ensure that the data is formatted accordingly on pasting whenever possible.

Props Clorith.
Fixes #46809.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r45113 r45119  
    903903     */
    904904    public static function format( $info_array, $type = 'text' ) {
    905         $return = '';
     905        $return = "`\n";
    906906
    907907        foreach ( $info_array as $section => $details ) {
     
    943943            $return .= "\n";
    944944        }
     945
     946        $return .= "`";
    945947
    946948        return $return;
Note: See TracChangeset for help on using the changeset viewer.